I have installed following to my package json
"@nozbe/watermelondb": "^0.19.0",
"@nozbe/with-observables": "^1.0.5",
I have added .babelrc file with following data
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [["@babel/plugin-proposal-decorators", { "legacy": true }]]
}
I have already enabled swift support in my iOS project.
RN 0.63 supports auto linking so when I do pod installin iOS folder I get following error
The Swift podWatermelonDBdepends 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 => truefor particular dependencies.
I tried adding following in my Podfile as well

but still getting same issue. Are the docs updated for RN 0.63
That worked for me
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'ProjectName' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi', :modular_headers => true
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
Most helpful comment
That worked for me