Pārlūkot izejas kodu

Document initialTabIndex

Guy Carmeli 7 gadus atpakaļ
vecāks
revīzija
fc83d3562a
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      docs/top-level-api.md

+ 2
- 1
docs/top-level-api.md Parādīt failu

@@ -52,7 +52,8 @@ Navigation.startTabBasedApp({
52 52
   tabsStyle: { // optional, add this if you want to style the tab bar beyond the defaults
53 53
     tabBarButtonColor: '#ffff00', // optional, change the color of the tab icons and text (also unselected)
54 54
     tabBarSelectedButtonColor: '#ff9900', // optional, change the color of the selected tab icon and text (only selected)
55
-    tabBarBackgroundColor: '#551A8B' // optional, change the background color of the tab bar
55
+    tabBarBackgroundColor: '#551A8B', // optional, change the background color of the tab bar
56
+    initialTabIndex: 1, // optional, the default selected bottom tab. Default: 0
56 57
   },
57 58
   appStyle: {
58 59
     orientation: 'portrait' // Sets a specific orientation to the entire app. Default: 'auto'. Supported values: 'auto', 'landscape', 'portrait'