Skip to content

Commit b5f11a0

Browse files
authored
Fix typos in Fabric Native Components Introduction (facebook#4408)
1 parent a94002d commit b5f11a0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/fabric-native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ It then overrides the `getName` function, which must return the same name used i
335335

336336
The `createViewInstance` function is responsible to instantiate a new `ReactWebView`.
337337

338-
Then, the ViewManager needs to define how all the React's compnoents props will update the native view. In the example, you need to decide how to handle the `sourceURL` property that React will set on the `WebView`.
338+
Then, the ViewManager needs to define how all the React's components props will update the native view. In the example, you need to decide how to handle the `sourceURL` property that React will set on the `WebView`.
339339

340340
Finally, if the component can emit an event, you need to map the event name by overriding the `getExportedCustomBubblingEventTypeConstants` for bubbling events, or the `getExportedCustomDirectEventTypeConstants` for direct events.
341341

docs/fabric-native-components-ios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You should be careful about committing generated code to your repository. Genera
2929

3030
### 3. Write the `RCTWebView`
3131

32-
We need to prepare your iOS project using Xcode by completeing these **5 steps**:
32+
We need to prepare your iOS project using Xcode by completing these **5 steps**:
3333

3434
1. Open the CocoPods generated Xcode Workspace:
3535

@@ -202,7 +202,7 @@ This code is written in Objective-C++ and contains various details:
202202
#### Add WebKit framework
203203
204204
:::note
205-
This step is only required because we are creating a Web view. Web components on iOS needs to be linked againt the WebKit framework provided by Apple. If your component doesn't need to access web-specific features, you can skip this step.
205+
This step is only required because we are creating a Web view. Web components on iOS needs to be linked against the WebKit framework provided by Apple. If your component doesn't need to access web-specific features, you can skip this step.
206206
:::
207207
208208
A web view requires access to some features that Apple provides through one of the frameworks shipped with Xcode and the devices: WebKit.

website/versioned_docs/version-0.76/fabric-native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ It then overrides the `getName` function, which must return the same name used i
335335

336336
The `createViewInstance` function is responsible to instantiate a new `ReactWebView`.
337337

338-
Then, the ViewManager needs to define how all the React's compnoents props will update the native view. In the example, you need to decide how to handle the `sourceURL` property that React will set on the `WebView`.
338+
Then, the ViewManager needs to define how all the React's components props will update the native view. In the example, you need to decide how to handle the `sourceURL` property that React will set on the `WebView`.
339339

340340
Finally, if the component can emit an event, you need to map the event name by overriding the `getExportedCustomBubblingEventTypeConstants` for bubbling events, or the `getExportedCustomDirectEventTypeConstants` for direct events.
341341

website/versioned_docs/version-0.76/fabric-native-components-ios.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You should be careful about committing generated code to your repository. Genera
2929

3030
### 3. Write the `RCTWebView`
3131

32-
We need to prepare your iOS project using Xcode by completeing these **5 steps**:
32+
We need to prepare your iOS project using Xcode by completing these **5 steps**:
3333

3434
1. Open the CocoPods generated Xcode Workspace:
3535

@@ -230,7 +230,7 @@ Update the `AppDelegate.mm` to make your application aware of our custom WebView
230230
@end
231231
```
232232

233-
This code override the `thirdPartyFabricComponents` method by obtainig a mutable copy of the dictionary of third party's components coming from other sources, like third party libraries.
233+
This code override the `thirdPartyFabricComponents` method by obtaining a mutable copy of the dictionary of third party's components coming from other sources, like third party libraries.
234234

235235
It then adds an entry to the dictionary with the name used in the Codegen specification file. In this way, when React requires to load a component with name `CustomWebView`, React Native will instantiate a `RCTWebView`.
236236

@@ -239,7 +239,7 @@ Finally, it returns the new dictionary.
239239
#### Add WebKit framework
240240

241241
:::note
242-
This step is only required because we are creating a Web view. Web components on iOS needs to be linked againt the WebKit framework provided by Apple. If your component doesn't need to access web-specific features, you can skip this step.
242+
This step is only required because we are creating a Web view. Web components on iOS needs to be linked against the WebKit framework provided by Apple. If your component doesn't need to access web-specific features, you can skip this step.
243243
:::
244244

245245
A web view requires access to some features that Apple provides through one of the frameworks shipped with Xcode and the devices: WebKit.

0 commit comments

Comments
 (0)