diff --git a/dist/src/basic/Fab.js b/dist/src/basic/Fab.js
index 212954e78..0ab6d3210 100644
--- a/dist/src/basic/Fab.js
+++ b/dist/src/basic/Fab.js
@@ -200,23 +200,25 @@ return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
-var icon=_lodash2.default.remove(childrenArray,function(item){
-if(item.type.displayName==="Styled(Icon)"||item.type.displayName==="Styled(IconNB)"){
-return true;
-}
-});
+
+
+
+
+
var newChildren=[];
-{childrenArray.map(function(child,i){
+{
+childrenArray.slice(1).map(function(child,i){
newChildren.push(_react2.default.createElement(AnimatedFab,_extends({
style:_this3.getOtherButtonStyle(child,i)},
_this3.prepareButtonProps(child,i),{
fabButton:true,
-key:i,__source:{fileName:_jsxFileName,lineNumber:212}}),
+key:i,__source:{fileName:_jsxFileName,lineNumber:213}}),
child.props.children));
});
+
}
return newChildren;
}},{key:'upAnimate',value:function upAnimate()
@@ -337,11 +339,11 @@ this.containerWidth=this.containerWidth||new _reactNative.Animated.Value(0);
this.buttonScale=this.buttonScale||new _reactNative.Animated.Value(0);
}
return(
-_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:340}},
+_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:342}},
this.renderButtons(),
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this4.fabOnPress();}},
-this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:342}}),
+this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:344}}),
this.renderFab())));
diff --git a/dist/src/basic/Fab.js.map b/dist/src/basic/Fab.js.map
index c3ff96207..14448e922 100644
--- a/dist/src/basic/Fab.js.map
+++ b/dist/src/basic/Fab.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../src/basic/Fab.js"],"names":["AnimatedFab","createAnimatedComponent","Fab","props","state","buttons","undefined","active","pos","top","bottom","left","right","OS","direction","i","iconStyle","fab","height","width","borderRadius","elevation","justifyContent","alignItems","position","backgroundColor","container","fabTopValue","containerHeight","flexDirection","color","fontSize","lineHeight","buttonStyle","marginBottom","merge","getInitialStyle","containerStyle","defaultProps","style","incomingProps","clone","onPress","child","type","fabOtherBtns","inp","childrenArray","Children","toArray","children","icon","remove","item","displayName","setState","length","setTimeout","cloneElement","newChildren","map","push","getOtherButtonStyle","prepareButtonProps","spring","toValue","start","buttonScale","containerWidth","upAnimate","leftAnimate","rightAnimate","downAnimate","_animate","Value","getContainerStyle","renderButtons","fabOnPress","prepareFabProps","renderFab","propTypes","PropTypes","object","bool","string","StyledFab"],"mappings":";;;AAGA,4B;AACA;AACA;;AAEA;;AAEA;;AAEA,8B;AACA;AACA,mE;AACA,mD;;;AAGA,GAAMA,aAAc,sBAASC,uBAAT,gBAApB,C;;AAEMC,G;;;AAGJ,aAAYC,KAAZ,CAAmB;AACXA,KADW;AAEjB,MAAKC,KAAL,CAAa;AACXC,QAASC,SADE;AAEXC,OAAQ,KAFG,CAAb,CAFiB;;AAMlB,C;;AAEWC,G,CAAK;AACf,GAAIA,MAAQ,SAAZ,CAAuB;AACrB,MAAO;AACLC,IAAK,EADA;AAELC,OAAQJ,SAFH;AAGLK,KAAM,EAHD;AAILC,MAAON,SAJF,CAAP;;AAMD,CAPD,IAOO,IAAIE,MAAQ,aAAZ,CAA2B;AAChC,MAAO;AACLC,IAAKH,SADA;AAELI,OAAS,sBAASG,EAAT,GAAgB,KAAjB,CAA0B,EAA1B,CAA+B,EAFlC;AAGLF,KAAML,SAHD;AAILM,MAAO,EAJF,CAAP;;AAMD,CAPM,IAOA,IAAIJ,MAAQ,YAAZ,CAA0B;AAC/B,MAAO;AACLC,IAAKH,SADA;AAELI,OAAS,sBAASG,EAAT,GAAgB,KAAjB,CAA0B,EAA1B,CAA+B,EAFlC;AAGLF,KAAM,EAHD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AAL,CAAmB,GAAI,uBAASO,KAAb,CAAmB,CAAnB,CAAnB;AACD,CAJD,IAIO;AACL,KAAK9C,eAAL,CAAuB,KAAKA,eAAL,EAAwB,GAAI,uBAAS8C,KAAb,CAAmB,CAAnB,CAA/C;AACA,KAAKN,cAAL,CAAsB,KAAKA,cAAL,EAAuB,GAAI,uBAASM,KAAb,CAAmB,CAAnB,CAA7C;AACA,KAAKP,WAAL,CAAmB,KAAKA,WAAL,EAAoB,GAAI,uBAASO,KAAb,CAAmB,CAAnB,CAAvC;AACD;AACD;AACE,oDAAU,IAAV,EAAe,MAAO,KAAKC,iBAAL,EAAtB;AACG,KAAKC,aAAL,EADH;AAEE;AACE,QAAS,yBAAM,QAAKC,UAAL,EAAN,EADX;AAEM,KAAKC,eAAL,EAFN,EAE8B,cAAe,CAF7C;;AAIG,KAAKC,SAAL,EAJH,CAFF,CADF;;;;AAWD,C;;;AAGH7E,IAAI8E,SAAJ;AACK,sBAASA,SADd;AAEEzC,MAAO,gBAAM0C,SAAN,CAAgBC,MAFzB;AAGE3E,OAAQ,gBAAM0E,SAAN,CAAgBE,IAH1B;AAIErE,UAAW,gBAAMmE,SAAN,CAAgBG,MAJ7B;AAKE/C,eAAgB,gBAAM4C,SAAN,CAAgBC,MALlC;AAME1D,SAAU,gBAAMyD,SAAN,CAAgBG,MAN5B;;AAQA,GAAMC,WAAY,yCAAa,gBAAb,CAA+B,EAA/B,iCAAyDnF,GAAzD,CAAlB,C;;AAEeA,G,CAAbmF,S","file":"Fab.js","sourcesContent":["/* @flow */\n\n\nimport React, { Component } from 'react';\nimport { Button } from './Button';\nimport { Platform, Animated, TouchableOpacity } from 'react-native';\n// import View from './View';\nimport { Icon } from './Icon';\n// import Badge from './Badge';\nimport { IconNB } from './IconNB';\n// import Text from './Text';\nimport _ from 'lodash';\nimport { connectStyle } from 'native-base-shoutem-theme';\nimport mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';\nimport computeProps from '../Utils/computeProps';\n\n\nconst AnimatedFab = Animated.createAnimatedComponent(Button);\n\nclass Fab extends Component {\n\n\n constructor(props) {\n super(props);\n this.state = {\n buttons: undefined,\n active: false,\n };\n }\n\n fabTopValue(pos) {\n if (pos === 'topLeft') {\n return {\n top: 20,\n bottom: undefined,\n left: 20,\n right: undefined,\n };\n } else if (pos === 'bottomRight') {\n return {\n top: undefined,\n bottom: (Platform.OS === 'ios') ? 20 : 40,\n left: undefined,\n right: 20,\n };\n } else if (pos === 'bottomLeft') {\n return {\n top: undefined,\n bottom: (Platform.OS === 'ios') ? 20 : 40,\n left: 20,\n right: undefined,\n };\n } else if (pos === 'topRight') {\n return {\n top: 20,\n bottom: undefined,\n left: undefined,\n right: 20,\n };\n }\n }\n\n fabOtherBtns(direction, i) {\n if (direction === 'up') {\n return {\n top: undefined,\n bottom: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n left: 8,\n right: 0,\n };\n } else if (direction === 'left') {\n return {\n top: 8,\n bottom: 0,\n left: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : -((i * 50) + 50),\n right: 0,\n };\n } else if (direction === 'down') {\n return {\n top: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n bottom: 0,\n left: 8,\n right: 0,\n };\n } else if (direction === 'right') {\n return {\n top: 10,\n bottom: 0,\n left: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n right: 0,\n };\n }\n }\n\n getInitialStyle(iconStyle) {\n return {\n fab: {\n height: 56,\n width: 56,\n borderRadius: 28,\n elevation: 4,\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n bottom: 0,\n backgroundColor: 'blue',\n },\n container: {\n position: 'absolute',\n top: (this.props.position) ? this.fabTopValue(this.props.position).top : undefined,\n bottom: (this.props.position) ? this.fabTopValue(this.props.position).bottom : 20,\n right: (this.props.position) ? this.fabTopValue(this.props.position).right : 20,\n left: (this.props.position) ? this.fabTopValue(this.props.position).left : undefined,\n width: 56,\n height: this.containerHeight,\n flexDirection: (this.props.direction) ? ((this.props.direction == 'left || right') ? 'row' : 'column') : 'column',\n alignItems: 'center',\n },\n iconStyle: {\n color: '#fff',\n fontSize: 24,\n lineHeight: (Platform.OS === 'ios') ? 27 : undefined,\n ...iconStyle,\n },\n buttonStyle: {\n position: 'absolute',\n height: 40,\n width: 40,\n left: 7,\n borderRadius: 20,\n marginBottom: 10,\n backgroundColor: 'blue',\n },\n };\n }\n\n getContainerStyle() {\n return _.merge(this.getInitialStyle().container, this.props.containerStyle);\n }\n\n prepareFabProps() {\n const defaultProps = {\n style: this.getInitialStyle().fab,\n };\n const incomingProps = _.clone(this.props);\n delete incomingProps.onPress;\n\n return computeProps(incomingProps, defaultProps);\n }\n\n getOtherButtonStyle(child, i) {\n const type = {\n top: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).top) : undefined,\n left: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).left) : 8,\n right: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).right) : 0,\n bottom: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).bottom) : ((this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65)),\n };\n\n return _.merge(this.getInitialStyle().buttonStyle, child.props.style, type);\n }\n prepareButtonProps(child) {\n const inp = _.clone(child.props);\n delete inp.style;\n\n\n const defaultProps = {};\n\n return computeProps(inp, defaultProps);\n }\n\n componentDidMount() {\n const childrenArray = React.Children.toArray(this.props.children);\n const icon = _.remove(childrenArray, (item) => {\n if (item.type.displayName === 'Styled(Button)') {\n return true;\n }\n });\n this.setState({\n buttons: icon.length,\n });\n setTimeout(() => {\n this.setState({\n active: this.props.active,\n });\n }, 0);\n }\n\n renderFab() {\n const childrenArray = React.Children.toArray(this.props.children);\n const icon = _.remove(childrenArray, (item) => {\n if (item.type === Button) {\n return true;\n }\n });\n // this.setState({\n // buttons: icon.length\n // });\n return React.cloneElement(childrenArray[0], { style: this.getInitialStyle(childrenArray[0].props.style).iconStyle });\n }\n\n renderButtons() {\n const childrenArray = React.Children.toArray(this.props.children);\n const icon = _.remove(childrenArray, (item) => {\n if (item.type.displayName === \"Styled(Icon)\" || item.type.displayName === \"Styled(IconNB)\") {\n return true;\n }\n });\n\n const newChildren = [];\n\n { childrenArray.map((child, i) => {\n newChildren.push({child.props.children}\n );\n }\n ); }\n return newChildren;\n }\n upAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerHeight, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n leftAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerWidth, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n rightAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerWidth, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n downAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerHeight, {\n toValue: (56),\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n _animate() {\n const { props: { direction, position } } = this;\n if (this.props.direction) {\n if (this.props.direction === 'up') {\n this.upAnimate();\n } else if (this.props.direction === 'left') {\n this.leftAnimate();\n } else if (this.props.direction === 'right') {\n this.rightAnimate();\n } else if (this.props.direction === 'down') {\n this.downAnimate();\n }\n } else {\n this.upAnimate();\n }\n }\n\n fabOnPress() {\n if (this.props.onPress) {\n this.props.onPress();\n this._animate();\n }\n }\n\n render() {\n const { props: { active } } = this;\n if (!this.props.active) {\n this.containerHeight = new Animated.Value(56);\n this.containerWidth = new Animated.Value(56);\n this.buttonScale = new Animated.Value(1);\n } else {\n this.containerHeight = this.containerHeight || new Animated.Value(0);\n this.containerWidth = this.containerWidth || new Animated.Value(0);\n this.buttonScale = this.buttonScale || new Animated.Value(0);\n }\n return (\n \n {this.renderButtons()}\n this.fabOnPress()}\n {...this.prepareFabProps()} activeOpacity={1}\n >\n {this.renderFab()}\n \n \n );\n }\n}\n\nFab.propTypes = {\n ...Animated.propTypes,\n style: React.PropTypes.object,\n active: React.PropTypes.bool,\n direction: React.PropTypes.string,\n containerStyle: React.PropTypes.object,\n position: React.PropTypes.string,\n};\nconst StyledFab = connectStyle('NativeBase.Fab', {}, mapPropsToStyleNames)(Fab);\nexport {\n StyledFab as Fab,\n};\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../src/basic/Fab.js"],"names":["AnimatedFab","createAnimatedComponent","Fab","props","state","buttons","undefined","active","pos","top","bottom","left","right","OS","direction","i","iconStyle","fab","height","width","borderRadius","elevation","justifyContent","alignItems","position","backgroundColor","container","fabTopValue","containerHeight","flexDirection","color","fontSize","lineHeight","buttonStyle","marginBottom","merge","getInitialStyle","containerStyle","defaultProps","style","incomingProps","clone","onPress","child","type","fabOtherBtns","inp","childrenArray","Children","toArray","children","icon","remove","item","displayName","setState","length","setTimeout","cloneElement","newChildren","slice","map","push","getOtherButtonStyle","prepareButtonProps","spring","toValue","start","buttonScale","containerWidth","upAnimate","leftAnimate","rightAnimate","downAnimate","_animate","Value","getContainerStyle","renderButtons","fabOnPress","prepareF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AAEE1C,MAAO,gBAAM2C,SAAN,CAAgBC,MAFzB;AAGE5E,OAAQ,gBAAM2E,SAAN,CAAgBE,IAH1B;AAIEtE,UAAW,gBAAMoE,SAAN,CAAgBG,MAJ7B;AAKEhD,eAAgB,gBAAM6C,SAAN,CAAgBC,MALlC;AAME3D,SAAU,gBAAM0D,SAAN,CAAgBG,MAN5B;;AAQA,GAAMC,WAAY,yCAAa,gBAAb,CAA+B,EAA/B,iCAAyDpF,GAAzD,CAAlB,C;;AAEeA,G,CAAboF,S","file":"Fab.js","sourcesContent":["/* @flow */\n\n\nimport React, { Component } from 'react';\nimport { Button } from './Button';\nimport { Platform, Animated, TouchableOpacity } from 'react-native';\n// import View from './View';\nimport { Icon } from './Icon';\n// import Badge from './Badge';\nimport { IconNB } from './IconNB';\n// import Text from './Text';\nimport _ from 'lodash';\nimport { connectStyle } from 'native-base-shoutem-theme';\nimport mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';\nimport computeProps from '../Utils/computeProps';\n\n\nconst AnimatedFab = Animated.createAnimatedComponent(Button);\n\nclass Fab extends Component {\n\n\n constructor(props) {\n super(props);\n this.state = {\n buttons: undefined,\n active: false,\n };\n }\n\n fabTopValue(pos) {\n if (pos === 'topLeft') {\n return {\n top: 20,\n bottom: undefined,\n left: 20,\n right: undefined,\n };\n } else if (pos === 'bottomRight') {\n return {\n top: undefined,\n bottom: (Platform.OS === 'ios') ? 20 : 40,\n left: undefined,\n right: 20,\n };\n } else if (pos === 'bottomLeft') {\n return {\n top: undefined,\n bottom: (Platform.OS === 'ios') ? 20 : 40,\n left: 20,\n right: undefined,\n };\n } else if (pos === 'topRight') {\n return {\n top: 20,\n bottom: undefined,\n left: undefined,\n right: 20,\n };\n }\n }\n\n fabOtherBtns(direction, i) {\n if (direction === 'up') {\n return {\n top: undefined,\n bottom: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n left: 8,\n right: 0,\n };\n } else if (direction === 'left') {\n return {\n top: 8,\n bottom: 0,\n left: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : -((i * 50) + 50),\n right: 0,\n };\n } else if (direction === 'down') {\n return {\n top: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n bottom: 0,\n left: 8,\n right: 0,\n };\n } else if (direction === 'right') {\n return {\n top: 10,\n bottom: 0,\n left: (this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65),\n right: 0,\n };\n }\n }\n\n getInitialStyle(iconStyle) {\n return {\n fab: {\n height: 56,\n width: 56,\n borderRadius: 28,\n elevation: 4,\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n bottom: 0,\n backgroundColor: 'blue',\n },\n container: {\n position: 'absolute',\n top: (this.props.position) ? this.fabTopValue(this.props.position).top : undefined,\n bottom: (this.props.position) ? this.fabTopValue(this.props.position).bottom : 20,\n right: (this.props.position) ? this.fabTopValue(this.props.position).right : 20,\n left: (this.props.position) ? this.fabTopValue(this.props.position).left : undefined,\n width: 56,\n height: this.containerHeight,\n flexDirection: (this.props.direction) ? ((this.props.direction == 'left || right') ? 'row' : 'column') : 'column',\n alignItems: 'center',\n },\n iconStyle: {\n color: '#fff',\n fontSize: 24,\n lineHeight: (Platform.OS === 'ios') ? 27 : undefined,\n ...iconStyle,\n },\n buttonStyle: {\n position: 'absolute',\n height: 40,\n width: 40,\n left: 7,\n borderRadius: 20,\n marginBottom: 10,\n backgroundColor: 'blue',\n },\n };\n }\n\n getContainerStyle() {\n return _.merge(this.getInitialStyle().container, this.props.containerStyle);\n }\n\n prepareFabProps() {\n const defaultProps = {\n style: this.getInitialStyle().fab,\n };\n const incomingProps = _.clone(this.props);\n delete incomingProps.onPress;\n\n return computeProps(incomingProps, defaultProps);\n }\n\n getOtherButtonStyle(child, i) {\n const type = {\n top: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).top) : undefined,\n left: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).left) : 8,\n right: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).right) : 0,\n bottom: (this.props.direction) ? (this.fabOtherBtns(this.props.direction, i).bottom) : ((this.props.active === false) ? ((Platform.OS === 'ios') ? 8 : 8) : ((i * 50) + 65)),\n };\n\n return _.merge(this.getInitialStyle().buttonStyle, child.props.style, type);\n }\n prepareButtonProps(child) {\n const inp = _.clone(child.props);\n delete inp.style;\n\n\n const defaultProps = {};\n\n return computeProps(inp, defaultProps);\n }\n\n componentDidMount() {\n const childrenArray = React.Children.toArray(this.props.children);\n const icon = _.remove(childrenArray, (item) => {\n if (item.type.displayName === 'Styled(Button)') {\n return true;\n }\n });\n this.setState({\n buttons: icon.length,\n });\n setTimeout(() => {\n this.setState({\n active: this.props.active,\n });\n }, 0);\n }\n\n renderFab() {\n const childrenArray = React.Children.toArray(this.props.children);\n const icon = _.remove(childrenArray, (item) => {\n if (item.type === Button) {\n return true;\n }\n });\n // this.setState({\n // buttons: icon.length\n // });\n return React.cloneElement(childrenArray[0], { style: this.getInitialStyle(childrenArray[0].props.style).iconStyle });\n }\n\n renderButtons() {\n const childrenArray = React.Children.toArray(this.props.children);\n // const icon = _.remove(childrenArray, (item) => {\n // if (item.type.displayName === \"Styled(Icon)\" || item.type.displayName === \"Styled(IconNB)\") {\n // return true;\n // }\n // });\n\n const newChildren = [];\n\n {\n childrenArray.slice(1).map((child, i) => {\n newChildren.push({child.props.children}\n );\n }\n );\n }\n return newChildren;\n }\n upAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerHeight, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n leftAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerWidth, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n rightAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerWidth, {\n toValue: (this.state.buttons * 51.3) + 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n downAnimate() {\n if (!this.state.active) {\n Animated.spring(this.containerHeight, {\n toValue: (56),\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1,\n }).start();\n } else {\n this.setState({\n active: false,\n });\n Animated.spring(this.containerHeight, {\n toValue: 56,\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0,\n }).start();\n }\n }\n\n _animate() {\n const { props: { direction, position } } = this;\n if (this.props.direction) {\n if (this.props.direction === 'up') {\n this.upAnimate();\n } else if (this.props.direction === 'left') {\n this.leftAnimate();\n } else if (this.props.direction === 'right') {\n this.rightAnimate();\n } else if (this.props.direction === 'down') {\n this.downAnimate();\n }\n } else {\n this.upAnimate();\n }\n }\n\n fabOnPress() {\n if (this.props.onPress) {\n this.props.onPress();\n this._animate();\n }\n }\n\n render() {\n const { props: { active } } = this;\n if (!this.props.active) {\n this.containerHeight = new Animated.Value(56);\n this.containerWidth = new Animated.Value(56);\n this.buttonScale = new Animated.Value(1);\n } else {\n this.containerHeight = this.containerHeight || new Animated.Value(0);\n this.containerWidth = this.containerWidth || new Animated.Value(0);\n this.buttonScale = this.buttonScale || new Animated.Value(0);\n }\n return (\n \n {this.renderButtons()}\n this.fabOnPress()}\n {...this.prepareFabProps() } activeOpacity={1}\n >\n {this.renderFab()}\n \n \n );\n }\n}\n\nFab.propTypes = {\n ...Animated.propTypes,\n style: React.PropTypes.object,\n active: React.PropTypes.bool,\n direction: React.PropTypes.string,\n containerStyle: React.PropTypes.object,\n position: React.PropTypes.string,\n};\nconst StyledFab = connectStyle('NativeBase.Fab', {}, mapPropsToStyleNames)(Fab);\nexport {\n StyledFab as Fab,\n};\n"]}
\ No newline at end of file
diff --git a/dist/src/basic/Tabs/ScrollableTabBar.js b/dist/src/basic/Tabs/ScrollableTabBar.js
index dc68b8fd5..5834f4129 100644
--- a/dist/src/basic/Tabs/ScrollableTabBar.js
+++ b/dist/src/basic/Tabs/ScrollableTabBar.js
@@ -212,7 +212,7 @@ React.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
-if(JSON.stringify(this.props.tabs)!==JSON.stringify(nextProps.tabs)&&this.state._containerWidth){
+if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){
this.setState({_containerWidth:null});
}
},
diff --git a/dist/src/basic/Tabs/ScrollableTabBar.js.map b/dist/src/basic/Tabs/ScrollableTabBar.js.map
index d9b2a3fb7..1efa6b953 100644
--- a/dist/src/basic/Tabs/ScrollableTabBar.js.map
+++ b/dist/src/basic/Tabs/ScrollableTabBar.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../src/basic/Tabs/ScrollableTabBar.js"],"names":["React","require","ReactNative","View","Animated","StyleSheet","ScrollView","Platform","Dimensions","ViewPropTypes","Button","WINDOW_WIDTH","get","width","ScrollableTabBar","createClass","propTypes","goToPage","PropTypes","func","activeTab","number","tabs","array","backgroundColor","string","activeTextColor","inactiveTextColor","scrollOffset","style","tabStyle","tabsContainerStyle","renderTab","underlineStyle","onScroll","contextTypes","theme","object","getDefaultProps","getInitialState","_tabsMeasurements","_leftTabUnderline","Value","_widthTabUnderline","_containerWidth","componentDidMount","props","scrollValue","addListener","updateView","offset","position","Math","floor","value","pageOffset","tabCount","length","lastTabPosition","necessarilyMeasurementsCompleted","updateTabPanel","updateTabUnderline","isLastTab","_tabContainerMeasurements","_containerMeasurements","containerWidth","tabWidth","nextTabMeasurements","nextTabWidth","tabOffset","left","absolutePageOffset","newScrollX","OS","_scrollView","scrollTo","x","y","animated","rightBoundScroll","lineLeft","lineRight","right","nextTabLeft","nextTabRight","newLineLeft","newLineRight","state","setValue","name","page","isTabActive","onPressHandler","onLayoutHandler","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","headerContent","children","undefined","textColor","fontWeight","random","measureTab","event","nativeEvent","layout","height","_value","render","variables","context","tabUnderlineStyle","topTabBarActiveBorderColor","bottom","dynamicTabUnderline","styles","container","onContainerLayout","scrollView","onTabContainerLayout","map","bind","componentWillReceiveProps","nextProps","JSON","stringify","setState","e","StyledTab","mapPropsToStyleNames","ScrollableTab","create","tab","alignItems","justifyContent","paddingLeft","paddingRight","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderColor","flexDirection"],"mappings":";;AAEA;AACA,0D;AACA;AACA,8B,gIALA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C;;AAMEE,I;;;;;;;AAOED,W,CAPFC,I,CACAC,Q,CAMEF,W,CANFE,Q,CACAC,U,CAKEH,W,CALFG,U,CACAC,U,CAIEJ,W,CAJFI,U,CACAC,Q,CAGEL,W,CAHFK,Q,CACAC,U,CAEEN,W,CAFFM,U,CACAC,a,CACEP,W,CADFO,a;AAEF,GAAMC,QAAST,QAAQ,UAAR,CAAf;;AAEA,GAAMU,cAAeH,WAAWI,GAAX,CAAe,QAAf,EAAyBC,KAA9C;;AAEA,GAAMC,kBAAmBd,MAAMe,WAAN,CAAkB;AACzCC,UAAW;AACTC,SAAUjB,MAAMkB,SAAN,CAAgBC,IADjB;AAETC,UAAWpB,MAAMkB,SAAN,CAAgBG,MAFlB;AAGTC,KAAMtB,MAAMkB,SAAN,CAAgBK,KAHb;AAITC,gBAAiBxB,MAAMkB,SAAN,CAAgBO,MAJxB;AAKTC,gBAAiB1B,M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import { connectStyle, StyleProvider } from 'native-base-shoutem-theme';\nimport variable from './../../theme/variables/platform';\nimport { TabHeading, Text, TabContainer } from './../../index';\nimport _ from 'lodash';\nconst {\n View,\n Animated,\n StyleSheet,\n ScrollView,\n Platform,\n Dimensions,\n ViewPropTypes\n} = ReactNative;\nconst Button = require('./Button');\n\nconst WINDOW_WIDTH = Dimensions.get('window').width;\n\nconst ScrollableTabBar = React.createClass({\n propTypes: {\n goToPage: React.PropTypes.func,\n activeTab: React.PropTypes.number,\n tabs: React.PropTypes.array,\n backgroundColor: React.PropTypes.string,\n activeTextColor: React.PropTypes.string,\n inactiveTextColor: React.PropTypes.string,\n scrollOffset: React.PropTypes.number,\n style: ViewPropTypes.style,\n tabStyle: ViewPropTypes.style,\n tabsContainerStyle: ViewPropTypes.style,\n renderTab: React.PropTypes.func,\n underlineStyle: ViewPropTypes.style,\n onScroll:React.PropTypes.func,\n },\n contextTypes: {\n theme: React.PropTypes.object,\n },\n\n getDefaultProps() {\n return {\n scrollOffset: 52,\n activeTextColor: 'navy',\n inactiveTextColor: 'black',\n backgroundColor: null,\n style: {},\n tabStyle: {},\n tabsContainerStyle: {},\n underlineStyle: {},\n };\n },\n\n getInitialState() {\n this._tabsMeasurements = [];\n return {\n _leftTabUnderline: new Animated.Value(0),\n _widthTabUnderline: new Animated.Value(0),\n _containerWidth: null,\n };\n },\n\n componentDidMount() {\n this.props.scrollValue.addListener(this.updateView);\n },\n\n updateView(offset) {\n const position = Math.floor(offset.value);\n const pageOffset = offset.value % 1;\n const tabCount = this.props.tabs.length;\n const lastTabPosition = tabCount - 1;\n\n if (tabCount === 0 || offset.value < 0 || offset.value > lastTabPosition) {\n return;\n }\n\n if (this.necessarilyMeasurementsCompleted(position, position === lastTabPosition)) {\n this.updateTabPanel(position, pageOffset);\n this.updateTabUnderline(position, pageOffset, tabCount);\n }\n },\n\n necessarilyMeasurementsCompleted(position, isLastTab) {\n return this._tabsMeasurements[position] &&\n (isLastTab || this._tabsMeasurements[position + 1]) &&\n this._tabContainerMeasurements &&\n this._containerMeasurements;\n },\n\n updateTabPanel(position, pageOffset) {\n const containerWidth = this._containerMeasurements.width;\n const tabWidth = this._tabsMeasurements[position].width;\n const nextTabMeasurements = this._tabsMeasurements[position + 1];\n const nextTabWidth = nextTabMeasurements && nextTabMeasurements.width || 0;\n const tabOffset = this._tabsMeasurements[position].left;\n const absolutePageOffset = pageOffset * tabWidth;\n let newScrollX = tabOffset + absolutePageOffset;\n\n // center tab and smooth tab change (for when tabWidth changes a lot between two tabs)\n newScrollX -= (containerWidth - (1 - pageOffset) * tabWidth - pageOffset * nextTabWidth) / 2;\n newScrollX = newScrollX >= 0 ? newScrollX : 0;\n\n if (Platform.OS === 'android') {\n this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false, });\n } else {\n const rightBoundScroll = this._tabContainerMeasurements.width - (this._containerMeasurements.width);\n newScrollX = newScrollX > rightBoundScroll ? rightBoundScroll : newScrollX;\n this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false, });\n }\n\n },\n\n updateTabUnderline(position, pageOffset, tabCount) {\n const lineLeft = this._tabsMeasurements[position].left;\n const lineRight = this._tabsMeasurements[position].right;\n\n if (position < tabCount - 1) {\n const nextTabLeft = this._tabsMeasurements[position + 1].left;\n const nextTabRight = this._tabsMeasurements[position + 1].right;\n\n const newLineLeft = (pageOffset * nextTabLeft + (1 - pageOffset) * lineLeft);\n const newLineRight = (pageOffset * nextTabRight + (1 - pageOffset) * lineRight);\n\n this.state._leftTabUnderline.setValue(newLineLeft);\n this.state._widthTabUnderline.setValue(newLineRight - newLineLeft);\n } else {\n this.state._leftTabUnderline.setValue(lineLeft);\n this.state._widthTabUnderline.setValue(lineRight - lineLeft);\n }\n },\n\n renderTab(name, page, isTabActive, onPressHandler, onLayoutHandler, tabStyle, activeTabStyle, textStyle, activeTextStyle, tabHeaderStyle) {\n const headerContent = (typeof name!=='string') ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? 'bold' : 'normal';\n\n if (typeof name==='string') {\n return ;\n }\n else {\n return \n }\n },\n\n measureTab(page, event) {\n const { x, width, height, } = event.nativeEvent.layout;\n this._tabsMeasurements[page] = {left: x, right: x + width, width, height, };\n this.updateView({value: this.props.scrollValue._value, });\n },\n\n render() {\n const variables = (this.context.theme) ? this.context.theme['@@shoutem.theme/themeStyle'].variables : variable;\n const tabUnderlineStyle = {\n position: 'absolute',\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const dynamicTabUnderline = {\n left: this.state._leftTabUnderline,\n width: this.state._widthTabUnderline,\n };\n\n return \n { this._scrollView = scrollView; }}\n horizontal={true}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n directionalLockEnabled={true}\n onScroll={this.props.onScroll}\n bounces={false}\n scrollsToTop={false}\n >\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(name, page, isTabActive, this.props.goToPage, this.measureTab.bind(this, page), this.props.tabStyle[page], this.props.activeTabStyle[page], this.props.textStyle[page], this.props.activeTextStyle[page], this.props.tabHeaderStyle[page]);\n })}\n \n \n \n ;\n },\n\n componentWillReceiveProps(nextProps) {\n // If the tabs change, force the width of the tabs container to be recalculated\n if (JSON.stringify(this.props.tabs) !== JSON.stringify(nextProps.tabs) && this.state._containerWidth) {\n this.setState({ _containerWidth: null, });\n }\n },\n\n onTabContainerLayout(e) {\n this._tabContainerMeasurements = e.nativeEvent.layout;\n let width = this._tabContainerMeasurements.width;\n if (width < WINDOW_WIDTH) {\n width = WINDOW_WIDTH;\n }\n this.setState({ _containerWidth: width, });\n this.updateView({value: this.props.scrollValue._value, });\n },\n\n onContainerLayout(e) {\n this._containerMeasurements = e.nativeEvent.layout;\n this.updateView({value: this.props.scrollValue._value, });\n },\n});\n\n// module.exports = ScrollableTabBar;\nconst StyledTab = connectStyle('NativeBase.ScrollableTab', {}, mapPropsToStyleNames)(ScrollableTabBar);\nexport {\n StyledTab as ScrollableTab,\n};\nconst styles = StyleSheet.create({\n tab: {\n height: 49,\n alignItems: 'center',\n justifyContent: 'center',\n paddingLeft: 20,\n paddingRight: 20,\n },\n container: {\n height: 50,\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderColor: '#ccc',\n },\n tabs: {\n flexDirection: 'row',\n justifyContent: 'space-around',\n },\n});\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../src/basic/Tabs/ScrollableTabBar.js"],"names":["React","require","ReactNative","View","Animated","StyleSheet","ScrollView","Platform","Dimensions","ViewPropTypes","Button","WINDOW_WIDTH","get","width","ScrollableTabBar","createClass","propTypes","goToPage","PropTypes","func","activeTab","number","tabs","array","backgroundColor","string","activeTextColor","inactiveTextColor","scrollOffset","style","tabStyle","tabsContainerStyle","renderTab","underlineStyle","onScroll","contextTypes","theme","object","getDefaultProps","getInitialState","_tabsMeasurements","_leftTabUnderline","Value","_widthTabUnderline","_containerWidth","componentDidMount","props","scrollValue","addListener","updateView","offset","position","Math","floor","value","pageOffset","tabCount","length","lastTabPosition","necessarilyMeasurementsCompleted","updateTabPanel","updateTabUnderline","isLastTab","_tabContainerMeasurements","_containerMeasurements","containerWidth","tabWidth","nextTabMeasurements","nextTabWidth","tabOffset","left","absolutePageOffset","newScrollX","OS","_scrollView","scrollTo","x","y","animated","rightBoundScroll","lineLeft","lineRight","right","nextTabLeft","nextTabRight","newLineLeft","newLineRight","state","setValue","name","page","isTabActive","onPressHandler","onLayoutHandler","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","headerContent","children","undefined","textColor","fontWeight","random","measureTab","event","nativeEvent","layout","height","_value","render","variables","context","tabUnderlineStyle","topTabBarActiveBorderColor","bottom","dynamicTabUnderline","styles","container","onContainerLayout","scrollView","onTabContainerLayout","map","bind","componentWillReceiveProps","nextProps","isEqual","setState","e","StyledTab","mapPropsToStyleNames","ScrollableTab","create","tab","alignItems","justifyContent","paddingLeft","paddingRight","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderColor","flexDirection"],"mappings":";;AAEA;AACA,0D;AACA;AACA,8B,gIALA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C;;AAMEE,I;;;;;;;AAOED,W,CAPFC,I,CACAC,Q,CAMEF,W,CANFE,Q,CACAC,U,CAKEH,W,CALFG,U,CACAC,U,CAIEJ,W,CAJFI,U,CACAC,Q,CAGEL,W,CAHFK,Q,CACAC,U,CAEEN,W,CAFFM,U,CACAC,a,CACEP,W,CADFO,a;AAEF,GAAMC,QAAST,QAAQ,UAAR,CAAf;;AAEA,GAAMU,cAAeH,WAAWI,GAAX,CAAe,QAAf,EAAyBC,KAA9C;;AAEA,GAAMC,kBAAmBd,MAAMe,WAAN,CAAkB;AACzCC,UAAW;AACTC,SAAUjB,MAAMkB,SAAN,CAAgBC,IADjB;AAETC,UAAWpB,MAAMkB,SAAN,CAAgBG,MAFlB;AAGTC,KAAMtB,MAAMkB,SAAN,CAAgBK,KAHb;AAITC,gBAAiBxB,MAAMkB,SAAN,CAAgBO,MAJxB;AAKTC,gBAAiB1B,MAAMkB,SAAN,CAAgBO,MALxB;AAMTE,kBAAmB3B,MAAMkB,SAAN,CAAgBO,MAN1B;AAOTG,aAAc5B,MAAMkB,SAAN,CAAgBG,MAPrB;AAQTQ,MAAOpB,cAAcoB,KARZ;AASTC,SAAUrB,cAAcoB,KATf;AAUTE,mBAAoBtB,cAAcoB,KAVzB;AAWTG,UAAWhC,MAAMkB,SAAN,CAAgBC,IAXlB;AAYTc,eAAgBxB,cAAcoB,KAZrB;AAaTK,SAASlC,MAAMkB,SAAN,CAAgBC,IAbhB,CAD8B;;AAgBzCgB,aAAc;AACZC,MAAOpC,MAAMkB,SAAN,CAAgBmB,MADX,CAhB2B;;;AA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AACD,CAhNwC;;AAkNzCU,iBAlNyC,4BAkNvBS,CAlNuB,CAkNpB;AACnB,KAAKhE,sBAAL,CAA8BgE,EAAEtB,WAAF,CAAcC,MAA5C;AACA,KAAK1D,UAAL,CAAgB,CAACK,MAAO,KAAKR,KAAL,CAAWC,WAAX,CAAuB8D,MAA/B,CAAhB;AACD,CArNwC,CAAlB,CAAzB;;;;AAyNA,GAAMoB,WAAY,yCAAa,0BAAb,CAAyC,EAAzC,CAA6CC,oBAA7C,EAAmEpH,gBAAnE,CAAlB,C;;AAEeqH,a,CAAbF,S;;AAEF,GAAMZ,QAAShH,WAAW+H,MAAX,CAAkB;AAC/BC,IAAK;AACHzB,OAAQ,EADL;AAEH0B,WAAY,QAFT;AAGHC,eAAgB,QAHb;AAIHC,YAAa,EAJV;AAKHC,aAAc,EALX,CAD0B;;AAQ/BnB,UAAW;AACTV,OAAQ,EADC;AAET8B,YAAa,CAFJ;AAGTC,eAAgB,CAHP;AAITC,gBAAiB,CAJR;AAKTC,iBAAkB,CALT;AAMTC,YAAa,MANJ,CARoB;;AAgB/BxH,KAAM;AACJyH,cAAe,KADX;AAEJR,eAAgB,cAFZ,CAhByB,CAAlB,CAAf","file":"ScrollableTabBar.js","sourcesContent":["const React = require('react');\nconst ReactNative = require('react-native');\nimport { connectStyle, StyleProvider } from 'native-base-shoutem-theme';\nimport variable from './../../theme/variables/platform';\nimport { TabHeading, Text, TabContainer } from './../../index';\nimport _ from 'lodash';\nconst {\n View,\n Animated,\n StyleSheet,\n ScrollView,\n Platform,\n Dimensions,\n ViewPropTypes\n} = ReactNative;\nconst Button = require('./Button');\n\nconst WINDOW_WIDTH = Dimensions.get('window').width;\n\nconst ScrollableTabBar = React.createClass({\n propTypes: {\n goToPage: React.PropTypes.func,\n activeTab: React.PropTypes.number,\n tabs: React.PropTypes.array,\n backgroundColor: React.PropTypes.string,\n activeTextColor: React.PropTypes.string,\n inactiveTextColor: React.PropTypes.string,\n scrollOffset: React.PropTypes.number,\n style: ViewPropTypes.style,\n tabStyle: ViewPropTypes.style,\n tabsContainerStyle: ViewPropTypes.style,\n renderTab: React.PropTypes.func,\n underlineStyle: ViewPropTypes.style,\n onScroll:React.PropTypes.func,\n },\n contextTypes: {\n theme: React.PropTypes.object,\n },\n\n getDefaultProps() {\n return {\n scrollOffset: 52,\n activeTextColor: 'navy',\n inactiveTextColor: 'black',\n backgroundColor: null,\n style: {},\n tabStyle: {},\n tabsContainerStyle: {},\n underlineStyle: {},\n };\n },\n\n getInitialState() {\n this._tabsMeasurements = [];\n return {\n _leftTabUnderline: new Animated.Value(0),\n _widthTabUnderline: new Animated.Value(0),\n _containerWidth: null,\n };\n },\n\n componentDidMount() {\n this.props.scrollValue.addListener(this.updateView);\n },\n\n updateView(offset) {\n const position = Math.floor(offset.value);\n const pageOffset = offset.value % 1;\n const tabCount = this.props.tabs.length;\n const lastTabPosition = tabCount - 1;\n\n if (tabCount === 0 || offset.value < 0 || offset.value > lastTabPosition) {\n return;\n }\n\n if (this.necessarilyMeasurementsCompleted(position, position === lastTabPosition)) {\n this.updateTabPanel(position, pageOffset);\n this.updateTabUnderline(position, pageOffset, tabCount);\n }\n },\n\n necessarilyMeasurementsCompleted(position, isLastTab) {\n return this._tabsMeasurements[position] &&\n (isLastTab || this._tabsMeasurements[position + 1]) &&\n this._tabContainerMeasurements &&\n this._containerMeasurements;\n },\n\n updateTabPanel(position, pageOffset) {\n const containerWidth = this._containerMeasurements.width;\n const tabWidth = this._tabsMeasurements[position].width;\n const nextTabMeasurements = this._tabsMeasurements[position + 1];\n const nextTabWidth = nextTabMeasurements && nextTabMeasurements.width || 0;\n const tabOffset = this._tabsMeasurements[position].left;\n const absolutePageOffset = pageOffset * tabWidth;\n let newScrollX = tabOffset + absolutePageOffset;\n\n // center tab and smooth tab change (for when tabWidth changes a lot between two tabs)\n newScrollX -= (containerWidth - (1 - pageOffset) * tabWidth - pageOffset * nextTabWidth) / 2;\n newScrollX = newScrollX >= 0 ? newScrollX : 0;\n\n if (Platform.OS === 'android') {\n this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false, });\n } else {\n const rightBoundScroll = this._tabContainerMeasurements.width - (this._containerMeasurements.width);\n newScrollX = newScrollX > rightBoundScroll ? rightBoundScroll : newScrollX;\n this._scrollView.scrollTo({x: newScrollX, y: 0, animated: false, });\n }\n\n },\n\n updateTabUnderline(position, pageOffset, tabCount) {\n const lineLeft = this._tabsMeasurements[position].left;\n const lineRight = this._tabsMeasurements[position].right;\n\n if (position < tabCount - 1) {\n const nextTabLeft = this._tabsMeasurements[position + 1].left;\n const nextTabRight = this._tabsMeasurements[position + 1].right;\n\n const newLineLeft = (pageOffset * nextTabLeft + (1 - pageOffset) * lineLeft);\n const newLineRight = (pageOffset * nextTabRight + (1 - pageOffset) * lineRight);\n\n this.state._leftTabUnderline.setValue(newLineLeft);\n this.state._widthTabUnderline.setValue(newLineRight - newLineLeft);\n } else {\n this.state._leftTabUnderline.setValue(lineLeft);\n this.state._widthTabUnderline.setValue(lineRight - lineLeft);\n }\n },\n\n renderTab(name, page, isTabActive, onPressHandler, onLayoutHandler, tabStyle, activeTabStyle, textStyle, activeTextStyle, tabHeaderStyle) {\n const headerContent = (typeof name!=='string') ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? 'bold' : 'normal';\n\n if (typeof name==='string') {\n return ;\n }\n else {\n return \n }\n },\n\n measureTab(page, event) {\n const { x, width, height, } = event.nativeEvent.layout;\n this._tabsMeasurements[page] = {left: x, right: x + width, width, height, };\n this.updateView({value: this.props.scrollValue._value, });\n },\n\n render() {\n const variables = (this.context.theme) ? this.context.theme['@@shoutem.theme/themeStyle'].variables : variable;\n const tabUnderlineStyle = {\n position: 'absolute',\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const dynamicTabUnderline = {\n left: this.state._leftTabUnderline,\n width: this.state._widthTabUnderline,\n };\n\n return \n { this._scrollView = scrollView; }}\n horizontal={true}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n directionalLockEnabled={true}\n onScroll={this.props.onScroll}\n bounces={false}\n scrollsToTop={false}\n >\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(name, page, isTabActive, this.props.goToPage, this.measureTab.bind(this, page), this.props.tabStyle[page], this.props.activeTabStyle[page], this.props.textStyle[page], this.props.activeTextStyle[page], this.props.tabHeaderStyle[page]);\n })}\n \n \n \n ;\n },\n\n componentWillReceiveProps(nextProps) {\n // If the tabs change, force the width of the tabs container to be recalculated\n if (!_.isEqual(this.props.tabs, nextProps.tabs) && this.state._containerWidth) {\n this.setState({ _containerWidth: null, });\n }\n },\n\n onTabContainerLayout(e) {\n this._tabContainerMeasurements = e.nativeEvent.layout;\n let width = this._tabContainerMeasurements.width;\n if (width < WINDOW_WIDTH) {\n width = WINDOW_WIDTH;\n }\n this.setState({ _containerWidth: width, });\n this.updateView({value: this.props.scrollValue._value, });\n },\n\n onContainerLayout(e) {\n this._containerMeasurements = e.nativeEvent.layout;\n this.updateView({value: this.props.scrollValue._value, });\n },\n});\n\n// module.exports = ScrollableTabBar;\nconst StyledTab = connectStyle('NativeBase.ScrollableTab', {}, mapPropsToStyleNames)(ScrollableTabBar);\nexport {\n StyledTab as ScrollableTab,\n};\nconst styles = StyleSheet.create({\n tab: {\n height: 49,\n alignItems: 'center',\n justifyContent: 'center',\n paddingLeft: 20,\n paddingRight: 20,\n },\n container: {\n height: 50,\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderColor: '#ccc',\n },\n tabs: {\n flexDirection: 'row',\n justifyContent: 'space-around',\n },\n});\n"]}
\ No newline at end of file
diff --git a/dist/src/index.js b/dist/src/index.js
index 9bc544442..0eb89e112 100644
--- a/dist/src/index.js
+++ b/dist/src/index.js
@@ -54,7 +54,6 @@ var _Tabs=require('./basic/Tabs');var _Tabs2=_interopRequireDefault(_Tabs);
var _DefaultTabBar=require('./basic/Tabs/DefaultTabBar');
var _ScrollableTabBar=require('./basic/Tabs/ScrollableTabBar');
var _STabs=require('./smart/STabs');
-
var _Subtitle=require('./backward/Widgets/Subtitle');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
(0,_init2.default)();exports.
diff --git a/dist/src/index.js.map b/dist/src/index.js.map
index 1637c3d3e..9c414e2b3 100644
--- a/dist/src/index.js.map
+++ b/dist/src/index.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../src/index.js"],"names":["Swipeout","getTheme","variables","StyleProvider","connectStyle","Drawer","Button","IconNB","Icon","Header","Form","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Content","Footer","Tab","Tabs","FooterTab","Picker","List","ListItem","Separator","DeckSwiper","Item","Subtitle","Label","Textarea","Gravatar","Col","Row","Grid","Text","STabs","TabContent","View","Toast","ScrollableTab","ActionSheet","TabHeading","TabContainer","DefaultTabBar","Segment","mapPropsToStyleNames","styleNames","props"],"mappings":"u/BAAA;AACA;AACA;AACA;AACA,4B;AACA,8C;AACA,oD;AACA,sC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;AACA;AACA;AACA;;AAEA,qD;;AAEA,qB;;;AAGEA,Q;AACAC,Q;AACAC,S;AACAC,a;AACAC,Y;AACAC,M;AACAC,M;AACAC,M;AACAC,I;AACAC,M;AACAC,I;AACAC,U;AACAC,K;AACAC,K;AACAC,G;AACAC,I;AACAC,K;AACAC,I;AACAC,K;AACAC,Q;AACAC,K;AACAC,S;AACAC,I;AACAC,Q;AACAC,E;AACAC,E;AACAC,E;AACAC,O;AACAC,M;AACAC,S;AACAC,O;AACAC,M;AACAC,G;AACqBC,I;AACrBC,S;AACYC,M;AACZC,I;AACAC,Q;AACAC,S;AACAC,U;AACAC,I;AACAC,Q;AACAC,K;AACAC,Q;AACAC,Q;AACAC,G;AACAC,G;AACAC,I;AACAC,I;AACAC,K;AACAC,U;AACAC,I;AACkBC,K;AAClBC,a;AACwBC,W;AACxBC,U;AACAC,Y;AACAC,a;AACAC,O;;;AAGF,GAAMC,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,QAAuB,iBAAKA,KAAL,CAAvB,EAA7B,C;;AAESF,oB,CAAAA,oB","file":"index.js","sourcesContent":["import { StyleProvider, connectStyle } from 'native-base-shoutem-theme';\nimport { keys } from 'lodash';\nimport { Col, Row, Grid } from 'react-native-easy-grid';\nimport { Gravatar } from './backward/Widgets/Gravatar';\nimport setDefaultThemeStyle from './init';\nimport getTheme from './theme/components';\nimport variables from './theme/variables/platform';\nimport Drawer from './basic/Drawer';\nimport { Swipeout } from './basic/Swipe';\nimport { Text } from './basic/Text';\nimport { ViewNB as View } from './basic/View';\nimport { Button } from './basic/Button';\nimport { TabHeading } from './basic/TabHeading';\nimport { TabContainer } from './basic/TabContainer';\nimport { IconNB } from './basic/IconNB';\nimport { Icon } from './basic/Icon';\nimport { Header } from './basic/Header';\nimport { InputGroup } from './basic/InputGroup';\nimport { Input } from './basic/Input';\nimport { Title } from './basic/Title';\nimport { Fab } from './basic/Fab';\nimport { Left } from './basic/Left';\nimport { Right } from './basic/Right';\nimport { Body } from './basic/Body';\nimport { Badge } from './basic/Badge';\nimport { CheckBox } from './basic/Checkbox';\nimport { Radio } from './basic/Radio';\nimport { Thumbnail } from './basic/Thumbnail';\nimport { Card } from './basic/Card';\nimport { CardItem } from './basic/CardItem';\nimport { H1 } from './basic/H1';\nimport { H2 } from './basic/H2';\nimport { H3 } from './basic/H3';\nimport { Spinner } from './basic/Spinner';\nimport { Switch } from './basic/Switch';\nimport { Container } from './basic/Container';\nimport { Content } from './basic/Content';\nimport { Footer } from './basic/Footer';\nimport { FooterTab } from './basic/FooterTab';\nimport { Form } from './basic/Form';\nimport { ToastContainer } from './basic/ToastContainer';\nimport { ActionSheetContainer } from './basic/Actionsheet';\nimport { PickerNB } from './basic/Picker';\nimport { List } from './basic/List';\nimport { ListItem } from './basic/ListItem';\nimport { Separator } from './basic/Separator';\nimport { DeckSwiper } from './basic/DeckSwiper';\nimport { Item } from './basic/Item';\nimport { Segment } from './basic/Segment';\nimport { Label } from './basic/Label';\nimport { Textarea } from './basic/Textarea';\nimport { Tab } from './basic/Tab';\nimport ScrollableTabView from './basic/Tabs';\nimport { DefaultTabBar } from './basic/Tabs/DefaultTabBar';\nimport { ScrollableTab } from './basic/Tabs/ScrollableTabBar';\nimport { STabs } from './smart/STabs';\nimport { Content as TabContent } from './basic/Content';\nimport { Subtitle } from './backward/Widgets/Subtitle';\n\nsetDefaultThemeStyle();\n// Theme\nexport {\n Swipeout,\n getTheme,\n variables,\n StyleProvider,\n connectStyle,\n Drawer,\n Button,\n IconNB,\n Icon,\n Header,\n Form,\n InputGroup,\n Input,\n Title,\n Fab,\n Left,\n Right,\n Body,\n Badge,\n CheckBox,\n Radio,\n Thumbnail,\n Card,\n CardItem,\n H1,\n H2,\n H3,\n Spinner,\n Switch,\n Container,\n Content,\n Footer,\n Tab,\n ScrollableTabView as Tabs,\n FooterTab,\n PickerNB as Picker,\n List,\n ListItem,\n Separator,\n DeckSwiper,\n Item,\n Subtitle,\n Label,\n Textarea,\n Gravatar,\n Col,\n Row,\n Grid,\n Text,\n STabs,\n TabContent,\n View,\n ToastContainer as Toast,\n ScrollableTab,\n ActionSheetContainer as ActionSheet,\n TabHeading,\n TabContainer,\n DefaultTabBar,\n Segment\n};\n\nconst mapPropsToStyleNames = (styleNames, props) => keys(props);\n\nexport { mapPropsToStyleNames };\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../src/index.js"],"names":["Swipeout","getTheme","variables","StyleProvider","connectStyle","Drawer","Button","IconNB","Icon","Header","Form","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Content","Footer","Tab","Tabs","FooterTab","Picker","List","ListItem","Separator","DeckSwiper","Item","Subtitle","Label","Textarea","Gravatar","Col","Row","Grid","Text","STabs","TabContent","View","Toast","ScrollableTab","ActionSheet","TabHeading","TabContainer","DefaultTabBar","Segment","mapPropsToStyleNames","styleNames","props"],"mappings":"u/BAAA;AACA;AACA;AACA;AACA,4B;AACA,8C;AACA,oD;AACA,sC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;AACA;AACA;AACA;AACA,qD;;AAEA,qB;;;AAGEA,Q;AACAC,Q;AACAC,S;AACAC,a;AACAC,Y;AACAC,M;AACAC,M;AACAC,M;AACAC,I;AACAC,M;AACAC,I;AACAC,U;AACAC,K;AACAC,K;AACAC,G;AACAC,I;AACAC,K;AACAC,I;AACAC,K;AACAC,Q;AACAC,K;AACAC,S;AACAC,I;AACAC,Q;AACAC,E;AACAC,E;AACAC,E;AACAC,O;AACAC,M;AACAC,S;AACAC,O;AACAC,M;AACAC,G;AACqBC,I;AACrBC,S;AACYC,M;AACZC,I;AACAC,Q;AACAC,S;AACAC,U;AACAC,I;AACAC,Q;AACAC,K;AACAC,Q;AACAC,Q;AACAC,G;AACAC,G;AACAC,I;AACAC,I;AACAC,K;AACWC,U;AACXC,I;AACkBC,K;AAClBC,a;AACwBC,W;AACxBC,U;AACAC,Y;AACAC,a;AACAC,O;;;AAGF,GAAMC,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,QAAuB,iBAAKA,KAAL,CAAvB,EAA7B,C;;AAESF,oB,CAAAA,oB","file":"index.js","sourcesContent":["import { StyleProvider, connectStyle } from 'native-base-shoutem-theme';\nimport { keys } from 'lodash';\nimport { Col, Row, Grid } from 'react-native-easy-grid';\nimport { Gravatar } from './backward/Widgets/Gravatar';\nimport setDefaultThemeStyle from './init';\nimport getTheme from './theme/components';\nimport variables from './theme/variables/platform';\nimport Drawer from './basic/Drawer';\nimport { Swipeout } from './basic/Swipe';\nimport { Text } from './basic/Text';\nimport { ViewNB as View } from './basic/View';\nimport { Button } from './basic/Button';\nimport { TabHeading } from './basic/TabHeading';\nimport { TabContainer } from './basic/TabContainer';\nimport { IconNB } from './basic/IconNB';\nimport { Icon } from './basic/Icon';\nimport { Header } from './basic/Header';\nimport { InputGroup } from './basic/InputGroup';\nimport { Input } from './basic/Input';\nimport { Title } from './basic/Title';\nimport { Fab } from './basic/Fab';\nimport { Left } from './basic/Left';\nimport { Right } from './basic/Right';\nimport { Body } from './basic/Body';\nimport { Badge } from './basic/Badge';\nimport { CheckBox } from './basic/Checkbox';\nimport { Radio } from './basic/Radio';\nimport { Thumbnail } from './basic/Thumbnail';\nimport { Card } from './basic/Card';\nimport { CardItem } from './basic/CardItem';\nimport { H1 } from './basic/H1';\nimport { H2 } from './basic/H2';\nimport { H3 } from './basic/H3';\nimport { Spinner } from './basic/Spinner';\nimport { Switch } from './basic/Switch';\nimport { Container } from './basic/Container';\nimport { Content } from './basic/Content';\nimport { Footer } from './basic/Footer';\nimport { FooterTab } from './basic/FooterTab';\nimport { Form } from './basic/Form';\nimport { ToastContainer } from './basic/ToastContainer';\nimport { ActionSheetContainer } from './basic/Actionsheet';\nimport { PickerNB } from './basic/Picker';\nimport { List } from './basic/List';\nimport { ListItem } from './basic/ListItem';\nimport { Separator } from './basic/Separator';\nimport { DeckSwiper } from './basic/DeckSwiper';\nimport { Item } from './basic/Item';\nimport { Segment } from './basic/Segment';\nimport { Label } from './basic/Label';\nimport { Textarea } from './basic/Textarea';\nimport { Tab } from './basic/Tab';\nimport ScrollableTabView from './basic/Tabs';\nimport { DefaultTabBar } from './basic/Tabs/DefaultTabBar';\nimport { ScrollableTab } from './basic/Tabs/ScrollableTabBar';\nimport { STabs } from './smart/STabs';\nimport { Subtitle } from './backward/Widgets/Subtitle';\n\nsetDefaultThemeStyle();\n// Theme\nexport {\n Swipeout,\n getTheme,\n variables,\n StyleProvider,\n connectStyle,\n Drawer,\n Button,\n IconNB,\n Icon,\n Header,\n Form,\n InputGroup,\n Input,\n Title,\n Fab,\n Left,\n Right,\n Body,\n Badge,\n CheckBox,\n Radio,\n Thumbnail,\n Card,\n CardItem,\n H1,\n H2,\n H3,\n Spinner,\n Switch,\n Container,\n Content,\n Footer,\n Tab,\n ScrollableTabView as Tabs,\n FooterTab,\n PickerNB as Picker,\n List,\n ListItem,\n Separator,\n DeckSwiper,\n Item,\n Subtitle,\n Label,\n Textarea,\n Gravatar,\n Col,\n Row,\n Grid,\n Text,\n STabs,\n Content as TabContent,\n View,\n ToastContainer as Toast,\n ScrollableTab,\n ActionSheetContainer as ActionSheet,\n TabHeading,\n TabContainer,\n DefaultTabBar,\n Segment,\n};\n\nconst mapPropsToStyleNames = (styleNames, props) => keys(props);\n\nexport { mapPropsToStyleNames };\n"]}
\ No newline at end of file
diff --git a/dist/src/theme/variables/commonColor.js b/dist/src/theme/variables/commonColor.js
index 62b798fe1..2acbb1c04 100644
--- a/dist/src/theme/variables/commonColor.js
+++ b/dist/src/theme/variables/commonColor.js
@@ -170,7 +170,7 @@ toolbarTextColor:'#fff',
iosStatusbar:'light-content',
toolbarDefaultBorder:'#2874F0',
get statusBarColor(){
-return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hexString();
+return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();
},
@@ -243,7 +243,7 @@ radioBtnLineHeight:platform==='ios'?29:24,
radioColor:'#7e7e7e',
get radioSelectedColor(){
-return(0,_color2.default)(this.radioColor).darken(0.2).hexString();
+return(0,_color2.default)(this.radioColor).darken(0.2).hex();
},
@@ -280,7 +280,7 @@ borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
contentPadding:10,
get darkenHeader(){
-return(0,_color2.default)(this.tabBgColor).darken(0.03).hexString();
+return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();
},
dropdownBg:'#000',
diff --git a/dist/src/theme/variables/commonColor.js.map b/dist/src/theme/variables/commonColor.js.map
index 01ac168aa..b6c58ea47 100644
--- a/dist/src/theme/variables/commonColor.js.map
+++ b/dist/src/theme/variables/commonColor.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../src/theme/variables/commonColor.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","undefined","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","iosStatusbar","toolbarDefaultBorder","statusBarColor","darken","hexString","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAe,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAc,wBAAWF,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAW,sBAASC,EAA1B;AACA,GAAMC,eAAgBC,SAAtB,C;;AAEe;AACbD,2BADa;AAEbF,iBAFa;;AAIbI,cAAe,IAJF;AAKbC,mBAAoB,0BALP;AAMbC,uBAAwB,qBANX;;;AASbC,QAAS,SATI;AAUbC,WAAY,MAVC;;AAYbC,aAAeT,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAZ5B;;;AAebU,cAAgBV,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,KAAKD,UAAX,EAAuBlC,MAAvB,CAA8B,GAA9B,EAAmCC,SAAnC,EAAP;AACD,CA7OY;;;;AAiPbmC,oBAAqB,SAjPR;AAkPbC,oBAAqB,SAlPR;;;;AAsPbC,WAAY,SAtPC;AAuPbC,YAAa,EAvPA;AAwPbC,aAAc,SAxPD;;;;AA4PblG,UAAW,MA5PE;AA6PbI,iBAAkB,MA7PL;AA8Pb+F,aAAc,EA9PD;;;;AAkQbC,gBAAkBnI,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAlQtC;AAmQboI,cAAgBpI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAnQ9B;AAoQbqI,iBAAmBrI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EApQjC;AAqQbsI,cAAe,MArQF;;;AAwQbC,eAAgB,MAxQH;;;;AA4QbC,iBAAmBxI,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CA5QhC;AA6QbyI,YAAc,EAAE,wBAAWC,yBAAX,CAAqC,CAArC,CA7QH;AA8QbC,eAAgB,EA9QH;;AAgRb,GAAIC,aAAJ,EAAmB;AACjB,MAAO,oBAAM,KAAKb,UAAX,EAAuBtC,MAAvB,CAA8B,IAA9B,EAAoCC,SAApC,EAAP;AACD,CAlRY;;AAoRbmD,WAAY,MApRC;AAqRbC,kBAAmB,SArRN;AAsRbC,gBAAiB,EAtRJ;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"commonColor.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: (platform === 'ios') ? 13 : 0,\n CheckboxBorderWidth: (platform === 'ios') ? 1 : 2,\n CheckboxPaddingLeft: (platform === 'ios') ? 4 : 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 21 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? (23 / 0.9) : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: '#3F51B5',\n segmentActiveBackgroundColor: '#fff',\n segmentTextColor: '#fff',\n segmentActiveTextColor: '#3F51B5',\n segmentBorderColor: '#fff',\n segmentBorderColorMain: '#3F51B5',\n \n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: '#2874F0',\n brandInfo: '#62B1F6',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: (platform === 'ios') ? 'System' : 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: '#2874F0',\n\n\n // FooterTab\n tabBarTextColor: '#8bb3f4',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: (platform === 'ios') ? '#007aff' : '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: '#fff',\n tabActiveBgColor: (platform === 'ios') ? '#1569f4' : undefined,\n\n // Tab\n tabDefaultBg: '#2874F0',\n topTabBarTextColor: '#b3c7f9',\n topTabBarActiveTextColor: '#fff',\n topTabActiveBgColor: (platform === 'ios') ? '#1569f4' : undefined,\n topTabBarBorderColor: '#fff',\n topTabBarActiveBorderColor: '#fff',\n\n\n // Header\n toolbarBtnColor: '#fff',\n toolbarDefaultBg: '#2874F0',\n toolbarHeight: (platform === 'ios') ? 64 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: (platform === 'ios') ? '#CECDD2' : '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: '#fff',\n iosStatusbar: 'light-content',\n toolbarDefaultBorder: '#2874F0',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hexString();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 33 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#5067FF',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hexString();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n titleFontSize: (platform === 'ios') ? 17 : 19,\n subTitleFontSize: (platform === 'ios') ? 12 : 14,\n subtitleColor: '#FFF',\n\n // New Variable\n titleFontColor: '#FFF',\n\n\n // Other\n borderRadiusBase: (platform === 'ios') ? 5 : 2,\n borderWidth: (1/PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hexString();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../src/theme/variables/commonColor.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","undefined","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","iosStatusbar","toolbarDefaultBorder","statusBarColor","darken","hex","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAe,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAc,wBAAWF,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAW,sBAASC,EAA1B;AACA,GAAMC,eAAgBC,SAAtB,C;;AAEe;AACbD,2BADa;AAEbF,iBAFa;;AAIbI,cAAe,IAJF;AAKbC,mBAAoB,0BALP;AAMbC,uBAAwB,qBANX;;;AASbC,QAAS,SATI;AAUbC,WAAY,MAVC;;AAYbC,aAAeT,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAZ5B;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ACvB,MAAO,oBAAM,KAAKD,UAAX,EAAuBlC,MAAvB,CAA8B,GAA9B,EAAmCC,GAAnC,EAAP;AACD,CA7OY;;;;AAiPbmC,oBAAqB,SAjPR;AAkPbC,oBAAqB,SAlPR;;;;AAsPbC,WAAY,SAtPC;AAuPbC,YAAa,EAvPA;AAwPbC,aAAc,SAxPD;;;;AA4PblG,UAAW,MA5PE;AA6PbI,iBAAkB,MA7PL;AA8Pb+F,aAAc,EA9PD;;;;AAkQbC,gBAAkBnI,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAlQtC;AAmQboI,cAAgBpI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAnQ9B;AAoQbqI,iBAAmBrI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EApQjC;AAqQbsI,cAAe,MArQF;;;AAwQbC,eAAgB,MAxQH;;;;AA4QbC,iBAAmBxI,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CA5QhC;AA6QbyI,YAAc,EAAI,wBAAWC,yBAAX,CAAqC,CAArC,CA7QL;AA8QbC,eAAgB,EA9QH;;AAgRb,GAAIC,aAAJ,EAAmB;AACjB,MAAO,oBAAM,KAAKb,UAAX,EAAuBtC,MAAvB,CAA8B,IAA9B,EAAoCC,GAApC,EAAP;AACD,CAlRY;;AAoRbmD,WAAY,MApRC;AAqRbC,kBAAmB,SArRN;AAsRbC,gBAAiB,EAtRJ;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"commonColor.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: (platform === 'ios') ? 13 : 0,\n CheckboxBorderWidth: (platform === 'ios') ? 1 : 2,\n CheckboxPaddingLeft: (platform === 'ios') ? 4 : 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 21 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? (23 / 0.9) : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: '#3F51B5',\n segmentActiveBackgroundColor: '#fff',\n segmentTextColor: '#fff',\n segmentActiveTextColor: '#3F51B5',\n segmentBorderColor: '#fff',\n segmentBorderColorMain: '#3F51B5',\n\n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: '#2874F0',\n brandInfo: '#62B1F6',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: (platform === 'ios') ? 'System' : 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: '#2874F0',\n\n\n // FooterTab\n tabBarTextColor: '#8bb3f4',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: (platform === 'ios') ? '#007aff' : '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: '#fff',\n tabActiveBgColor: (platform === 'ios') ? '#1569f4' : undefined,\n\n // Tab\n tabDefaultBg: '#2874F0',\n topTabBarTextColor: '#b3c7f9',\n topTabBarActiveTextColor: '#fff',\n topTabActiveBgColor: (platform === 'ios') ? '#1569f4' : undefined,\n topTabBarBorderColor: '#fff',\n topTabBarActiveBorderColor: '#fff',\n\n\n // Header\n toolbarBtnColor: '#fff',\n toolbarDefaultBg: '#2874F0',\n toolbarHeight: (platform === 'ios') ? 64 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: (platform === 'ios') ? '#CECDD2' : '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: '#fff',\n iosStatusbar: 'light-content',\n toolbarDefaultBorder: '#2874F0',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hex();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 33 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#5067FF',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hex();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n titleFontSize: (platform === 'ios') ? 17 : 19,\n subTitleFontSize: (platform === 'ios') ? 12 : 14,\n subtitleColor: '#FFF',\n\n // New Variable\n titleFontColor: '#FFF',\n\n\n // Other\n borderRadiusBase: (platform === 'ios') ? 5 : 2,\n borderWidth: (1 / PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hex();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
diff --git a/dist/src/theme/variables/material.js b/dist/src/theme/variables/material.js
index 499b5293a..955dbba9e 100644
--- a/dist/src/theme/variables/material.js
+++ b/dist/src/theme/variables/material.js
@@ -170,7 +170,7 @@ toolbarTextColor:'#fff',
toolbarDefaultBorder:'#3F51B5',
iosStatusbar:'light-content',
get statusBarColor(){
-return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hexString();
+return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();
},
@@ -243,7 +243,7 @@ radioBtnLineHeight:platform==='ios'?29:24,
radioColor:'#7e7e7e',
get radioSelectedColor(){
-return(0,_color2.default)(this.radioColor).darken(0.2).hexString();
+return(0,_color2.default)(this.radioColor).darken(0.2).hex();
},
@@ -280,7 +280,7 @@ borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
contentPadding:10,
get darkenHeader(){
-return(0,_color2.default)(this.tabBgColor).darken(0.03).hexString();
+return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();
},
dropdownBg:'#000',
diff --git a/dist/src/theme/variables/material.js.map b/dist/src/theme/variables/material.js.map
index b816d5f5c..b6c726ce7 100644
--- a/dist/src/theme/variables/material.js.map
+++ b/dist/src/theme/variables/material.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../src/theme/variables/material.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","undefined","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hexString","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAe,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAc,wBAAWF,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAW,sBAASC,EAA1B;AACA,GAAMC,eAAgB,UAAtB,C;;AAEe;AACbA,2BADa;AAEbF,iBAFa;;AAIbG,cAAe,IAJF;AAKbC,mBAAoB,0BALP;AAMbC,uBAAwB,qBANX;;;AASbC,QAAS,SATI;AAUbC,WAAY,MAVC;;AAYbC,aAAeR,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAZ5B;;;AAebS,cAAgBT,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAfpC;AAgBbU,cAAe,SAhBF;AAiBbC,eAAgB,SAjBH;;;AAoBbC,eAAgB,CApBH;AAqBbC,oBAAqB,CArBR;AAsBbC,oBAAqB,CAtBR;AAuBbC,sBAAwBf,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAvBrC;AAwBbgB,iBAAmBhB,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAxBjC;AAyBbiB,sBAAwBjB,WAAa,KAAd,CAAuBkB,SAAvB,CAAmC,CAzB7C;AA0BbC,iBAAmBnB,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EA1BjC;AA2BboB,gBAAiB,EA3BJ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;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"material.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = 'material';\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'Roboto' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: 0,\n CheckboxBorderWidth: 2,\n CheckboxPaddingLeft: 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 18 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? 21 : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: '#3F51B5',\n segmentActiveBackgroundColor: '#fff',\n segmentTextColor: '#fff',\n segmentActiveTextColor: '#3F51B5',\n segmentBorderColor: '#fff',\n segmentBorderColorMain: '#3F51B5',\n\n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: '#3F51B5',\n brandInfo: '#3F57D3',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: '#3F51B5',\n\n\n // FooterTab\n tabBarTextColor: '#b3c7f9',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: '#fff',\n tabActiveBgColor: undefined,\n\n // Tab\n tabDefaultBg: '#3F51B5',\n topTabBarTextColor: '#b3c7f9',\n topTabBarActiveTextColor: '#fff',\n topTabActiveBgColor: undefined,\n topTabBarBorderColor: '#fff',\n topTabBarActiveBorderColor: '#fff',\n\n\n // Header\n toolbarBtnColor: '#fff',\n toolbarDefaultBg: '#3F51B5',\n toolbarHeight: (platform === 'ios') ? 76 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: '#fff',\n toolbarDefaultBorder: '#3F51B5',\n iosStatusbar: 'light-content',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hexString();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 29 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#5067FF',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hexString();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'Roboto' : 'Roboto_medium',\n titleFontSize: 19,\n subTitleFontSize: 14,\n subtitleColor: '#FFF',\n\n // New Variable\n titleFontColor: '#FFF',\n\n\n // Other\n borderRadiusBase: 2,\n borderWidth: (1/PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hexString();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../src/theme/variables/material.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","undefined","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAe,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAc,wBAAWF,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAW,sBAASC,EAA1B;AACA,GAAMC,eAAgB,UAAtB,C;;AAEe;AACbA,2BADa;AAEbF,iBAFa;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AlPR;;;;AAsPbC,WAAY,SAtPC;AAuPbC,YAAa,EAvPA;AAwPbC,aAAc,SAxPD;;;;AA4PblG,UAAW,MA5PE;AA6PbI,iBAAkB,MA7PL;AA8Pb+F,aAAc,EA9PD;;;;AAkQbC,gBAAkBnI,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAlQtC;AAmQboI,cAAe,EAnQF;AAoQbC,iBAAkB,EApQL;AAqQbC,cAAe,MArQF;;;AAwQbC,eAAgB,MAxQH;;;;AA4QbC,iBAAkB,CA5QL;AA6QbC,YAAc,EAAI,wBAAWC,yBAAX,CAAqC,CAArC,CA7QL;AA8QbC,eAAgB,EA9QH;;AAgRb,GAAIC,aAAJ,EAAmB;AACjB,MAAO,oBAAM,KAAKb,UAAX,EAAuBtC,MAAvB,CAA8B,IAA9B,EAAoCC,GAApC,EAAP;AACD,CAlRY;;AAoRbmD,WAAY,MApRC;AAqRbC,kBAAmB,SArRN;AAsRbC,gBAAiB,EAtRJ;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"material.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = 'material';\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'Roboto' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: 0,\n CheckboxBorderWidth: 2,\n CheckboxPaddingLeft: 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 18 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? 21 : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: '#3F51B5',\n segmentActiveBackgroundColor: '#fff',\n segmentTextColor: '#fff',\n segmentActiveTextColor: '#3F51B5',\n segmentBorderColor: '#fff',\n segmentBorderColorMain: '#3F51B5',\n\n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: '#3F51B5',\n brandInfo: '#3F57D3',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: '#3F51B5',\n\n\n // FooterTab\n tabBarTextColor: '#b3c7f9',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: '#fff',\n tabActiveBgColor: undefined,\n\n // Tab\n tabDefaultBg: '#3F51B5',\n topTabBarTextColor: '#b3c7f9',\n topTabBarActiveTextColor: '#fff',\n topTabActiveBgColor: undefined,\n topTabBarBorderColor: '#fff',\n topTabBarActiveBorderColor: '#fff',\n\n\n // Header\n toolbarBtnColor: '#fff',\n toolbarDefaultBg: '#3F51B5',\n toolbarHeight: (platform === 'ios') ? 76 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: '#fff',\n toolbarDefaultBorder: '#3F51B5',\n iosStatusbar: 'light-content',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hex();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 29 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#5067FF',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hex();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'Roboto' : 'Roboto_medium',\n titleFontSize: 19,\n subTitleFontSize: 14,\n subtitleColor: '#FFF',\n\n // New Variable\n titleFontColor: '#FFF',\n\n\n // Other\n borderRadiusBase: 2,\n borderWidth: (1 / PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hex();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
diff --git a/dist/src/theme/variables/platform.js b/dist/src/theme/variables/platform.js
index b738dfa31..423d40bd6 100644
--- a/dist/src/theme/variables/platform.js
+++ b/dist/src/theme/variables/platform.js
@@ -170,7 +170,7 @@ toolbarTextColor:platform==='ios'?'#000':'#fff',
toolbarDefaultBorder:platform==='ios'?'#a7a6ab':'#3F51B5',
iosStatusbar:platform==='ios'?'dark-content':'light-content',
get statusBarColor(){
-return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hexString();
+return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();
},
@@ -243,7 +243,7 @@ radioBtnLineHeight:platform==='ios'?29:24,
radioColor:'#7e7e7e',
get radioSelectedColor(){
-return(0,_color2.default)(this.radioColor).darken(0.2).hexString();
+return(0,_color2.default)(this.radioColor).darken(0.2).hex();
},
@@ -280,7 +280,7 @@ borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
contentPadding:10,
get darkenHeader(){
-return(0,_color2.default)(this.tabBgColor).darken(0.03).hexString();
+return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();
},
dropdownBg:'#000',
diff --git a/dist/src/theme/variables/platform.js.map b/dist/src/theme/variables/platform.js.map
index 0291e3d6a..9e960c73e 100644
--- a/dist/src/theme/variables/platform.js.map
+++ b/dist/src/theme/variables/platform.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../src/theme/variables/platform.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","undefined","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hexString","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,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;;AAiPbmC,oBAAqB,SAjPR;AAkPbC,oBAAqB,SAlPR;;;;AAsPbC,WAAY,SAtPC;AAuPbC,YAAa,EAvPA;AAwPbC,aAAc,SAxPD;;;;AA4PblG,UAAW,MA5PE;AA6PbI,iBAAkB,MA7PL;AA8Pb+F,aAAc,EA9PD;;;;AAkQbC,gBAAkBnI,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAlQtC;AAmQboI,cAAgBpI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAnQ9B;AAoQbqI,iBAAmBrI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EApQjC;AAqQbsI,cAAgBtI,WAAa,KAAd,CAAuB,SAAvB,CAAmC,MArQrC;;;AAwQbuI,eAAiBvI,WAAa,KAAd,CAAuB,MAAvB,CAAgC,MAxQnC;;;;AA4QbwI,iBAAmBxI,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CA5QhC;AA6QbyI,YAAc,EAAE,wBAAWC,yBAAX,CAAqC,CAArC,CA7QH;AA8QbC,eAAgB,EA9QH;;AAgRb,GAAIC,aAAJ,EAAmB;AACjB,MAAO,oBAAM,KAAKb,UAAX,EAAuBtC,MAAvB,CAA8B,IAA9B,EAAoCC,SAApC,EAAP;AACD,CAlRY;;AAoRbmD,WAAY,MApRC;AAqRbC,kBAAmB,SArRN;AAsRbC,gBAAiB,EAtRJ;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"platform.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: (platform === 'ios') ? 13 : 0,\n CheckboxBorderWidth: (platform === 'ios') ? 1 : 2,\n CheckboxPaddingLeft: (platform === 'ios') ? 4 : 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 21 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? (23 / 0.9) : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n segmentActiveBackgroundColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentActiveTextColor: (platform === 'ios') ? '#fff' : '#3F51B5',\n segmentBorderColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentBorderColorMain: (platform === 'ios') ? '#a7a6ab' : '#3F51B5',\n\n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: (platform === 'ios') ? '#007aff' : '#3F51B5',\n brandInfo: '#62B1F6',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: (platform === 'ios') ? 'System' : 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#4179F7',\n\n\n // FooterTab\n tabBarTextColor: (platform === 'ios') ? '#6b6b6b' : '#b3c7f9',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: (platform === 'ios') ? '#007aff' : '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n tabActiveBgColor: (platform === 'ios') ? '#cde1f9' : '#3F51B5',\n\n // Tab\n tabDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n topTabBarTextColor: (platform === 'ios') ? '#6b6b6b' : '#b3c7f9',\n topTabBarActiveTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n topTabActiveBgColor: (platform === 'ios') ? '#cde1f9' : undefined,\n topTabBarBorderColor: (platform === 'ios') ? '#a7a6ab' : '#fff',\n topTabBarActiveBorderColor: (platform === 'ios') ? '#007aff' : '#fff',\n\n\n // Header\n toolbarBtnColor: (platform === 'ios') ? '#007aff' : '#fff',\n toolbarDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n toolbarHeight: (platform === 'ios') ? 64 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: (platform === 'ios') ? '#CECDD2' : '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: (platform === 'ios') ? '#000' : '#fff',\n toolbarDefaultBorder: (platform === 'ios') ? '#a7a6ab' : '#3F51B5',\n iosStatusbar: (platform === 'ios') ? 'dark-content' : 'light-content',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hexString();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 33 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#3F51B5',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hexString();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n titleFontSize: (platform === 'ios') ? 17 : 19,\n subTitleFontSize: (platform === 'ios') ? 12 : 14,\n subtitleColor: (platform === 'ios') ? '#8e8e93' : '#FFF',\n\n // New Variable\n titleFontColor: (platform === 'ios') ? '#000' : '#FFF',\n\n\n // Other\n borderRadiusBase: (platform === 'ios') ? 5 : 2,\n borderWidth: (1/PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hexString();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../src/theme/variables/platform.js"],"names":["deviceHeight","get","height","deviceWidth","width","platform","OS","platformStyle","undefined","androidRipple","androidRippleColor","androidRippleColorDark","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","btnDisabledClr","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","DefaultFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultTextColor","textColor","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","buttonPadding","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","brandSidebar","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabActiveBgColor","topTabBarBorderColor","topTabBarActiveBorderColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarIconSize","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","toolbarInverseBg","toolbarTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","iconFamily","iconMargin","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputColor","inputColorPlaceholder","inputGroupMarginBottom","inputHeightBase","inputPaddingLeft","inputPaddingLeftIcon","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","iconLineHeight","lineHeight","listBorderColor","listDividerBg","listItemHeight","listBtnUnderlayColor","cardBorderColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","radioSelectedColor","defaultSpinnerColor","inverseSpinnerColor","tabBgColor","tabFontSize","tabTextColor","noteFontSize","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","getPixelSizeForLayoutSize","contentPadding","darkenHeader","dropdownBg","dropdownLinkColor","inputLineHeight","jumbotronBg","jumbotronPadding","inputGroupRoundedBorderRadius"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAe,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAc,wBAAWF,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAW,sBAASC,EAA1B;AACA,GAAMC,eAAgBC,SAAtB,C;;AAEe;AACbD,2BADa;AAEbF,iBAFa;;AAIbI,cAAe,IAJF;AAKbC,mBAAoB,0BALP;AAMbC,uBAAwB,qBANX;;;AASbC,QAAS,SATI;AAUbC,WAAY,MAVC;;AAYbC,aAAeT,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAZ5B;;;AAebU,cAAgBV,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAfpC;AAgBbW,cAAe,SAhBF;AAiBbC,eAAgB,SAjBH;;;AAoBbC,eAAiBb,WAAa,KAAd,CAAuB,EAAvB,CAA4B,CApB/B;AAqBbc,oBAAsBd,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CArBnC;AAsBbe,oBAAsBf,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAtBnC;AAuBbgB,sBAAwBhB,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CAvBrC;AAwBbiB,iBAAmBjB,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAxBjC;AAyBbkB,sBAAwBlB,WAAa,KAAd,CAAuBG,SAAvB,CAAmC,CAzB7C;AA0BbgB,iBAAmBnB,WAAa,KAAd,CAAwB,GAAK,GAA7B,CAAoC,EA1BzC;AA2BboB,gBAAiB,EA3BJ;AA4BbC,gBAAiB,SA5BJ;AA6BbC,aAAc,EA7BD;AA8BbC,kBAAmB,MA9BN;;;AAiCbC,uBAAyBxB,WAAa,KAAd,CAAuB,SAAvB,CAAmC,SAjC9C;AAkCbyB,6BAA+BzB,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Y,SAzOC;;AA2Ob,GAAIC,mBAAJ,EAAyB;AACvB,MAAO,oBAAM,KAAKD,UAAX,EAAuBlC,MAAvB,CAA8B,GAA9B,EAAmCC,GAAnC,EAAP;AACD,CA7OY;;;;AAiPbmC,oBAAqB,SAjPR;AAkPbC,oBAAqB,SAlPR;;;;AAsPbC,WAAY,SAtPC;AAuPbC,YAAa,EAvPA;AAwPbC,aAAc,SAxPD;;;;AA4PblG,UAAW,MA5PE;AA6PbI,iBAAkB,MA7PL;AA8Pb+F,aAAc,EA9PD;;;;AAkQbC,gBAAkBnI,WAAa,KAAd,CAAuB,QAAvB,CAAkC,eAlQtC;AAmQboI,cAAgBpI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EAnQ9B;AAoQbqI,iBAAmBrI,WAAa,KAAd,CAAuB,EAAvB,CAA4B,EApQjC;AAqQbsI,cAAgBtI,WAAa,KAAd,CAAuB,SAAvB,CAAmC,MArQrC;;;AAwQbuI,eAAiBvI,WAAa,KAAd,CAAuB,MAAvB,CAAgC,MAxQnC;;;;AA4QbwI,iBAAmBxI,WAAa,KAAd,CAAuB,CAAvB,CAA2B,CA5QhC;AA6QbyI,YAAc,EAAI,wBAAWC,yBAAX,CAAqC,CAArC,CA7QL;AA8QbC,eAAgB,EA9QH;;AAgRb,GAAIC,aAAJ,EAAmB;AACjB,MAAO,oBAAM,KAAKb,UAAX,EAAuBtC,MAAvB,CAA8B,IAA9B,EAAoCC,GAApC,EAAP;AACD,CAlRY;;AAoRbmD,WAAY,MApRC;AAqRbC,kBAAmB,SArRN;AAsRbC,gBAAiB,EAtRJ;AAuRbC,YAAa,SAvRA;AAwRbC,iBAAkB,EAxRL;AAyRbnJ,uBAzRa;AA0RbH,yBA1Ra;;;AA6RbuJ,8BAA+B,EA7RlB,C","file":"platform.js","sourcesContent":["import color from 'color';\n\nimport { Platform, Dimensions, PixelRatio } from 'react-native';\n\nconst deviceHeight = Dimensions.get('window').height;\nconst deviceWidth = Dimensions.get('window').width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\n\nexport default {\n platformStyle,\n platform,\n // AndroidRipple\n androidRipple: true,\n androidRippleColor: 'rgba(256, 256, 256, 0.3)',\n androidRippleColorDark: 'rgba(0, 0, 0, 0.15)',\n\n // Badge\n badgeBg: '#ED1727',\n badgeColor: '#fff',\n // New Variable\n badgePadding: (platform === 'ios') ? 3 : 0,\n\n // Button\n btnFontFamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n btnDisabledBg: '#b5b5b5',\n btnDisabledClr: '#f1f1f1',\n\n // CheckBox\n CheckboxRadius: (platform === 'ios') ? 13 : 0,\n CheckboxBorderWidth: (platform === 'ios') ? 1 : 2,\n CheckboxPaddingLeft: (platform === 'ios') ? 4 : 2,\n CheckboxPaddingBottom: (platform === 'ios') ? 0 : 5,\n CheckboxIconSize: (platform === 'ios') ? 21 : 14,\n CheckboxIconMarginTop: (platform === 'ios') ? undefined : 1,\n CheckboxFontSize: (platform === 'ios') ? (23 / 0.9) : 18,\n DefaultFontSize: 17,\n checkboxBgColor: '#039BE5',\n checkboxSize: 20,\n checkboxTickColor: '#fff',\n\n // Segment\n segmentBackgroundColor: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n segmentActiveBackgroundColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentActiveTextColor: (platform === 'ios') ? '#fff' : '#3F51B5',\n segmentBorderColor: (platform === 'ios') ? '#007aff' : '#fff',\n segmentBorderColorMain: (platform === 'ios') ? '#a7a6ab' : '#3F51B5',\n\n // New Variable\n get defaultTextColor() {\n return this.textColor;\n },\n\n\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return (platform === 'ios') ? this.fontSizeBase * 1.1 :\n this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n\n buttonPadding: 6,\n\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n\n // Card\n cardDefaultBg: '#fff',\n\n\n // Color\n brandPrimary: (platform === 'ios') ? '#007aff' : '#3F51B5',\n brandInfo: '#62B1F6',\n brandSuccess: '#5cb85c',\n brandDanger: '#d9534f',\n brandWarning: '#f0ad4e',\n brandSidebar: '#252932',\n\n\n // Font\n fontFamily: (platform === 'ios') ? 'System' : 'Roboto',\n fontSizeBase: 15,\n\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#4179F7',\n\n\n // FooterTab\n tabBarTextColor: (platform === 'ios') ? '#6b6b6b' : '#b3c7f9',\n tabBarTextSize: (platform === 'ios') ? 14 : 11,\n activeTab: (platform === 'ios') ? '#007aff' : '#fff',\n sTabBarActiveTextColor: '#007aff',\n tabBarActiveTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n tabActiveBgColor: (platform === 'ios') ? '#cde1f9' : '#3F51B5',\n\n // Tab\n tabDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n topTabBarTextColor: (platform === 'ios') ? '#6b6b6b' : '#b3c7f9',\n topTabBarActiveTextColor: (platform === 'ios') ? '#007aff' : '#fff',\n topTabActiveBgColor: (platform === 'ios') ? '#cde1f9' : undefined,\n topTabBarBorderColor: (platform === 'ios') ? '#a7a6ab' : '#fff',\n topTabBarActiveBorderColor: (platform === 'ios') ? '#007aff' : '#fff',\n\n\n // Header\n toolbarBtnColor: (platform === 'ios') ? '#007aff' : '#fff',\n toolbarDefaultBg: (platform === 'ios') ? '#F8F8F8' : '#3F51B5',\n toolbarHeight: (platform === 'ios') ? 64 : 56,\n toolbarIconSize: (platform === 'ios') ? 20 : 22,\n toolbarSearchIconSize: (platform === 'ios') ? 20 : 23,\n toolbarInputColor: (platform === 'ios') ? '#CECDD2' : '#fff',\n searchBarHeight: (platform === 'ios') ? 30 : 40,\n toolbarInverseBg: '#222',\n toolbarTextColor: (platform === 'ios') ? '#000' : '#fff',\n toolbarDefaultBorder: (platform === 'ios') ? '#a7a6ab' : '#3F51B5',\n iosStatusbar: (platform === 'ios') ? 'dark-content' : 'light-content',\n get statusBarColor() {\n return color(this.toolbarDefaultBg).darken(0.2).hex();\n },\n\n\n // Icon\n iconFamily: 'Ionicons',\n iconFontSize: (platform === 'ios') ? 30 : 28,\n iconMargin: 7,\n iconHeaderSize: (platform === 'ios') ? 33 : 24,\n\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: '#D9D5DC',\n inputSuccessBorderColor: '#2b8339',\n inputErrorBorderColor: '#ed2f2f',\n\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return '#575757';\n },\n\n inputGroupMarginBottom: 10,\n inputHeightBase: 50,\n inputPaddingLeft: 5,\n\n get inputPaddingLeftIcon() {\n return this.inputPaddingLeft * 8;\n },\n\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n iconLineHeight: (platform === 'ios') ? 37 : 30,\n lineHeight: (platform === 'ios') ? 20 : 24,\n\n\n // List\n listBorderColor: '#c9c9c9',\n listDividerBg: '#f4f4f4',\n listItemHeight: 45,\n listBtnUnderlayColor: '#DDD',\n\n // Card\n cardBorderColor: '#ccc',\n\n // Changed Variable\n listItemPadding: (platform === 'ios') ? 10 : 12,\n\n listNoteColor: '#808080',\n listNoteSize: 13,\n\n\n // Progress Bar\n defaultProgressColor: '#E4202D',\n inverseProgressColor: '#1A191B',\n\n\n // Radio Button\n radioBtnSize: (platform === 'ios') ? 25 : 23,\n radioSelectedColorAndroid: '#3F51B5',\n\n // New Variable\n radioBtnLineHeight: (platform === 'ios') ? 29 : 24,\n\n radioColor: '#7e7e7e',\n\n get radioSelectedColor() {\n return color(this.radioColor).darken(0.2).hex();\n },\n\n\n // Spinner\n defaultSpinnerColor: '#45D56E',\n inverseSpinnerColor: '#1A191B',\n\n\n // Tabs\n tabBgColor: '#F8F8F8',\n tabFontSize: 15,\n tabTextColor: '#222222',\n\n\n // Text\n textColor: '#000',\n inverseTextColor: '#fff',\n noteFontSize: 14,\n\n\n // Title\n titleFontfamily: (platform === 'ios') ? 'System' : 'Roboto_medium',\n titleFontSize: (platform === 'ios') ? 17 : 19,\n subTitleFontSize: (platform === 'ios') ? 12 : 14,\n subtitleColor: (platform === 'ios') ? '#8e8e93' : '#FFF',\n\n // New Variable\n titleFontColor: (platform === 'ios') ? '#000' : '#FFF',\n\n\n // Other\n borderRadiusBase: (platform === 'ios') ? 5 : 2,\n borderWidth: (1 / PixelRatio.getPixelSizeForLayoutSize(1)),\n contentPadding: 10,\n\n get darkenHeader() {\n return color(this.tabBgColor).darken(0.03).hex();\n },\n\n dropdownBg: '#000',\n dropdownLinkColor: '#414142',\n inputLineHeight: 24,\n jumbotronBg: '#C9C9CE',\n jumbotronPadding: 30,\n deviceWidth,\n deviceHeight,\n\n // New Variable\n inputGroupRoundedBorderRadius: 30,\n};\n"]}
\ No newline at end of file
diff --git a/src/basic/Fab.js b/src/basic/Fab.js
index c2b8c2ce9..c158b1fa1 100644
--- a/src/basic/Fab.js
+++ b/src/basic/Fab.js
@@ -192,32 +192,34 @@ class Fab extends Component {
return true;
}
});
- // this.setState({
- // buttons: icon.length
- // });
+ // this.setState({
+ // buttons: icon.length
+ // });
return React.cloneElement(childrenArray[0], { style: this.getInitialStyle(childrenArray[0].props.style).iconStyle });
}
renderButtons() {
const childrenArray = React.Children.toArray(this.props.children);
- const icon = _.remove(childrenArray, (item) => {
- if (item.type.displayName === "Styled(Icon)" || item.type.displayName === "Styled(IconNB)") {
- return true;
- }
- });
+ // const icon = _.remove(childrenArray, (item) => {
+ // if (item.type.displayName === "Styled(Icon)" || item.type.displayName === "Styled(IconNB)") {
+ // return true;
+ // }
+ // });
const newChildren = [];
- { childrenArray.map((child, i) => {
- newChildren.push({child.props.children}
- );
+ {
+ childrenArray.slice(1).map((child, i) => {
+ newChildren.push({child.props.children}
+ );
+ }
+ );
}
- ); }
return newChildren;
}
upAnimate() {
@@ -341,7 +343,7 @@ class Fab extends Component {
{this.renderButtons()}
this.fabOnPress()}
- {...this.prepareFabProps()} activeOpacity={1}
+ {...this.prepareFabProps() } activeOpacity={1}
>
{this.renderFab()}
diff --git a/src/index.js b/src/index.js
index 143ebd91e..2fc949b8e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -54,7 +54,6 @@ import ScrollableTabView from './basic/Tabs';
import { DefaultTabBar } from './basic/Tabs/DefaultTabBar';
import { ScrollableTab } from './basic/Tabs/ScrollableTabBar';
import { STabs } from './smart/STabs';
-import { Content as TabContent } from './basic/Content';
import { Subtitle } from './backward/Widgets/Subtitle';
setDefaultThemeStyle();
@@ -110,7 +109,7 @@ export {
Grid,
Text,
STabs,
- TabContent,
+ Content as TabContent,
View,
ToastContainer as Toast,
ScrollableTab,
@@ -118,7 +117,7 @@ export {
TabHeading,
TabContainer,
DefaultTabBar,
- Segment
+ Segment,
};
const mapPropsToStyleNames = (styleNames, props) => keys(props);