|
@@ -21,13 +21,13 @@ Navigation.registerComponent(`navigation.playground.WelcomeScreen`, () => Welcom
|
21
|
21
|
```
|
22
|
22
|
|
23
|
23
|
|
24
|
|
-### onAppLaunched(callback)
|
|
24
|
+### registerAppLaunchedListener(callback)
|
25
|
25
|
This event is called once the app is launched. It's where you will initialize the app with the layout you want, via the SetRoot command. This creates the native layout hierarchy, loading React components into the `component` by name.
|
26
|
26
|
|
27
|
|
-Afterwards, the app is ready for user interaction. (Common gotcha: Be sure not to run setRoot before onAppLaunched() has fired!)
|
|
27
|
+Afterwards, the app is ready for user interaction. (Common gotcha: Be sure not to run setRoot before registerAppLaunchedListener() has fired!)
|
28
|
28
|
|
29
|
29
|
```js
|
30
|
|
-Navigation.events().onAppLaunched(() => {
|
|
30
|
+Navigation.events().registerAppLaunchedListener(() => {
|
31
|
31
|
Navigation.setRoot({
|
32
|
32
|
component: {
|
33
|
33
|
name: 'navigation.playground.WelcomeScreen'
|