Hello, I created a separated page for the SlideShow in my App but if I leave the page and go back to it, the page stays in the last slide I was in instead of going back to the first page. Any idea of how I can set an initial state for the SlideShow to always load it's first page when I go to it?
I was trying to implement something like this:
Hello, I created a separated page for the SlideShow in my App but if I leave the page and go back to it, the page stays in the last slide I was in instead of going back to the first page. Any idea of how I can set an initial state for the SlideShow to always load it's first page when I go to it? I was trying to implement something like this:
componentDidMount(){ this.load() this.props.navigation.addListener('willFocus', this.load) } load = () => this.initialState(true)