I have a problem when i want to pass some data from my stack navigator that contain 3 screens : Home / Result and my BottomTabNavigator(BTN). In my BTN i got 3 screens too.I make a navigation between my result page and the first screen of my BTN. i tried some syntaxes but nothing works :
navigation.navigate('Details', { itemId: 86, otherParam: 'anything you want here', });
and for a nested navigator :
navigation.navigate('Account', {screen: 'Settings',params: { user: 'jane' },});
but each time i tried, params were undefined... can help me?
if you want to see all my working environment i link you the git repository :
https://github.com/StolenPkM/ODB
link of start screen:
https://github.com/StolenPkM/ODB/blob/main/screens/ResultSearchScreen.tsx
link of arrival screen :
https://github.com/StolenPkM/ODB/blob/main/screens/TabOneScreen.tsx
my navigator :
https://github.com/StolenPkM/ODB/blob/main/navigation/index.tsx
if you need some more information, ask me i will answer you as fast as can.
Thanks in advance.