I am using react-native: 0.40 with react: 15.4.2 and react-native-router-flux: 3.37.0 and I've been getting this error. Although everything I get this error on iOS, the app runs with no issue. But on Android, whenever I press the back button, the app crashes.
My assumption is that react native back button is conflicting with react-native-router-flux package.
Any help would be appreciated.
evaluating '_reactNative.BackHandler.addEventListener'
Make sure you are importing BankHandler from react-native and not react, it should be
import { BackHandler } from 'react-native';
NOT
import { BackHandler } from 'react';
That was what caused the error for me :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With