RN New Architecture Compatibility
Prerequisites
- [x] I checked the documentation and FAQ without finding a solution
- [x] I checked to make sure that this issue has not already been filed
- [x] I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
- [x] I'm running the latest version
Question
Hi, guys. I was wondering if we're gonna have support for the new architecture. I updated to RN 0.76.7 recently and I found that the app is crashing on BLE connection. Problem I was able to solve after disabling the new architecture from gradle.properties. Ty very much.
Question related code
Hello @gsagergithub. Are you using the latest version of the library?
Hello @gsagergithub. Are you using the latest version of the library?
Yes, I'm using the latest version. 3.5.0. Ty
I'm seeing a similar issue on react native 0.77.1 here are my findings so far:
- it only seems to happen in release mode, not development mode.
- I can only reproduce on iOS.
- the issue is pretty annoying to track down, as it's almost certainly happening in the native side of things. I had to go library by library to figure out which native thing was doing it.
- as soon as i do
new BLEManager, the crash happens - prior to the connection for me.
For now, i've disabled the new architecture on iOS, but that's not ideal.
I'll share native logs soon
Guys, you can disregard my case. The issue was resolved by updating react-native-screens, @react-navigation/material-top-tabs, @react-navigation/, and @react-navigation/native-stack.
Thanks, and sorry for the inconvenience.
I'm seeing a similar issue on react native 0.77.1 here are my findings so far:
- it only seems to happen in release mode, not development mode.
- I can only reproduce on iOS.
- the issue is pretty annoying to track down, as it's almost certainly happening in the native side of things. I had to go library by library to figure out which native thing was doing it.
- as soon as i do
new BLEManager, the crash happens - prior to the connection for me.For now, i've disabled the new architecture on iOS, but that's not ideal.
@sebirdman I've created a patch for this issue: https://github.com/dotintent/react-native-ble-plx/issues/1278