Unable to import react-native-beacons-manager to Expo project
Version
1.0.7
Platform
iOS | Android - Both
OS version
React-Native 16, Expo 24
iOS 10| android 7.0...
Steps to reproduce
- Import react-native-beacons-manager
Expected behavior
Should import the module
Actual behavior
IOS Receive the following issue on both Android and IOS. Undefined is not a object(evaluating 'BecaonsManager.requestWhenInUseAuthorization)
Android Requiring module "react-native-becaons-manager/lib/next/new.module.android.js", which threw an exception: TypeError: undefined in not an object(evaluating 'BeaconsManager.ARMA_RSSI_FILTER')
I had the same error. Tried to eject from Expo, but it did not work. The solution was to use react-native init instead of create-react-native-app.
Is there any solution to make it work with expo in 2022 or do I still need to switch to react native init?
same question as @Malin88
I tried getting it to work with the expo prebuild command. Since react-native-beacons-manager doesn’t provide a configuration plugin (which is required), I will eject my project and use react-native.