-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
36 lines (33 loc) · 851 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
32
33
34
35
36
import * as React from 'react';
import {Button, View} from 'react-native';
import {ScrollView} from 'react-native-gesture-handler';
import {Navigation, NavigationFunctionComponent} from 'react-native-navigation';
import {Header} from 'react-native/Libraries/NewAppScreen';
interface Props {
propTest: string;
}
const App: NavigationFunctionComponent<Props> = ({componentId}) => {
return (
<ScrollView contentInsetAdjustmentBehavior="automatic">
<Button
title="Push Settings Screen"
color="#710ce3"
onPress={() =>
Navigation.push(componentId, {
component: {
name: 'Test2',
},
})
}
/>
<View />
</ScrollView>
);
};
App.options = {
topBar: {
visible: false,
},
};
// Static options are also supported!
export default App;