react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

Unable to import react-native-beacons-manager to Expo project

Open dondre opened this issue 8 years ago • 4 comments

Version

1.0.7

Platform

iOS | Android - Both

OS version

React-Native 16, Expo 24

iOS 10| android 7.0...

Steps to reproduce

  1. 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')

dondre avatar Dec 30 '17 21:12 dondre

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.

ateufel avatar Mar 19 '18 21:03 ateufel

Is there any solution to make it work with expo in 2022 or do I still need to switch to react native init?

Malin88 avatar Nov 21 '22 16:11 Malin88

same question as @Malin88

mahdimaiche avatar Jan 22 '23 10:01 mahdimaiche

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.

RasberryKai avatar Jun 14 '23 14:06 RasberryKai