diff --git a/example/src/App.tsx b/example/src/App.tsx index 74bf6a2218..aa2c669d1b 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -45,6 +45,8 @@ import BetterHorizontalDrawer from './new_api/betterHorizontalDrawer'; import ManualGestures from './new_api/manualGestures'; import VelocityTest from './new_api/velocityTest'; +import EmptyExample from './empty/EmptyExample'; + interface Example { name: string; component: React.ComponentType; @@ -55,6 +57,10 @@ interface ExamplesSection { } const EXAMPLES: ExamplesSection[] = [ + { + sectionTitle: 'Empty', + data: [{ name: 'Empty Example', component: EmptyExample }], + }, { sectionTitle: 'Basic examples', data: [ diff --git a/example/src/empty/EmptyExample.tsx b/example/src/empty/EmptyExample.tsx new file mode 100644 index 0000000000..28aa248fab --- /dev/null +++ b/example/src/empty/EmptyExample.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import { StyleSheet, Text, View } from 'react-native'; + +export default function EmptyExample() { + return ( + + Hello World! + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F5FCFF', + }, +});