Browse Source

Update docs (#3196)

Outdated onAppLaunched part is changed

I just started to a project with v2 and I realized this part of the documentation was wrong. I searched a bit and find this 2 commits: 

104e3f97fd

1d2680c5aa

So, that part is probably forgotten
Yusuf YILDIRIM 6 years ago
parent
commit
a3dadfdcf4
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      docs/docs/Usage.md

+ 3
- 3
docs/docs/Usage.md View File

@@ -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'