diff --git a/TVOSExample/App.tsx b/TVOSExample/App.tsx index f408f2e79b..ea67c0132a 100644 --- a/TVOSExample/App.tsx +++ b/TVOSExample/App.tsx @@ -1,26 +1,3 @@ -import React from 'react'; -import { NavigationContainer } from '@react-navigation/native'; -import { createNativeStackNavigator } from '@react-navigation/native-stack'; -import HomeScreen from './src/HomeScreen'; -import BottomTabsExample from './src/BottomTabsExample'; -import ModalsExample from './src/ModalsExample'; -import NativeStackExample from './src/NativeStackExample'; +import App from '../apps/examples'; -const Stack = createNativeStackNavigator(); - -export default function App() { - return ( - - - - - - - - - ); -} +export default App; diff --git a/TVOSExample/src/BottomTabsExample.tsx b/TVOSExample/src/BottomTabsExample.tsx deleted file mode 100644 index c306c7a1df..0000000000 --- a/TVOSExample/src/BottomTabsExample.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react'; -import { View, Text } from 'react-native'; -import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; -import { STYLES } from './styles'; - -function Tab1() { - return ( - - This is tab 1 - - ); -} - -function Tab2() { - return ( - - This is tab 2 - - ); -} - -function Tab3() { - return ( - - This is tab 3 - - ); -} - -const Tab = createBottomTabNavigator(); - -export default function BottomTabsExample() { - return ( - - - - - - ); -} diff --git a/TVOSExample/src/HomeScreen.tsx b/TVOSExample/src/HomeScreen.tsx deleted file mode 100644 index 20bb53db2e..0000000000 --- a/TVOSExample/src/HomeScreen.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react'; -import { View, Text, Button } from 'react-native'; -import { EXAMPLES } from './examples'; -import { STYLES } from './styles'; - -export default function HomeScreen({ navigation }) { - return ( - - - This is the example app created for testing React Native Screens on 📺 - - Examples: - {EXAMPLES.map(name => ( -