浏览代码

added missing options (#2408)

* added missing options

* generated docs

* generated docs
yogevbd 6 年前
父节点
当前提交
b3bf0b7d23

+ 1
- 0
docs/docs/options/BottomTab.md 查看文件

@@ -9,4 +9,5 @@
9 9
 | icon | <code>object</code> | 
10 10
 | visible | <code>boolean</code> | 
11 11
 | badge | <code>string</code> | 
12
+| testID | <code>string</code> | 
12 13
 

+ 1
- 0
docs/docs/options/BottomTabs.md 查看文件

@@ -8,4 +8,5 @@
8 8
 | currentTabIndex | <code>number</code> | 
9 9
 | hidden | <code>boolean</code> | 
10 10
 | animateHide | <code>boolean</code> | 
11
+| testID | <code>string</code> | 
11 12
 

+ 8
- 2
docs/docs/options/TopBar.md 查看文件

@@ -5,12 +5,18 @@
5 5
 | Name | Type |
6 6
 | --- | --- |
7 7
 | title | <code>string</code> | 
8
-| backgroundColor | <code>color</code> | 
9
-| textColor | <code>color</code> | 
8
+| backgroundColor | <code>string</code> | 
9
+| textColor | <code>string</code> | 
10
+| buttonColor | <code>string</code> | 
10 11
 | textFontSize | <code>number</code> | 
11 12
 | textFontFamily | <code>string</code> | 
13
+| testID | <code>string</code> | 
12 14
 | hidden | <code>boolean</code> | 
13 15
 | animateHide | <code>boolean</code> | 
14 16
 | hideOnScroll | <code>boolean</code> | 
15 17
 | transparent | <code>boolean</code> | 
18
+| translucent | <code>boolean</code> | 
19
+| blur | <code>boolean</code> | 
20
+| noBorder | <code>boolean</code> | 
21
+| largeTitle | <code>boolean</code> | 
16 22
 

+ 3
- 0
lib/src/params/options/BottomTab.js 查看文件

@@ -7,6 +7,7 @@ class BottomTab {
7 7
    * @property {object} [icon]
8 8
    * @property {boolean} [visible]
9 9
    * @property {string} [badge]
10
+   * @property {string} [testID]
10 11
    */
11 12
   constructor(params) {
12 13
     if (isEmpty(params)) {
@@ -17,6 +18,8 @@ class BottomTab {
17 18
     this.title = params.title;
18 19
     this.icon = params.icon;
19 20
     this.visible = params.visible;
21
+    this.testID = params.testID;
22
+    this.tag = params.tag;
20 23
   }
21 24
 }
22 25
 

+ 2
- 0
lib/src/params/options/BottomTabs.js 查看文件

@@ -6,6 +6,7 @@ class BottomTabs {
6 6
    * @property {number} [currentTabIndex]
7 7
    * @property {boolean} [hidden]
8 8
    * @property {boolean} [animateHide]
9
+   * @property {string} [testID]
9 10
    */
10 11
   constructor(params) {
11 12
     if (isEmpty(params)) {
@@ -15,6 +16,7 @@ class BottomTabs {
15 16
     this.currentTabIndex = params.currentTabIndex;
16 17
     this.hidden = params.hidden;
17 18
     this.animateHide = params.animateHide;
19
+    this.testID = params.testID;
18 20
   }
19 21
 }
20 22
 

+ 14
- 2
lib/src/params/options/TopBar.js 查看文件

@@ -1,14 +1,20 @@
1 1
 class TopBar {
2 2
   /**
3 3
    * @property {string} [title]
4
-   * @property {color} [backgroundColor]
5
-   * @property {color} [textColor]
4
+   * @property {string} [backgroundColor]
5
+   * @property {string} [textColor]
6
+   * @property {string} [buttonColor]
6 7
    * @property {number} [textFontSize]
7 8
    * @property {string} [textFontFamily]
9
+   * @property {string} [testID]
8 10
    * @property {boolean} [hidden]
9 11
    * @property {boolean} [animateHide]
10 12
    * @property {boolean} [hideOnScroll]
11 13
    * @property {boolean} [transparent]
14
+   * @property {boolean} [translucent]
15
+   * @property {boolean} [blur]
16
+   * @property {boolean} [noBorder]
17
+   * @property {boolean} [largeTitle]
12 18
    */
13 19
   constructor(options) {
14 20
     this.title = options.title;
@@ -20,6 +26,12 @@ class TopBar {
20 26
     this.animateHide = options.animateHide;
21 27
     this.hideOnScroll = options.hideOnScroll;
22 28
     this.transparent = options.transparent;
29
+    this.translucent = options.translucent;
30
+    this.buttonColor = options.buttonColor;
31
+    this.blur = options.blur;
32
+    this.noBorder = options.noBorder;
33
+    this.largeTitle = options.largeTitle;
34
+    this.testID = options.testID;
23 35
   }
24 36
 }
25 37