Browse Source

Fix docs. Change bottomTab title to text (#4288)

I believe there is a type in the docs. The title prop in bottomTab should be text.
Minh Loi 6 years ago
parent
commit
b12ee944ea
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      docs/docs/top-level-api-migration.md

+ 3
- 3
docs/docs/top-level-api-migration.md View File

20
           }],
20
           }],
21
           options: {
21
           options: {
22
             bottomTab: {
22
             bottomTab: {
23
-              title: 'Tab 1',
23
+              text: 'Tab 1',
24
               icon: require('../images/one.png'),
24
               icon: require('../images/one.png'),
25
               testID: 'FIRST_TAB_BAR_BUTTON'
25
               testID: 'FIRST_TAB_BAR_BUTTON'
26
             }
26
             }
35
           },
35
           },
36
           options: {
36
           options: {
37
             bottomTab: {
37
             bottomTab: {
38
-              title: 'Tab 2',
38
+              text: 'Tab 2',
39
               icon: require('../images/two.png'),
39
               icon: require('../images/two.png'),
40
               testID: 'SECOND_TAB_BAR_BUTTON'
40
               testID: 'SECOND_TAB_BAR_BUTTON'
41
             }
41
             }
164
 
164
 
165
 In some cases you might need the id of the currently visible screen. This method returns the unique id of the currently visible screen:
165
 In some cases you might need the id of the currently visible screen. This method returns the unique id of the currently visible screen:
166
 `const visibleScreenInstanceId = await Navigation.getCurrentlyVisibleScreenId()`
166
 `const visibleScreenInstanceId = await Navigation.getCurrentlyVisibleScreenId()`
167
-In order to have any use of this method, you'd need to map instanceId to screens your self. -->
167
+In order to have any use of this method, you'd need to map instanceId to screens your self. -->