Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[questions] How to reload tabs after back from outside scene #3794

Open
anuk112 opened this issue Sep 19, 2021 · 1 comment
Open

[questions] How to reload tabs after back from outside scene #3794

anuk112 opened this issue Sep 19, 2021 · 1 comment

Comments

@anuk112
Copy link

anuk112 commented Sep 19, 2021

hello i still don't understand how to reload tabs scene after back from another scene, example :

<Tabs key="home"  >
    <Scene key="menu" component={Home} title="Home" icon={HomeIcon} hideNavBar={true}/>
    <Scene key="product" component={Product} title="Product" icon={ProductIcon} hideNavBar={true}/>
</Tabs>
<Scene key="productdetail" component={ProductDetail title="Detail Product" hideNavBar={true} />

first init is in tab home -> tab product -> product detail(i have actions to edit product & i need data in tab product reloaded) -> tab product (but not reloaded data again)


update**
i already found the solutions using onEnter, but i use functional components in app.js & in someview using react hooks, how to implement that onEnter functions?

@Rananjaya
Copy link

Same issue here. How did you fix that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants