瀏覽代碼

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 年之前
父節點
當前提交
a3dadfdcf4
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      docs/docs/Usage.md

+ 3
- 3
docs/docs/Usage.md 查看文件

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