work on stack.

This commit is contained in:
Jordan 2025-02-23 19:53:20 -08:00
parent eb7599bfe8
commit c3d543be39

View File

@ -33,7 +33,9 @@ export default function TTNavStack() {
return ( return (
<NavigationContainer> <NavigationContainer>
<Stack.Navigator initialRouteName='LanguageSelection'> <Stack.Navigator initialRouteName='LanguageSelection'>
<Stack.Screen name="LanguageSelection" component={({ ...props }) => <LanguageSelection {...props} onLangSelected={onLangSelected} />} /> <Stack.Screen name="LanguageSelection" >
{ props => <LanguageSelection {...props} onLangSelected={(l) => onLangSelected(l)} />}
</Stack.Screen>
<Stack.Screen name="ConversationThread" component={ConversationThread} /> <Stack.Screen name="ConversationThread" component={ConversationThread} />
<Stack.Screen name="Settings" component={SettingsComponent} /> <Stack.Screen name="Settings" component={SettingsComponent} />
</Stack.Navigator> </Stack.Navigator>