Open EricCarrGH opened 7 years ago
Have you been able to solve this. I have a similar problem.
I ended up adding react-native-tab-view to my project and following the example to include it in my view. It worked perfectly with regard to state/renders. Took about a half hour to integrate. Much less time then I spent troubleshooting this with ex-navigation's wrapper.
I have form components that updates parent state, and uses that parent state to re-render (checkboxes, etc).
As soon as I placed the View inside a NavigationSlidingTab, state changes stop triggering a render.
The docs for react-native-tab-view (Ex-Navigation wraps this for sliding tabs) states to add my state properties that change to the navigationState prop.
But I'm not sure how to pass that in through the ExNavigationSlidingTab wrapper. Any examples on how to do this? Have a state change in the parent componant trigger a re-render of the NavigationSlidingTab tabs?
Example render function. The view outside of the tab updates fine, but inside the tab it does not:
Thanks!