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

BeaconsManager.ARMA_RSSI_FILTER

Open berkeguncan opened this issue 7 years ago • 10 comments

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 ?

berkeguncan avatar Apr 01 '18 22:04 berkeguncan

Did you try react-native link?

divye11 avatar Apr 02 '18 10:04 divye11

Yes i did it :(

berkeguncan avatar Apr 02 '18 11:04 berkeguncan

Same issue here :(

pedrobrost avatar Apr 05 '18 15:04 pedrobrost

Try to react-native link, close the project, run from xcode, Idk why it's working for me

divye11 avatar Apr 05 '18 15:04 divye11

I'm running the app with yarn start and using the Expo app. Idk if this is the correct way to run the app

pedrobrost avatar Apr 05 '18 15:04 pedrobrost

Did you detach expo before using this?

divye11 avatar Apr 05 '18 15:04 divye11

mm no i'm not using ExpoKit, i will try that

pedrobrost avatar Apr 05 '18 15:04 pedrobrost

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

pedrobrost avatar May 07 '18 00:05 pedrobrost

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()
      );
  }

bab00n87 avatar May 16 '18 18:05 bab00n87

In my case I just forgot to run react-native run-android after having installed and linked it

abidibo avatar Sep 21 '18 13:09 abidibo