michaelmika / react-native-simple-native-geofencing

a native geofencing module for react-native
38 stars 19 forks source link

Example fails on ios #8

Closed suswariadla closed 5 years ago

suswariadla commented 5 years ago

I followed the example and it fails on ios with the following error TypeError: Cannot read property 'initNotification' of undefined

Seems to working fine on android.

Any thoughts, thanks!!

michaelmika commented 5 years ago

It sounds like you haven't installed the module properly for iOS. Have you linked it automatically ($ react-native link react-native-simple-native-geofencing) or manually? Are you using Cocoapods?

suswariadla commented 5 years ago

Hey, @michaelmika Thanks for the solution which worked for me. There is another issue we are experiencing right now: the package breaks the app building on the ios simulator especially 12.2 version. The metro bundler never loads and the app just shows the splash screen... We tested without the package being configured and with configured and it seems we have the trouble building the app with the package on 12.2 version. Any idea?

michaelmika commented 5 years ago

Sorry, I do not know any possible reason for it. Does it only crash in simulator? Please create a new topic if the problem persists.