Answer the question
In order to leave comments, you need to log in
Stateful navigation between two screens?
I use react-native c react-navigation v.4 for navigation.
It is necessary to switch between two screens keeping the state of both screens (not unmounting them).
Like now:
const PagesStack = createStackNavigator({
... тут еще экраны, на которые можно переходить из Feed
});
const AppStack = createSwitchNavigator({
Feed: FeedScreen,
Pages: PagesStack
}, {
resetOnBlur: false,
initialRouteName: 'Feed'
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question