Closed davidchieregato closed 2 months ago
Guten Tag, Hans here! 🍻 It looks like you are having trouble with react-native-mmkv related to TurboModules.
You mentioned that the new architecture is enabled, but ze error states it is not. Could you please double-check your settings to ensure TurboModules are indeed enabled in your configuration?
Also, please provide logs from Xcode or adb logcat when you encounter this error after the reload. These logs are crucial for diagnosing ze issue properly.
If you need help with enabling TurboModules, check the documentation here.
Remember, if you want faster responses and support, consider sponsoring mrousavy's work on this project: sponsor here.
Thanks!
Note: If you think I made a mistake, please ping
@mrousavy
to take a look.
Hi @davidchieregato
It does not look like you have new architecture enabled. Bridgeless mode comes from the switch from yoga to Yoga 3 in RN 74. New architecture still requires toggling a change in your gradle.properties and a little more to enable it in IOS and the log message will then indicate fabric being enabled which I don't see.
Thanks
So this is interesting,
In my app.json I have newArchEnabled
"plugins": [
[
"expo-build-properties",
{
"ios": {
"newArchEnabled": true
},
"android": {
"newArchEnabled": true
}
}
]
]
I just checked also the android gradle.properties which includes newArchEnabled=true
But the log still shows
(NOBRIDGE) LOG Bridgeless mode is enabled
Both on iOS and android.
So probably the problem is not in this library as my logs are not showing "fabric": true
. Not sure what the issue may be.
I'll have to see if I have time to update mmkv and react native to see what is going on, I'll try and get back to you this week.
Does it work if you delete those two lines? https://github.com/mrousavy/react-native-mmkv/blob/12c051704e0db363f9f63d2b30dbf291151f90d4/package/cpp/MmkvHostObject.cpp#L56-L57
(NOBRIDGE) LOG Bridgeless mode is enabled
This means you are on new arch, so it should be fine.
It seems that deleting the android and ios folders fixed the issue today, probably it was not related to the library. Closing this.
Same issue for my android build.
"plugins": [
[
"expo-build-properties",
{
"ios": {
"newArchEnabled": true
},
"android": {
"newArchEnabled": true
}
}
]
]
Same
(NOBRIDGE) LOG Bridgeless mode is enabled
But in my case prebuild clear doesnt help
I am using Expo 51 with react-native 0.75.2 and react-native-mmkv 3.0.2
Only after the app reload pressing 'r' the below error appears, but the new architecture is clearly enabled