In version 0.79.0 of Cross-Platform Native Modules (C++) the documentation for registering the module in the platform for iOS tells you to modify the package.json as follows
"start": "react-native start",
"test": "jest"
},
"codegenConfig": {
"name": "AppSpecs",
"type": "modules",
"jsSrcsDir": "specs",
"android": {
"javaPackageName": "com.sampleapp.specs"
}
+ "ios":
+ "modulesProvider": {
+ "NativeSampleModule": "NativeSampleModuleProvider"
+ }
},
"dependencies": {
However, this JSON is malformed. There should be a comma after the "android" block ends and the "ios" block should be an object
"start": "react-native start",
"test": "jest"
},
"codegenConfig": {
"name": "AppSpecs",
"type": "modules",
"jsSrcsDir": "specs",
"android": {
"javaPackageName": "com.sampleapp.specs"
- }
+ },
- "ios":
+ "ios": {
+ "modulesProvider": {
+ "NativeSampleModule": "NativeSampleModuleProvider"
+ }
+ }
},
"dependencies": {
I've opened a PR: #4580
In version 0.79.0 of Cross-Platform Native Modules (C++) the documentation for registering the module in the platform for iOS tells you to modify the
package.jsonas follows"start": "react-native start", "test": "jest" }, "codegenConfig": { "name": "AppSpecs", "type": "modules", "jsSrcsDir": "specs", "android": { "javaPackageName": "com.sampleapp.specs" } + "ios": + "modulesProvider": { + "NativeSampleModule": "NativeSampleModuleProvider" + } }, "dependencies": {However, this JSON is malformed. There should be a comma after the
"android"block ends and the"ios"block should be an object"start": "react-native start", "test": "jest" }, "codegenConfig": { "name": "AppSpecs", "type": "modules", "jsSrcsDir": "specs", "android": { "javaPackageName": "com.sampleapp.specs" - } + }, - "ios": + "ios": { + "modulesProvider": { + "NativeSampleModule": "NativeSampleModuleProvider" + } + } }, "dependencies": {I've opened a PR: #4580