@@ -11,6 +11,12 @@ import {
11
11
} from '../../shared/gamma/containers/bottom-tabs/BottomTabsContainer' ;
12
12
import { Tab1 , Tab2 , Tab3 , Tab4 } from './tabs' ;
13
13
import Colors from '../../shared/styling/Colors' ;
14
+ // import { NavigationContainer, ParamListBase } from '@react-navigation/native';
15
+ // import {
16
+ // NativeStackNavigationProp,
17
+ // createNativeStackNavigator,
18
+ // } from '@react-navigation/native-stack';
19
+ // import { Button, View } from 'react-native';
14
20
15
21
enableFreeze ( true ) ;
16
22
@@ -71,6 +77,7 @@ const TAB_CONFIGS: TabConfiguration[] = [
71
77
} ,
72
78
iconResourceName : 'sym_action_email' , // Android specific
73
79
title : 'Tab3' ,
80
+ orientation : 'portrait' ,
74
81
} ,
75
82
contentViewRenderFn : Tab3 ,
76
83
} ,
@@ -109,3 +116,52 @@ function App() {
109
116
}
110
117
111
118
export default App ;
119
+
120
+ // type RouteParamList = {
121
+ // Auth: undefined;
122
+ // Tabs: undefined;
123
+ // };
124
+
125
+ // type NavigationProp<ParamList extends ParamListBase> = {
126
+ // navigation: NativeStackNavigationProp<ParamList>;
127
+ // };
128
+
129
+ // type StackNavigationProp = NavigationProp<RouteParamList>;
130
+
131
+ // const Stack = createNativeStackNavigator<RouteParamList>();
132
+
133
+ // function AuthScreen({ navigation }: StackNavigationProp) {
134
+ // return (
135
+ // <View
136
+ // style={{
137
+ // flex: 1,
138
+ // alignItems: 'center',
139
+ // justifyContent: 'center',
140
+ // }}>
141
+ // <Button title="Log in" onPress={() => navigation.push('Tabs')} />
142
+ // </View>
143
+ // );
144
+ // }
145
+
146
+ // function WrappedApp() {
147
+ // return (
148
+ // <NavigationContainer>
149
+ // <Stack.Navigator>
150
+ // <Stack.Screen
151
+ // name="Auth"
152
+ // component={AuthScreen}
153
+ // // options={{
154
+ // // orientation: 'landscape',
155
+ // // }}
156
+ // />
157
+ // <Stack.Screen
158
+ // name="Tabs"
159
+ // component={App}
160
+ // options={{ orientation: 'landscape' }}
161
+ // />
162
+ // </Stack.Navigator>
163
+ // </NavigationContainer>
164
+ // );
165
+ // }
166
+
167
+ // export default WrappedApp;
0 commit comments