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

NavigatorIOS.replace(route) can't replace title #3733

Closed
fov42550564 opened this issue Oct 28, 2015 · 3 comments
Closed

NavigatorIOS.replace(route) can't replace title #3733

fov42550564 opened this issue Oct 28, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@fov42550564
Copy link

I change page from login to home(login is first route), I use

this.props.navigator.replace({
            title: 'Home',
            component: Home
        });

online page replace , but title is Login。

@fov42550564
Copy link
Author

in UIExplorer

{this._renderRow('Replace here', () => {
            var prevRoute = this.props.route;
            this.props.navigator.replace({
              title: 'New Navigation',
              component: EmptyPage,
              rightButtonTitle: 'Undo',
              onRightButtonPress: () => this.props.navigator.replace(prevRoute),
              passProps: {
                text: 'The component is replaced, but there is currently no ' +
                  'way to change the right button or title of the current route',
              }
            });
          })}

title hasn't been replaced by 'New Navigation' and rightButtonTitle can't show,too

@mihirsoni
Copy link

@fov42550564 It is recommend to use Navigator instead of NavigatorIOS , Ref #1219.

Navigator component gives you more flexibility over NavigatorIOS.

If this solves your problem , Please close the issue.

@astreet
Copy link
Contributor

astreet commented Oct 28, 2015

Please use Stack Overflow and tag your question with react-native for asking these kinds of questions: http://stackoverflow.com/questions/tagged/react-native

Many people from the community hang out on Stack Overflow and will be able to see and likely also answer your question. Using Stack Overflow for questions also helps us use Github issues to keep track of bugs that need to be fixed.

@astreet astreet closed this as completed Oct 28, 2015
@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants