React Native SDK is not working properly
Describe the bug
@omiai/omi-react-nativeSDK is not working for Expo 53- Following the Docs also throws
new NativeEventEmitter()requires a non-null argument
To Reproduce
- Implement the example in an Expo 53 bare app and try and connect to Omi
Current behavior
@omiai/omi-react-nativeSDK is using an outdated version ofreact-native-ble-plx- Example app is using Expo 50 while the current version of Expo is 53
When trying to patch the SDK these are the additional issues
manger.onStateChangedoesn't get called and app cannot get Bluetooth State- App is showing all bluetooth
devicesinstead ofOMIdevices
Expected behavior
- Up to date React Native SDK
- Working implementation of Bluetooth Manager
@gabimoncha Struggled with this quite a bit myself but using the expo-50 sdk I was able to get this working https://github.com/AnkushMalaker/friend-lite/tree/main/friend-lite Leaving it here for reference until it gets solved upstream. This works end to end and I can get the states. I would like an upgraded react-native package too!
Thank you @AnkushMalaker. I've manged to make it work on expo 53, thought some changes had to be done
Nice, so can this issue be closed? @gabimoncha
Not really, change to the SDK still needs to be done in order to make it compatible with expo 53
Thank you @AnkushMalaker. I've manged to make it work on expo 53, thought some changes had to be done
Pls feel free to open a PR with the changes ;)
@mdmohsin7 check this out #2374
To prevent duplicate work will wait for this PR to get resolved. I do have some optimization to add since testing and working with the SDK