-
-
Notifications
You must be signed in to change notification settings - Fork 38
Cannot read property 'secCompanyId' of null #42
Comments
Should it not be |
import BLEAdvertiser from "react-native-ble-advertiser"; BLEAdvertiser.setCompanyId(APPLE_ID); @fhllnd its not work for me xcode keep throw error TypeError: Cannot read property 'setCompanyId' of null, js engine: hermes', reason: 'Unhandled JS Exception: TypeError: Cannot read property 'setCompanyId' of null, js engine: hermes |
Try to do
and then killing Metro and running your app again. |
hmm i did that and it seems like in podfile.lock there is no react-native-ble-advertiser |
it seems like only my project unable to detect this lib to import it into podfile.lock |
Yes, there is something going on in your config. Maybe some interference between native modules? I just created a new project, installed this lib, run pod install, and added those lines and it seems to work just fine. I am not sure how to replicate the issue. |
@Zero6d it seems to be working for me in my own project fine, just upgraded to 0.0.17 on ios and android with npm i @latest. There apparently has been an issue that's appeared since 2022/11/4 which has caused run-android to fail, so I've created a PR to update the example to rn 0.70.5 mentioned here this should allow you to set up the example and debug between the working example and your own project. You could try using the .tgz produced with |
i have to manually add pod 'react-native-ble-advertiser', :path => '../node_modules/react-native-ble-advertiser/ios' to podfile to fix cannot read property error |
same here after update to RN 0.69.7 |
Adding
inside ios/PodFile under
Resolved the null error for me. |
I'm getting this error just doing this
The text was updated successfully, but these errors were encountered: