react-native-beacons-manager
react-native-beacons-manager copied to clipboard
BeaconsManager.ARMA_RSSI_FILTER
Version
1.0.1
Platform
Android
OS version
android 7.0...
Steps to reproduce
Expected behavior
it must be work
Actual behavior
i tried to launch example project on my emulator but it doesn't work.i got "undefined is not a function (evaluating 'BeaconsManager.ARMA_RSSI_FILTER)" error. How can i fix it ?
Did you try react-native link?
Yes i did it :(
Same issue here :(
Try to react-native link, close the project, run from xcode, Idk why it's working for me
I'm running the app with yarn start and using the Expo app. Idk if this is the correct way to run the app
Did you detach expo before using this?
mm no i'm not using ExpoKit, i will try that
Ok, now I understand more about react native, this helped me a lot https://medium.com/@paulsc/react-native-first-impressions-expo-vs-native-9565cce44c92
Are you using maybe React-native-navigation?
I had a similar problem. The problem was that I changed stuff in the MainApplication.java. So linking didn't work well.
I had to add the BeaconsAndroidPackage() manually to it.
protected List<ReactPackage> getPackages() {
// Add additional packages you require here
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new BeaconsAndroidPackage()
);
}
In my case I just forgot to run react-native run-android after having installed and linked it