diff --git a/RNTester/js/examples/Alert/AlertExample.js b/RNTester/js/examples/Alert/AlertExample.js index 4e362a525f91f9..dfafd870cf324b 100644 --- a/RNTester/js/examples/Alert/AlertExample.js +++ b/RNTester/js/examples/Alert/AlertExample.js @@ -18,8 +18,6 @@ const { View, } = require('react-native'); -const RNTesterBlock = require('../../components/RNTesterBlock'); - // corporate ipsum > lorem ipsum const alertMessage = 'Credibly reintermediate next-generation potentialities after goal-oriented ' + @@ -125,22 +123,6 @@ class SimpleAlertExampleBlock extends React.Component { } } -class AlertExample extends React.Component { - static title = 'Alert'; - - static description = - 'Alerts display a concise and informative message ' + - 'and prompt the user to make a decision.'; - - render() { - return ( - - - - ); - } -} - const styles = StyleSheet.create({ wrapper: { borderRadius: 5, @@ -152,7 +134,17 @@ const styles = StyleSheet.create({ }, }); -module.exports = { - AlertExample, - SimpleAlertExampleBlock, -}; +exports.title = 'Alert'; +exports.description = + 'Alerts display a concise and informative message ' + + 'and prompt the user to make a decision.'; +exports.examples = [ + { + title: 'Alerts', + render(): React.Node { + return ; + }, + }, +]; + +exports.SimpleAlertExampleBlock = SimpleAlertExampleBlock; diff --git a/RNTester/js/utils/RNTesterList.android.js b/RNTester/js/utils/RNTesterList.android.js index 66962af515439d..f2da83458bbd45 100644 --- a/RNTester/js/utils/RNTesterList.android.js +++ b/RNTester/js/utils/RNTesterList.android.js @@ -122,7 +122,7 @@ const APIExamples: Array = [ }, { key: 'AlertExample', - module: require('../examples/Alert/AlertExample').AlertExample, + module: require('../examples/Alert/AlertExample'), }, { key: 'AnimatedExample',