소스 검색

Update the document for tabsStyle in Android (#1869)

* Update the comment for tabsStyle in Android

* for -> on

* Update top-level-api.md
Ethan Yanjia Li 7 년 전
부모
커밋
d39e2b7f00
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      docs/top-level-api.md

+ 3
- 3
docs/top-level-api.md 파일 보기

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