How to pass navigator reference to React Native ?

前端 未结 3 1739
时光说笑
时光说笑 2021-01-28 07:38

Using react-native-drawer ( https://github.com/root-two/react-native-drawer ) in my index.ios.js, I have the following set up and trying to pass \'navigator\' reference into con

3条回答
  •  借酒劲吻你
    2021-01-28 08:27

    I think you are wrong. If you use , should not has the same parent node with .

    const Drawer = }
                      ...
                   />
    
      configureScene={(route) => {
        return Navigator.SceneConfigs.VerticalDownSwipeJump;
      }}
      renderScene={(route, navigator) => {
        let Component = route.component;
        return 
       }} />
      }
    />
    

提交回复
热议问题