Closed davidkhuu closed 1 year ago
Hi @davidkhuu can you modify your app.json
to be like shown below and re-run step 4.
{
"expo": {
"name": "expo-app",
"slug": "expo-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.anonymous.expo-app"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.anonymous.expoapp"
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
"@morrowdigital/watermelondb-expo-plugin",
[
"expo-build-properties",
{
"android": {
"kotlinVersion": "1.6.10"
}
}
]
]
},
}
Hi @brunokiafuka, that looks like it resolves that! I feel dumb. I could've sworn I tried it adding the plugins
property inside and out of the expo
property in the app.json file and neither was working.
I appreciate the help!
It happens @davidkhuu, glad to hear that the issue is solved.
Forgive me if I'm missing something but this plugin doesn't seem to work for me?
I started a new Expo project to test if it was issues with my current project but I still can't get it to work.
Steps I followed:
Initiate a new Expo project (SDK 48):
expo-cli init expo-app
Following the setup instructions: I added WatermelonDB and this plugin:
yarn add @nozbe/watermelondb @morrowdigitial/watermelondb-expo-plugin
I addedexpo-build-properties
:npx expo install expo-build-properties
Added the plugin to the
plugins
array in app.json:I run
expo prebuild
/expo run:ios
and I get the same error:The Swift pod
WatermelonDB
depends uponReact-jsi
, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!
globally in your Podfile, or specify:modular_headers => true
for particular dependencies.