javascript - React Native : reload app or force rerender -


in code after user clicked on button want redirect first page (login) page.

i tried navigator.push , works still shows top header , tabbarios in bottom.

how can reload app 1 button , or force render index.ios? (rerender root page)

i want same tabbarios. whenever scroll or go deeper in tab, when go tab , come first tab, it's not rerendering. showing last status of it.

thanks in advance!

it's bit hard seeing without code.

you want refresh screen, under condition ?

if screen component , if change component state ( this.setstate() ), change state value accordingly in page.

[update]

thanks clarification :

so, in index render can :

render(){      if(this.state.logout){//whatever condition want met.        return (<login />);     }     else{       return (<tabbarios ... />);     }  } 

it should remove tabbar , show login.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -