From 432c9a308920d4657af66a77aaa1ecf56b44ac38 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 25 Dec 2017 16:57:24 +0200 Subject: [PATCH 1/3] added missing options --- lib/src/params/options/BottomTab.js | 3 +++ lib/src/params/options/BottomTabs.js | 2 ++ lib/src/params/options/TopBar.js | 12 ++++++++++++ 3 files changed, 17 insertions(+) diff --git a/lib/src/params/options/BottomTab.js b/lib/src/params/options/BottomTab.js index f3021a73871..9394af13ec0 100644 --- a/lib/src/params/options/BottomTab.js +++ b/lib/src/params/options/BottomTab.js @@ -7,6 +7,7 @@ class BottomTab { * @property {object} [icon] * @property {boolean} [visible] * @property {string} [badge] + * @property {string} [testID] */ constructor(params) { if (isEmpty(params)) { @@ -17,6 +18,8 @@ class BottomTab { this.title = params.title; this.icon = params.icon; this.visible = params.visible; + this.testID = params.testID; + this.tag = params.tag; } } diff --git a/lib/src/params/options/BottomTabs.js b/lib/src/params/options/BottomTabs.js index e8957227dea..38791ab2cad 100644 --- a/lib/src/params/options/BottomTabs.js +++ b/lib/src/params/options/BottomTabs.js @@ -6,6 +6,7 @@ class BottomTabs { * @property {number} [currentTabIndex] * @property {boolean} [hidden] * @property {boolean} [animateHide] + * @property {string} [testID] */ constructor(params) { if (isEmpty(params)) { @@ -15,6 +16,7 @@ class BottomTabs { this.currentTabIndex = params.currentTabIndex; this.hidden = params.hidden; this.animateHide = params.animateHide; + this.testID = params.testID; } } diff --git a/lib/src/params/options/TopBar.js b/lib/src/params/options/TopBar.js index 0afd4487fa5..9f286db5cb9 100644 --- a/lib/src/params/options/TopBar.js +++ b/lib/src/params/options/TopBar.js @@ -3,12 +3,18 @@ class TopBar { * @property {string} [title] * @property {color} [backgroundColor] * @property {color} [textColor] + * @property {color} [buttonColor] * @property {number} [textFontSize] * @property {string} [textFontFamily] + * @property {string} [testID] * @property {boolean} [hidden] * @property {boolean} [animateHide] * @property {boolean} [hideOnScroll] * @property {boolean} [transparent] + * @property {boolean} [translucent] + * @property {boolean} [blur] + * @property {boolean} [noBorder] + * @property {boolean} [largeTitle] */ constructor(options) { this.title = options.title; @@ -20,6 +26,12 @@ class TopBar { this.animateHide = options.animateHide; this.hideOnScroll = options.hideOnScroll; this.transparent = options.transparent; + this.translucent = options.translucent; + this.buttonColor = options.buttonColor; + this.blur = options.blur; + this.noBorder = options.noBorder; + this.largeTitle = options.largeTitle; + this.testID = options.testID; } } From 42b620bb3a2d43141e28c2ef663c8da61d539aaf Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 25 Dec 2017 17:08:14 +0200 Subject: [PATCH 2/3] generated docs --- docs/docs/options/BottomTab.md | 1 + docs/docs/options/BottomTabs.md | 1 + docs/docs/options/TopBar.md | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/docs/docs/options/BottomTab.md b/docs/docs/options/BottomTab.md index d8b87f4b967..6081e22f0d3 100644 --- a/docs/docs/options/BottomTab.md +++ b/docs/docs/options/BottomTab.md @@ -9,4 +9,5 @@ | icon | object | | visible | boolean | | badge | string | +| testID | string | diff --git a/docs/docs/options/BottomTabs.md b/docs/docs/options/BottomTabs.md index 2dbbebab7de..6ac26dc8696 100644 --- a/docs/docs/options/BottomTabs.md +++ b/docs/docs/options/BottomTabs.md @@ -8,4 +8,5 @@ | currentTabIndex | number | | hidden | boolean | | animateHide | boolean | +| testID | string | diff --git a/docs/docs/options/TopBar.md b/docs/docs/options/TopBar.md index ed632d9413e..0e09afdc078 100644 --- a/docs/docs/options/TopBar.md +++ b/docs/docs/options/TopBar.md @@ -7,10 +7,16 @@ | title | string | | backgroundColor | color | | textColor | color | +| buttonColor | color | | textFontSize | number | | textFontFamily | string | +| testID | string | | hidden | boolean | | animateHide | boolean | | hideOnScroll | boolean | | transparent | boolean | +| translucent | boolean | +| blur | boolean | +| noBorder | boolean | +| largeTitle | boolean | From 34b5d8a73f2d07da65cac21a19ec97c4bfa47163 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 25 Dec 2017 17:09:50 +0200 Subject: [PATCH 3/3] generated docs --- docs/docs/options/TopBar.md | 6 +++--- lib/src/params/options/TopBar.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/options/TopBar.md b/docs/docs/options/TopBar.md index 0e09afdc078..8706212b4a4 100644 --- a/docs/docs/options/TopBar.md +++ b/docs/docs/options/TopBar.md @@ -5,9 +5,9 @@ | Name | Type | | --- | --- | | title | string | -| backgroundColor | color | -| textColor | color | -| buttonColor | color | +| backgroundColor | string | +| textColor | string | +| buttonColor | string | | textFontSize | number | | textFontFamily | string | | testID | string | diff --git a/lib/src/params/options/TopBar.js b/lib/src/params/options/TopBar.js index 9f286db5cb9..05eb7870bc3 100644 --- a/lib/src/params/options/TopBar.js +++ b/lib/src/params/options/TopBar.js @@ -1,9 +1,9 @@ class TopBar { /** * @property {string} [title] - * @property {color} [backgroundColor] - * @property {color} [textColor] - * @property {color} [buttonColor] + * @property {string} [backgroundColor] + * @property {string} [textColor] + * @property {string} [buttonColor] * @property {number} [textFontSize] * @property {string} [textFontFamily] * @property {string} [testID]