@@ -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
@@ -72,6 +78,7 @@ const TAB_CONFIGS: TabConfiguration[] = [
72
78
tabBarItemIconColor : Colors . RedDark120 ,
73
79
iconResourceName : 'sym_call_outgoing' , // Android specific
74
80
title : 'Tab3' ,
81
+ orientation : 'portrait' ,
75
82
} ,
76
83
contentViewRenderFn : Tab3 ,
77
84
} ,
@@ -108,3 +115,52 @@ function App() {
108
115
}
109
116
110
117
export default App ;
118
+
119
+ // type RouteParamList = {
120
+ // Auth: undefined;
121
+ // Tabs: undefined;
122
+ // };
123
+
124
+ // type NavigationProp<ParamList extends ParamListBase> = {
125
+ // navigation: NativeStackNavigationProp<ParamList>;
126
+ // };
127
+
128
+ // type StackNavigationProp = NavigationProp<RouteParamList>;
129
+
130
+ // const Stack = createNativeStackNavigator<RouteParamList>();
131
+
132
+ // function AuthScreen({ navigation }: StackNavigationProp) {
133
+ // return (
134
+ // <View
135
+ // style={{
136
+ // flex: 1,
137
+ // alignItems: 'center',
138
+ // justifyContent: 'center',
139
+ // }}>
140
+ // <Button title="Log in" onPress={() => navigation.push('Tabs')} />
141
+ // </View>
142
+ // );
143
+ // }
144
+
145
+ // function WrappedApp() {
146
+ // return (
147
+ // <NavigationContainer>
148
+ // <Stack.Navigator>
149
+ // <Stack.Screen
150
+ // name="Auth"
151
+ // component={AuthScreen}
152
+ // // options={{
153
+ // // orientation: 'landscape',
154
+ // // }}
155
+ // />
156
+ // <Stack.Screen
157
+ // name="Tabs"
158
+ // component={App}
159
+ // options={{ orientation: 'landscape' }}
160
+ // />
161
+ // </Stack.Navigator>
162
+ // </NavigationContainer>
163
+ // );
164
+ // }
165
+
166
+ // export default WrappedApp;
0 commit comments