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] Calling navigator.replace doesn't change the title #1589

Closed
arypurnomoz opened this issue Jun 11, 2015 · 3 comments
Closed

[NavigatorIOS] Calling navigator.replace doesn't change the title #1589

arypurnomoz opened this issue Jun 11, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@arypurnomoz
Copy link

After calling navigator.replace, the view is changed, but the navigator titles stay the same

var style = StyleSheet.create({
  text: {
    marginTop: 80,
    fontSize:32
  },
})

var Hello = React.createClass({
  render():?ReactElement {
    return <Text style={style.text}>Hello</Text>
  },
  componentDidMount() {
    setTimeout(()=> {
      this.props.navigator.replace({title:"Updated", component: World, leftButtonTitle:"LEFT"})
    }, 3000)
  }
})

var World = React.createClass({
  render():?ReactElement {
    return <Text style={style.text}>World</Text>
  },
})

var Nav = React.createClass({
  render():?ReactElement {
    return (
      <NavigatorIOS style={{flex:1}} initialRoute={{title:"Init", component: Hello, leftButtonTitle:"Left"}}/>
    )
  },
})
@JohnyDays
Copy link
Contributor

Can you give a bit more context? or perhaps a code sample

@arypurnomoz arypurnomoz changed the title [NavigatorIOS] Calling navigator.replace doesn't change the view [NavigatorIOS] Calling navigator.replace doesn't change the title Jun 11, 2015
@grabbou
Copy link
Contributor

grabbou commented Jun 12, 2015

Might be related to #1561

@ericvicenti
Copy link
Contributor

I think this is the same issue as #476

@facebook facebook locked as resolved and limited conversation to collaborators Jun 12, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 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

5 participants