Skip to content

Commit 44faa2e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into production
2 parents ff45c5c + aad4d2e commit 44faa2e

9 files changed

Lines changed: 62 additions & 37 deletions

File tree

docs/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.77/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.78/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.79/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.80/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.81/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.82/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

website/versioned_docs/version-0.83/appstate.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ For more information, see [Apple's documentation](https://developer.apple.com/do
2020

2121
## Basic Usage
2222

23-
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date. However, `currentState` will be null at launch while `AppState` retrieves it over the bridge.
23+
To see the current state, you can check `AppState.currentState`, which will be kept up-to-date.
24+
25+
:::info
26+
If you are using the legacy architecture, `currentState` will be `null` at launch until it is retrieved asynchronously from the native side.
27+
:::
2428

2529
```SnackPlayer name=AppState%20Example
2630
import React, {useRef, useState, useEffect} from 'react';
@@ -70,7 +74,7 @@ const styles = StyleSheet.create({
7074
export default AppStateExample;
7175
```
7276

73-
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state, and the null state will happen only momentarily. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
77+
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the `active` state. If you want to experiment with the code we recommend to use your own device instead of embedded preview.
7478

7579
---
7680

yarn.lock

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5351,13 +5351,6 @@ __metadata:
53515351
languageName: node
53525352
linkType: hard
53535353

5354-
"@trysound/sax@npm:0.2.0":
5355-
version: 0.2.0
5356-
resolution: "@trysound/sax@npm:0.2.0"
5357-
checksum: 10c0/44907308549ce775a41c38a815f747009ac45929a45d642b836aa6b0a536e4978d30b8d7d680bbd116e9dd73b7dbe2ef0d1369dcfc2d09e83ba381e485ecbe12
5358-
languageName: node
5359-
linkType: hard
5360-
53615354
"@tybys/wasm-util@npm:^0.10.1":
53625355
version: 0.10.1
53635356
resolution: "@tybys/wasm-util@npm:0.10.1"
@@ -11632,9 +11625,9 @@ __metadata:
1163211625
linkType: hard
1163311626

1163411627
"immutable@npm:^5.0.2":
11635-
version: 5.1.3
11636-
resolution: "immutable@npm:5.1.3"
11637-
checksum: 10c0/f094891dcefb9488a84598376c9218ebff3a130c8b807bda3f6b703c45fe7ef238b8bf9a1eb9961db0523c8d7eb116ab6f47166702e4bbb1927ff5884157cd97
11628+
version: 5.1.5
11629+
resolution: "immutable@npm:5.1.5"
11630+
checksum: 10c0/8017ece1578e3c5939ba3305176aee059def1b8a90c7fa2a347ef583ebbd38cbe77ce1bbd786a5fab57e2da00bbcb0493b92e4332cdc4e1fe5cfb09a4688df31
1163811631
languageName: node
1163911632
linkType: hard
1164011633

@@ -19093,10 +19086,10 @@ __metadata:
1909319086
languageName: node
1909419087
linkType: hard
1909519088

19096-
"sax@npm:^1.2.4":
19097-
version: 1.4.1
19098-
resolution: "sax@npm:1.4.1"
19099-
checksum: 10c0/6bf86318a254c5d898ede6bd3ded15daf68ae08a5495a2739564eb265cd13bcc64a07ab466fb204f67ce472bb534eb8612dac587435515169593f4fffa11de7c
19089+
"sax@npm:^1.2.4, sax@npm:^1.5.0":
19090+
version: 1.5.0
19091+
resolution: "sax@npm:1.5.0"
19092+
checksum: 10c0/bc3b60a7bfecd40b18256596e96b32df2488339ae1e00a77f842b568f0831228a16c3bd357ec500241ec0b9dc7a475a1286427795c4a8c50bb8e8878f3435dd8
1910019093
languageName: node
1910119094
linkType: hard
1910219095

@@ -20134,19 +20127,19 @@ __metadata:
2013420127
linkType: hard
2013520128

2013620129
"svgo@npm:^3.0.2, svgo@npm:^3.2.0":
20137-
version: 3.3.2
20138-
resolution: "svgo@npm:3.3.2"
20130+
version: 3.3.3
20131+
resolution: "svgo@npm:3.3.3"
2013920132
dependencies:
20140-
"@trysound/sax": "npm:0.2.0"
2014120133
commander: "npm:^7.2.0"
2014220134
css-select: "npm:^5.1.0"
2014320135
css-tree: "npm:^2.3.1"
2014420136
css-what: "npm:^6.1.0"
2014520137
csso: "npm:^5.0.5"
2014620138
picocolors: "npm:^1.0.0"
20139+
sax: "npm:^1.5.0"
2014720140
bin:
2014820141
svgo: ./bin/svgo
20149-
checksum: 10c0/a6badbd3d1d6dbb177f872787699ab34320b990d12e20798ecae915f0008796a0f3c69164f1485c9def399e0ce0a5683eb4a8045e51a5e1c364bb13a0d9f79e1
20142+
checksum: 10c0/06568c6b0430f96748c557f0b17dc7de79b19fa16d13d7523527ede0ec727fc6d8e6a10e13ff106dc4372d2e6063a1dca7c455c495efb1b83857480425f9b965
2015020143
languageName: node
2015120144
linkType: hard
2015220145

@@ -20223,15 +20216,15 @@ __metadata:
2022320216
linkType: hard
2022420217

2022520218
"tar@npm:^7.4.3":
20226-
version: 7.5.9
20227-
resolution: "tar@npm:7.5.9"
20219+
version: 7.5.10
20220+
resolution: "tar@npm:7.5.10"
2022820221
dependencies:
2022920222
"@isaacs/fs-minipass": "npm:^4.0.0"
2023020223
chownr: "npm:^3.0.0"
2023120224
minipass: "npm:^7.1.2"
2023220225
minizlib: "npm:^3.1.0"
2023320226
yallist: "npm:^5.0.0"
20234-
checksum: 10c0/e870beb1b2477135ca2abe86b2d18f7b35d0a4e3a37bbc523d3b8f7adca268dfab543f26528a431d569897f8c53a7cac745cdfbc4411c2f89aeeacc652b81b0a
20227+
checksum: 10c0/ed905e4b33886377df6e9206e5d1bd34458c21666e27943f946799416f86348c938590d573d6a69312cb29c583b122647a64ec92782f2b7e24e68d985dd72531
2023520228
languageName: node
2023620229
linkType: hard
2023720230

0 commit comments

Comments
 (0)