Parcourir la 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 il y a 6 ans
Parent
révision
b12ee944ea
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      docs/docs/top-level-api-migration.md

+ 3
- 3
docs/docs/top-level-api-migration.md Voir le fichier

@@ -20,7 +20,7 @@ Navigation.setRoot({
20 20
           }],
21 21
           options: {
22 22
             bottomTab: {
23
-              title: 'Tab 1',
23
+              text: 'Tab 1',
24 24
               icon: require('../images/one.png'),
25 25
               testID: 'FIRST_TAB_BAR_BUTTON'
26 26
             }
@@ -35,7 +35,7 @@ Navigation.setRoot({
35 35
           },
36 36
           options: {
37 37
             bottomTab: {
38
-              title: 'Tab 2',
38
+              text: 'Tab 2',
39 39
               icon: require('../images/two.png'),
40 40
               testID: 'SECOND_TAB_BAR_BUTTON'
41 41
             }
@@ -164,4 +164,4 @@ Navigation.registerScreen('example.AdvancedScreen', () => AdvancedScreen);
164 164
 
165 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 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. -->