How to pass navigator reference to React Native ?

前端 未结 3 1763
时光说笑
时光说笑 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条回答
  •  Happy的楠姐
    2021-01-28 08:35

    In update 2, you have done: var navigator = pr.getNav. This only assigns getNav function to the navigator variable you just defined. So your navigator here is just a reference to the getNav function.

    What you need to do is var navigator = pr.getNav() and then pass the navigator to MadeButton. Hope is clarify things.

提交回复
热议问题