I am trying to use Navigator within a React-Native app, but I am running into issues.
At the beginning of the app, I am loading this LoginScreen component:
You can do it with something like this:
componentDidMount () { const {navigation} = this.props; navigation.addListener ('willFocus', () => // run function that updates the data on entering the screen ); }