Skip to content

Commit 0412bef

Browse files
committed
update dict, fix warnings and other typos
1 parent a9edc81 commit 0412bef

23 files changed

+102
-100
lines changed

docs/boxshadowvalue.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3838

3939
### `blurRadius`
4040

41-
Represents the radius used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
41+
Represents the radius used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4242

43-
| Type | Optional |
44-
| --------------- | -------- |
45-
| numer \| string | Yes |
43+
| Type | Optional |
44+
| ---------------- | -------- |
45+
| number \| string | Yes |
4646

4747
### `spreadDistance`
4848

4949
How much larger or smaller the shadow grows or shrinks. A positive value will grow the shadow, a negative value will shrink the shadow.
5050

51-
| Type | Optional |
52-
| --------------- | -------- |
53-
| numer \| string | Yes |
51+
| Type | Optional |
52+
| ---------------- | -------- |
53+
| number \| string | Yes |
5454

5555
### `color`
5656

docs/dropshadowvalue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3636

3737
### `standardDeviation`
3838

39-
Represents the standard deviation used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
39+
Represents the standard deviation used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4040

41-
| Type | Optional |
42-
| --------------- | -------- |
43-
| numer \| string | Yes |
41+
| Type | Optional |
42+
| ---------------- | -------- |
43+
| number \| string | Yes |
4444

4545
### `color`
4646

docs/view-style-props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ Due to issues with performance and spec compliance, these are the only two filte
369369

370370
The following filter functions work on Android only:
371371

372-
- `blur`: Blurs the `View` with a [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur), where the specified length represents the radius used in the blurring algorithm. Any non-negative DIP value is valid (no percents). The larger the value, the blurrier the result.
372+
- `blur`: Blurs the `View` with a [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur), where the specified length represents the radius used in the blurring algorithm. Any non-negative DIP value is valid (no percents). The larger the value, the blurrier the result.
373373
- `contrast`: Changes the contrast of the `View`. Takes a non-negative number or percentage.
374-
- `dropShadow`: Adds a shadow around the alpha mask of the `View` (only non-zero alpha pixels in the `View` will cast a shadow). Takes an optional color representing the shadow color, and 2 or 3 lengths. If 2 lengths are specified they are interperted as `offsetX` and `offsetY` which will translate the shadow in the X and Y dimensions respectfully. If a 3rd length is given it is interpreted as the standard deviation of the Guassian blur used on the shadow - so a larger value will blur the shadow more. Read more about the arguments in [DropShadowValue](./dropshadowvalue.md).
374+
- `dropShadow`: Adds a shadow around the alpha mask of the `View` (only non-zero alpha pixels in the `View` will cast a shadow). Takes an optional color representing the shadow color, and 2 or 3 lengths. If 2 lengths are specified they are interpreted as `offsetX` and `offsetY` which will translate the shadow in the X and Y dimensions respectfully. If a 3rd length is given it is interpreted as the standard deviation of the Gaussian blur used on the shadow - so a larger value will blur the shadow more. Read more about the arguments in [DropShadowValue](./dropshadowvalue.md).
375375
- `grayscale`: Converts the `View` to [grayscale](https://en.wikipedia.org/wiki/Grayscale) by the specified amount. Takes a non-negative number or percentage, where `1` or `100%` represents complete grayscale.
376376
- `hueRotate`: Changes the [hue](https://en.wikipedia.org/wiki/Hue) of the View. The argument of this function defines the angle of a color wheel around which the hue will be rotated, so e.g., `360deg` would have no effect. This angle can have either `deg` or `rad` units.
377377
- `invert`: Inverts the colors in the `View`. Takes a non-negative number or percentage, where `1` or `100%` represents complete inversion.

eslint.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
import {defineConfig, globalIgnores} from 'eslint/config';
99
import globals from 'globals';
1010

11-
import eslintPluginCasePolice from 'eslint-plugin-case-police';
1211
import eslintCss from '@eslint/css';
1312
import eslintJs from '@eslint/js';
14-
import eslintPluginYml from 'eslint-plugin-yml';
13+
import tsParser from '@typescript-eslint/parser';
14+
import eslintPluginCasePolice from 'eslint-plugin-case-police';
1515
import * as eslintPluginMdx from 'eslint-plugin-mdx';
1616
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
17+
import eslintPluginYml from 'eslint-plugin-yml';
1718
import eslintTs from 'typescript-eslint';
18-
import tsParser from '@typescript-eslint/parser';
1919

2020
export default defineConfig([
2121
globalIgnores([
@@ -116,8 +116,10 @@ export default defineConfig([
116116
'apple developer': 'Apple Developer',
117117
avd: 'AVD',
118118
cocoapods: 'CocoaPods',
119+
codegen: 'Codegen',
119120
facebook: 'Facebook',
120121
hermes: 'Hermes',
122+
logcat: 'Logcat',
121123
meta: 'Meta',
122124
xcode: 'Xcode',
123125
},

website/blog/2022-06-16-resources-migrating-your-react-native-library-to-the-new-architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this post, we will dig deeper into these resources and explain in more detail
2525

2626
### Documentation
2727

28-
In the past 6 months, we’ve added a [guide on adopting the New Architecture](https://github.com/reactwg/react-native-new-architecture#guides) and an [architecture deep-dive](/architecture/overview) on Fabric. We plan to expand this to include more guides and documentation around creating TurboModules, understanding CodeGen, and more. We plan to have updates to share by the 0.70 release.
28+
In the past 6 months, we’ve added a [guide on adopting the New Architecture](https://github.com/reactwg/react-native-new-architecture#guides) and an [architecture deep-dive](/architecture/overview) on Fabric. We plan to expand this to include more guides and documentation around creating TurboModules, understanding Codegen, and more. We plan to have updates to share by the 0.70 release.
2929

3030
Currently, the **New Architecture** guide covers how to [migrate your app](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md) and [your libraries](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-libraries-prerequisites.md) to support the New Architecture properly.
3131

website/versioned_docs/version-0.77/boxshadowvalue.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3838

3939
### `blurRadius`
4040

41-
Represents the radius used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
41+
Represents the radius used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4242

43-
| Type | Optional |
44-
| --------------- | -------- |
45-
| numer \| string | Yes |
43+
| Type | Optional |
44+
| ---------------- | -------- |
45+
| number \| string | Yes |
4646

4747
### `spreadDistance`
4848

4949
How much larger or smaller the shadow grows or shrinks. A positive value will grow the shadow, a negative value will shrink the shadow.
5050

51-
| Type | Optional |
52-
| --------------- | -------- |
53-
| numer \| string | Yes |
51+
| Type | Optional |
52+
| ---------------- | -------- |
53+
| number \| string | Yes |
5454

5555
### `color`
5656

website/versioned_docs/version-0.77/dropshadowvalue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3636

3737
### `standardDeviation`
3838

39-
Represents the standard deviation used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
39+
Represents the standard deviation used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4040

41-
| Type | Optional |
42-
| --------------- | -------- |
43-
| numer \| string | Yes |
41+
| Type | Optional |
42+
| ---------------- | -------- |
43+
| number \| string | Yes |
4444

4545
### `color`
4646

website/versioned_docs/version-0.77/view-style-props.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ These shadows can be composed together so that a single `boxShadow` can be compr
326326
`boxShadow` takes either a string which mimics the [web syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow#syntax) or an array of [BoxShadowValue](./boxshadowvalue) objects.
327327
| Type |
328328
| --------------------------- |
329-
| array of BoxShadowValue ojects \| string |
329+
| array of BoxShadowValue objects \| string |
330330

331331
### `cursor` <div className="label ios">iOS</div>
332332

@@ -369,9 +369,9 @@ Due to issues with performance and spec compliance, these are the only two filte
369369

370370
The following filter functions work on Android only:
371371

372-
- `blur`: Blurs the `View` with a [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur), where the specified length represents the radius used in the blurring algorithm. Any non-negative DIP value is valid (no percents). The larger the value, the blurrier the result.
372+
- `blur`: Blurs the `View` with a [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur), where the specified length represents the radius used in the blurring algorithm. Any non-negative DIP value is valid (no percents). The larger the value, the blurrier the result.
373373
- `contrast`: Changes the contrast of the `View`. Takes a non-negative number or percentage.
374-
- `dropShadow`: Adds a shadow around the alpha mask of the `View` (only non-zero alpha pixels in the `View` will cast a shadow). Takes an optional color representing the shadow color, and 2 or 3 lengths. If 2 lengths are specified they are interperted as `offsetX` and `offsetY` which will translate the shadow in the X and Y dimensions respectfully. If a 3rd length is given it is interpreted as the standard deviation of the Guassian blur used on the shadow - so a larger value will blur the shadow more. Read more about the arguments in [DropShadowValue](./dropshadowvalue.md).
374+
- `dropShadow`: Adds a shadow around the alpha mask of the `View` (only non-zero alpha pixels in the `View` will cast a shadow). Takes an optional color representing the shadow color, and 2 or 3 lengths. If 2 lengths are specified they are interpreted as `offsetX` and `offsetY` which will translate the shadow in the X and Y dimensions respectfully. If a 3rd length is given it is interpreted as the standard deviation of the Gaussian blur used on the shadow - so a larger value will blur the shadow more. Read more about the arguments in [DropShadowValue](./dropshadowvalue.md).
375375
- `grayscale`: Converts the `View` to [grayscale](https://en.wikipedia.org/wiki/Grayscale) by the specified amount. Takes a non-negative number or percentage, where `1` or `100%` represents complete grayscale.
376376
- `hueRotate`: Changes the [hue](https://en.wikipedia.org/wiki/Hue) of the View. The argument of this function defines the angle of a color wheel around which the hue will be rotated, so e.g., `360deg` would have no effect. This angle can have either `deg` or `rad` units.
377377
- `invert`: Inverts the colors in the `View`. Takes a non-negative number or percentage, where `1` or `100%` represents complete inversion.

website/versioned_docs/version-0.78/boxshadowvalue.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3838

3939
### `blurRadius`
4040

41-
Represents the radius used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
41+
Represents the radius used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4242

43-
| Type | Optional |
44-
| --------------- | -------- |
45-
| numer \| string | Yes |
43+
| Type | Optional |
44+
| ---------------- | -------- |
45+
| number \| string | Yes |
4646

4747
### `spreadDistance`
4848

4949
How much larger or smaller the shadow grows or shrinks. A positive value will grow the shadow, a negative value will shrink the shadow.
5050

51-
| Type | Optional |
52-
| --------------- | -------- |
53-
| numer \| string | Yes |
51+
| Type | Optional |
52+
| ---------------- | -------- |
53+
| number \| string | Yes |
5454

5555
### `color`
5656

website/versioned_docs/version-0.78/dropshadowvalue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ The offset on the y-axis. This can be positive or negative. A positive value ind
3636

3737
### `standardDeviation`
3838

39-
Represents the standard deviation used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
39+
Represents the standard deviation used in the [Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
4040

41-
| Type | Optional |
42-
| --------------- | -------- |
43-
| numer \| string | Yes |
41+
| Type | Optional |
42+
| ---------------- | -------- |
43+
| number \| string | Yes |
4444

4545
### `color`
4646

0 commit comments

Comments
 (0)