'NavigationContainer tab screen
I can't display my LapsTable in my Tab.screen even though it works outside of the tab.screen. I tried to put it in another file, it doesn't work, I also tried to pass it parameters, it doesn't work either
<Tab.Navigator>
<Tab.Screen component={ParticipantsScreen}
/>
<Tab.Screen
initialParams={{ time: timer, laps: laps }}
name={tourScreenName}
component={TourScreen}
/>
<Tab.Screen name={StatistiqueName} component={StatistiqueScreen} />
</Tab.Navigator>
<LapsTable laps={laps} timer={timer} />
</NavigationContainer>
const TourScreen = (props) => {
return (
<LapsTable
laps={props.route.params.laps}
timer={props.route.params.timer}
/>
);
};```
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
