-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main2.tsx
41 lines (34 loc) · 1.04 KB
/
Main2.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
37
38
39
40
41
import React, {useCallback, useMemo, useRef, useState, useEffect} from 'react';
import {Thunk2} from './Thunk2';
import {MainScreen2Component} from './MainScreen2Component';
import {
Button,
} from 'react-native';
import { createStackNavigator } from '@react-navigation/stack';
const Stack = createStackNavigator();
interface stateObj {
stateApp: stateAppObj
}
interface stateAppObj {
defaultProp: string,
[key: string]: number | string
}
const Main2Component = (props: any) => {
const {navigation} = props;
return (
<Stack.Navigator>
<Stack.Screen name="MainTitle2" component={MainScreen2Component}
options={{
headerLeft: () => (
<Button
onPress={() => navigation.openDrawer()}
title="Menu"
/>
),
}}
/>
<Stack.Screen name="Thunk2" component={Thunk2} />
</Stack.Navigator>
)
};
export {Main2Component}