|
@@ -308,7 +308,7 @@ To disable the cross-fade animation, set `animated: false` when pushing the seco
|
308
|
308
|
## Compatibility with HeadlessJs
|
309
|
309
|
In most cases, `Navigation.startSingleScreenApp()` or `Navigation.startTabBasedApp` are called from global context. If the bundle is parsed when the app is not running, this will result in the app opening even though the developer had no intent to open the app.
|
310
|
310
|
|
311
|
|
-`Navigation.startSingleScreenApp()` or `Navigation.startTabBasedApp` are called from global context since RNN assums react context isn't created when the app is launched. When a background task completes, react context is put into a **paused state** and not destroyed. Therefore we should also handle the use case where our app is opened when react context is created , and the bundle has already been parsed. We do that by listening to `RNN.AppLaunched` event.
|
|
311
|
+`Navigation.startSingleScreenApp()` or `Navigation.startTabBasedApp` are called from global context since RNN assumes react context isn't created when the app is launched. When a background task completes, react context is put into a **paused state** and not destroyed. Therefore we should also handle the use case where our app is opened when react context is created , and the bundle has already been parsed. We do that by listening to `RNN.AppLaunched` event.
|
312
|
312
|
|
313
|
313
|
```js
|
314
|
314
|
import {Navigation, NativeEventsReceiver} from 'react-native-navigation';
|