react native - How to modified the title/leftButton/rightButton on the navigation bar of a NavigatorIOS after the scene is shown? -
one direction call setstate of navigatorios , make rerender new title/leftbutton/right. however, in context of scene, it's not naturally ok touch navigatorios, since in props there no ref it.
another direction try method such put/replace/... on props.navigator, change navigation stack. replace method seems right choice, nothing happened when call it.
you can @ navigatoriosexample of react native.
the component replaced, there no way change right button or title of current route.
Comments
Post a Comment