Skip to content

Commit a969fd8

Browse files
authored
fix typos, backport recent fixes to versioned docs (facebook#4188)
1 parent 741c358 commit a969fd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+65
-65
lines changed

docs/_integration-with-existing-apps-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ dependencies {
124124
}
125125
```
126126

127-
Those depedencies are available on `mavenCentral()` so make sure you have it defined in your `repositories{}` block.
127+
Those dependencies are available on `mavenCentral()` so make sure you have it defined in your `repositories{}` block.
128128

129129
:::info
130130
We intentionally don't specify the version for those `implementation` dependencies as the React Native Gradle Plugin will take care of it. If you don't use the React Native Gradle Plugin, you'll have to specify version manually.

docs/_integration-with-existing-apps-kotlin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ dependencies {
124124
}
125125
```
126126

127-
Those depedencies are available on `mavenCentral()` so make sure you have it defined in your `repositories{}` block.
127+
Those dependencies are available on `mavenCentral()` so make sure you have it defined in your `repositories{}` block.
128128

129129
:::info
130130
We intentionally don't specify the version for those `implementation` dependencies as the React Native Gradle Plugin will take care of it. If you don't use the React Native Gradle Plugin, you'll have to specify version manually.

docs/flatlist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you need section support, use [`<SectionList>`](sectionlist.md).
2222

2323
## Example
2424

25-
<Tabs groupId="language" queryString defaultValue={constants.dewfaultSnackLanguage} values={constants.snackLanguages}>
25+
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
2626
<TabItem value="javascript">
2727

2828
```SnackPlayer name=flatlist-simple&ext=js
@@ -166,7 +166,7 @@ More complex, selectable example below.
166166
- By passing `extraData={selectedId}` to `FlatList` we make sure `FlatList` itself will re-render when the state changes. Without setting this prop, `FlatList` would not know it needs to re-render any items because it is a `PureComponent` and the prop comparison will not show any changes.
167167
- `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property.
168168

169-
<Tabs groupId="language" queryString defaultValue={constants.dewfaultSnackLanguage} values={constants.snackLanguages}>
169+
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
170170
<TabItem value="javascript">
171171

172172
```SnackPlayer name=flatlist-selectable&ext=js

docs/flexbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ export default App;
20802080

20812081
- [`gap`](layout-props#gap) sets the size of the gap (gutter) between rows and columns. It is a shorthand for `rowGap` and `columnGap`.
20822082

2083-
You can use `flexWrap` and `alignContent` alongwith `gap` to add consistent spacing between items.
2083+
You can use `flexWrap` and `alignContent` along with `gap` to add consistent spacing between items.
20842084

20852085
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
20862086
<TabItem value="javascript">

docs/native-modules-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ For iOS, you can also write native module methods with any argument type that is
288288

289289
### Exporting Constants
290290

291-
A native module can export constants by overriding the native method `constantsToExport()`. Below `constantsToExport()` is overriden, and returns a Dictionary that contains a default event name property you can access in JavaScript like so:
291+
A native module can export constants by overriding the native method `constantsToExport()`. Below `constantsToExport()` is overridden, and returns a Dictionary that contains a default event name property you can access in JavaScript like so:
292292

293293
```objectivec
294294
- (NSDictionary *)constantsToExport

docs/running-on-simulator-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The device names correspond to the list of devices available in Xcode. You can c
5353

5454
### Specifying a version of device
5555

56-
If you have multiple iOS versions installed, you also need to specify it's appropiate version. E.g. To run your app on an iPhone 14 Pro (16.0) run the following command:
56+
If you have multiple iOS versions installed, you also need to specify its appropriate version. E.g. To run your app on an iPhone 14 Pro (16.0) run the following command:
5757

5858
<Tabs groupId="package-manager" queryString defaultValue={constants.defaultPackageManager} values={constants.packageManagers}>
5959
<TabItem value="npm">

docs/scrollview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Enables nested scrolling for Android API level 21+.
413413

414414
Called when scrollable content view of the ScrollView changes.
415415

416-
The handler function will recieve two parameters: the content width and content height `(contentWidth, contentHeight)`.
416+
The handler function will receive two parameters: the content width and content height `(contentWidth, contentHeight)`.
417417

418418
It's implemented using onLayout handler attached to the content container which this ScrollView renders.
419419

website/versioned_docs/version-0.70/linking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Determine whether or not an installed app can handle a given URL.
303303

304304
The method returns a `Promise` object. When it is determined whether or not the given URL can be handled, the promise is resolved and the first parameter is whether or not it can be opened.
305305

306-
The `Promise` will reject on Android if it was impossible to check if the URL can be opened or when targetting Android 11 (SDK 30) if you didn't specify the relevant intent queries in `AndroidManifest.xml`. Similarly on iOS, the promise will reject if you didn't add the specific scheme in the `LSApplicationQueriesSchemes` key inside `Info.plist` (see bellow).
306+
The `Promise` will reject on Android if it was impossible to check if the URL can be opened or when targeting Android 11 (SDK 30) if you didn't specify the relevant intent queries in `AndroidManifest.xml`. Similarly on iOS, the promise will reject if you didn't add the specific scheme in the `LSApplicationQueriesSchemes` key inside `Info.plist` (see bellow).
307307

308308
**Parameters:**
309309

website/versioned_docs/version-0.70/native-modules-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ For iOS, you can also write native module methods with any argument type that is
274274

275275
### Exporting Constants
276276

277-
A native module can export constants by overriding the native method `constantsToExport()`. Below `constantsToExport()` is overriden, and returns a Dictionary that contains a default event name property you can access in JavaScript like so:
277+
A native module can export constants by overriding the native method `constantsToExport()`. Below `constantsToExport()` is overridden, and returns a Dictionary that contains a default event name property you can access in JavaScript like so:
278278

279279
```objectivec
280280
- (NSDictionary *)constantsToExport

website/versioned_docs/version-0.70/running-on-simulator-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The device names correspond to the list of devices available in Xcode. You can c
1515

1616
### Specifying a version of device
1717

18-
If you have multiple iOS versions installed, you also need to specify it's appropiate version. E.g. run `npx react-native run-ios --simulator='iPhone 13 Pro (15.5)'` in order to specify the iOS version.
18+
If you have multiple iOS versions installed, you also need to specify its appropriate version. E.g. run `npx react-native run-ios --simulator='iPhone 13 Pro (15.5)'` in order to specify the iOS version.
1919

2020
## Specifying an UDID
2121

0 commit comments

Comments
 (0)