-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
43 lines (38 loc) · 1.42 KB
/
App.js
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
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { Text, TextInput } from 'react-native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import ViewExample from './src/screens/do/view_example';
import ScrollViewExample from './src/screens/do/scroll_view_example';
import ScrollViewExampleDont from "./src/screens/don't/scroll_view_example_dont";
import ViewExampleDont from "./src/screens/don't/view_example_dont";
Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps = {};
TextInput.defaultProps.allowFontScaling = false;
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
{/* Do example */}
<Stack.Screen name="ViewExample" component={ViewExample} />
<Stack.Screen name="ScrollViewExample" component={ScrollViewExample} />
{/* Don't example */}
{/*<Stack.Screen name="ScrollViewExample" component={ViewExampleDont} />*/}
{/*<Stack.Screen*/}
{/* name="ScrollViewExample"*/}
{/* component={ScrollViewExampleDont}*/}
{/*/>*/}
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;