-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathApp.tsx
31 lines (29 loc) · 889 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as React from 'react';
import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { MainScreen } from './MainScreen';
import { experiments } from './experiments';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="main"
component={MainScreen}
options={{ title: 'Experiments' }}
/>
{experiments.map((exp) => (
<Stack.Screen
key={exp.key}
name={exp.key}
component={exp.component}
options={{ title: exp.title }}
/>
))}
</Stack.Navigator>
<StatusBar style="auto" />
</NavigationContainer>
);
}