Selaa lähdekoodia

added missing options (#2408)

* added missing options

* generated docs

* generated docs
yogevbd 6 vuotta sitten
vanhempi
commit
b3bf0b7d23

+ 1
- 0
docs/docs/options/BottomTab.md Näytä tiedosto

9
 | icon | <code>object</code> | 
9
 | icon | <code>object</code> | 
10
 | visible | <code>boolean</code> | 
10
 | visible | <code>boolean</code> | 
11
 | badge | <code>string</code> | 
11
 | badge | <code>string</code> | 
12
+| testID | <code>string</code> | 
12
 
13
 

+ 1
- 0
docs/docs/options/BottomTabs.md Näytä tiedosto

8
 | currentTabIndex | <code>number</code> | 
8
 | currentTabIndex | <code>number</code> | 
9
 | hidden | <code>boolean</code> | 
9
 | hidden | <code>boolean</code> | 
10
 | animateHide | <code>boolean</code> | 
10
 | animateHide | <code>boolean</code> | 
11
+| testID | <code>string</code> | 
11
 
12
 

+ 8
- 2
docs/docs/options/TopBar.md Näytä tiedosto

5
 | Name | Type |
5
 | Name | Type |
6
 | --- | --- |
6
 | --- | --- |
7
 | title | <code>string</code> | 
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
 | textFontSize | <code>number</code> | 
11
 | textFontSize | <code>number</code> | 
11
 | textFontFamily | <code>string</code> | 
12
 | textFontFamily | <code>string</code> | 
13
+| testID | <code>string</code> | 
12
 | hidden | <code>boolean</code> | 
14
 | hidden | <code>boolean</code> | 
13
 | animateHide | <code>boolean</code> | 
15
 | animateHide | <code>boolean</code> | 
14
 | hideOnScroll | <code>boolean</code> | 
16
 | hideOnScroll | <code>boolean</code> | 
15
 | transparent | <code>boolean</code> | 
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 Näytä tiedosto

7
    * @property {object} [icon]
7
    * @property {object} [icon]
8
    * @property {boolean} [visible]
8
    * @property {boolean} [visible]
9
    * @property {string} [badge]
9
    * @property {string} [badge]
10
+   * @property {string} [testID]
10
    */
11
    */
11
   constructor(params) {
12
   constructor(params) {
12
     if (isEmpty(params)) {
13
     if (isEmpty(params)) {
17
     this.title = params.title;
18
     this.title = params.title;
18
     this.icon = params.icon;
19
     this.icon = params.icon;
19
     this.visible = params.visible;
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 Näytä tiedosto

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

+ 14
- 2
lib/src/params/options/TopBar.js Näytä tiedosto

1
 class TopBar {
1
 class TopBar {
2
   /**
2
   /**
3
    * @property {string} [title]
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
    * @property {number} [textFontSize]
7
    * @property {number} [textFontSize]
7
    * @property {string} [textFontFamily]
8
    * @property {string} [textFontFamily]
9
+   * @property {string} [testID]
8
    * @property {boolean} [hidden]
10
    * @property {boolean} [hidden]
9
    * @property {boolean} [animateHide]
11
    * @property {boolean} [animateHide]
10
    * @property {boolean} [hideOnScroll]
12
    * @property {boolean} [hideOnScroll]
11
    * @property {boolean} [transparent]
13
    * @property {boolean} [transparent]
14
+   * @property {boolean} [translucent]
15
+   * @property {boolean} [blur]
16
+   * @property {boolean} [noBorder]
17
+   * @property {boolean} [largeTitle]
12
    */
18
    */
13
   constructor(options) {
19
   constructor(options) {
14
     this.title = options.title;
20
     this.title = options.title;
20
     this.animateHide = options.animateHide;
26
     this.animateHide = options.animateHide;
21
     this.hideOnScroll = options.hideOnScroll;
27
     this.hideOnScroll = options.hideOnScroll;
22
     this.transparent = options.transparent;
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