eddieowens / react-native-boundary

Native implementation of geofencing/region monitoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new NativeEventEmitter()` requires a non-null argument.

Goye opened this issue · comments

Hey!

I am seeing the following error when I tried to run the library with an updated react-native version (0.73.3):

Digging deeper, I realized that the const {RNBoundary} = NativeModules; returns nothing.

const {RNBoundary} = NativeModules;

const TAG = "RNBoundary";

const boundaryEventEmitter = new NativeEventEmitter(RNBoundary);

I've also tried adding the methods startObserving/stopObserving recommended by the documentation without success.

Does anyone have any idea what I can do to fix it?

Thank you so much!

Platform

iOs

Environment

package version
react-native 0.73.3
react-native-boundary 1.1.1
node 18.16.1
npm or yarn npm v9.5.1