Skip to content

Commit 37f6ac2

Browse files
authored
Fix Codegen specification (facebook#4407)
1 parent 9c85cc4 commit 37f6ac2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/fabric-native-components.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ As with Native Modules, you can have multiple specification files in the `specs/
120120
The specification is used by the React Native's Codegen tools to generate platform specific interfaces and boilerplate for us. To do this, Codegen needs to know where to find our specification and what to do with it. Update your `package.json` to include:
121121

122122
```json package.json
123-
"start": "react-native start",
124-
"test": "jest"
123+
"start": "react-native start",
124+
"test": "jest"
125+
},
126+
// highlight-start
127+
"codegenConfig": {
128+
"name": "AppSpec",
129+
"type": "components",
130+
"jsSrcsDir": "specs",
131+
"android": {
132+
"javaPackageName": "com.webview"
125133
},
126-
// highlight-start
127-
"codegenConfig": {
128-
"name": "AppSpec",
129-
"type": "components",
130-
"jsSrcsDir": "specs",
131-
"android": {
132-
"javaPackageName": "com.webview"
133-
},
134-
"ios": {
135-
"componentProvider": {
136-
"CustomWebView": "RCTWebView"
134+
"ios": {
135+
"componentProvider": {
136+
"CustomWebView": "RCTWebView"
137137
}
138138
}
139139
},

0 commit comments

Comments
 (0)