HaiVu5583 / RNBoilerplate

React Native Boilerplate
1 stars 1 forks source link

HOC and navigator button press #1

Open smooJitter opened 6 years ago

smooJitter commented 6 years ago

Im following your approach to register RNN screens (see RNBoilerplate/src/containers/index.js).

Inside my wrapped components, I can not figure out how to listen for onNavigationButtonPressed(). I notice you call this function in your HomeScreen. Does it work for you?

HaiVu5583 commented 6 years ago

It still work, but only when you use declaring Buttons, default back button android will not fire onNavigationButtonPressed. https://wix.github.io/react-native-navigation/v2/#/docs/topBar-buttons I think it is designed that way.