ReactNative开发之react-navigation不集成redux goBack返回指定页

在不集成redux的情况下

EditCover.js

render() {
    const { state, navigate } = this.props.navigation;    

    return (
        
            

EditPage.js

render() {
    const { state, goBack } = this.props.navigation;    
    const params = state.params || {};

    return (
        
            

参考资料

  • react navigation返回到任意页面(不集成redux)
  • react-navigation-back-and-goback-not-working
  • react-navigation使用技巧

博客原文

你可能感兴趣的:(ReactNative开发之react-navigation不集成redux goBack返回指定页)