docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
sequencelengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Drawer/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNativeDrawer=require("react-native-drawer");var _reactNativeDrawer2=_interopRequireDefault(_reactNativeDrawer);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Drawer=function(_Component){_inherits(Drawer,_Component);function Drawer(props){_classCallCheck(this,Drawer);return _possibleConstructorReturn(this,(Drawer.__proto__||Object.getPrototypeOf(Drawer)).call(this,props));}_createClass(Drawer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNativeDrawer2.default,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Drawer;}(_react.Component);exports.default=Drawer;Drawer.defaultProps={type:"overlay",tapToClose:true,openDrawerOffset:0.2,panCloseMask:0.2,closedDrawerOffset:0,styles:{drawer:{shadowColor:"#000000",shadowOpacity:0,shadowRadius:0,elevation:5},mainOverlay:{opacity:0,backgroundColor:"rgba(0, 0, 0, 0.8)",elevation:8}},tweenHandler:function tweenHandler(ratio){return{mainOverlay:{opacity:ratio/2}};}}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Drawer/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _reactNativeDrawer=require("react-native-drawer");var _reactNativeDrawer2=_interopRequireDefault(_reactNativeDrawer);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Drawer=function(_Component){_inherits(Drawer,_Component);
<mask> function Drawer(props){_classCallCheck(this,Drawer);return _possibleConstructorReturn(this,(Drawer.__proto__||Object.getPrototypeOf(Drawer)).call(this,
<mask> props));
<mask> }_createClass(Drawer,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNativeDrawer2.default,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Drawer;}(_react.Component);exports.default=Drawer;
<mask>
<mask>
<mask> Drawer.defaultProps={
<mask> type:"overlay",
<mask> tapToClose:true,
<mask> openDrawerOffset:0.2,
<mask> panCloseMask:0.2,
<mask> closedDrawerOffset:0,
<mask> styles:{
<mask> drawer:{
<mask> shadowColor:"#000000",
<mask> shadowOpacity:0,
<mask> shadowRadius:0,
<mask> elevation:5},
<mask>
<mask> mainOverlay:{
<mask> opacity:0,
<mask> backgroundColor:"rgba(0, 0, 0, 0.8)",
<mask> elevation:8}},
<mask>
<mask>
<mask> tweenHandler:function tweenHandler(ratio){return{
<mask> mainOverlay:{opacity:ratio/2}};}};
<mask> //# sourceMappingURL=index.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Item;}(_react.Component);
Item.propTypes=_extends({},
_reactNative.Picker.Item.propTypes);
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Item;}(_react.Component);Item.propTypes=_extends({},_reactNative.Picker.Item.propTypes);var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Switch;}(_react.Component);
Switch.propTypes=_extends({},
Switch.propTypes);
var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.
Switch=StyledSwitch;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Switch;}(_react.Component);Switch.propTypes=_extends({},Switch.propTypes);var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.Switch=StyledSwitch; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Left;}(_react.Component);
Left.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
Left);exports.
Left=StyledLeft;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Drawer/index.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask>
<mask> var _reactNative=require("react-native");
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> var _Icon=require("./Icon");
<mask> var _IconNB=require("./IconNB");
<mask> var _Button=require("./Button");
<mask> var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
<mask>
<mask> _reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
<mask>
<mask> var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
<mask>
<mask> Fab=function(_Component){_inherits(Fab,_Component);
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
<mask> props));
<mask> _this.containerHeight=new _reactNative.Animated.Value(56);
<mask> _this.containerWidth=new _reactNative.Animated.Value(0);
<mask> _this.buttonScale=new _reactNative.Animated.Value(0);
<mask> _this.state={
<mask> buttons:undefined,
<mask> active:false};return _this;
<mask>
<mask> }_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
<mask>
<mask>
<mask> pos)
<mask> {
<mask> if(pos==="topLeft"){
<mask> return{
<mask> top:20,
<mask> bottom:undefined,
<mask> left:20,
<mask> right:undefined};
<mask>
<mask> }else if(pos==="bottomRight"){
<mask> return{
<mask> top:undefined,
<mask> bottom:20,
<mask> left:undefined,
<mask> right:20};
<mask>
<mask> }else if(pos==="bottomLeft"){
<mask> return{
<mask> top:undefined,
<mask> bottom:20,
<mask> left:20,
<mask> right:undefined};
<mask>
<mask> }else if(pos==="topRight"){
<mask> return{
<mask> top:20,
<mask> bottom:undefined,
<mask> left:undefined,
<mask> right:20};
<mask>
<mask> }
<mask> }},{key:"fabOtherBtns",value:function fabOtherBtns(
<mask>
<mask> direction,i){
<mask> if(direction==="up"){
<mask> return{
<mask> top:undefined,
<mask> bottom:
<mask> this.props.active===false?
<mask> _reactNative.Platform.OS==="ios"?50:5:
<mask> i*50+65,
<mask> left:8,
<mask> right:0};
<mask>
<mask> }else if(direction==="left"){
<mask> return{
<mask> top:8,
<mask> bottom:0,
<mask> left:
<mask> this.props.active===false?
<mask> _reactNative.Platform.OS==="ios"?8:8:
<mask> -(i*50+58),
<mask> right:0};
<mask>
<mask> }else if(direction==="down"){
<mask> return{
<mask> top:
<mask> this.props.active===false?
<mask> _reactNative.Platform.OS==="ios"?50:8:
<mask> i*50+73,
<mask> bottom:0,
<mask> left:8,
<mask> right:0};
<mask>
<mask> }else if(direction==="right"){
<mask> return{
<mask> top:8,
<mask> bottom:0,
<mask> left:
<mask> this.props.active===false?
<mask> _reactNative.Platform.OS==="ios"?50:8:
<mask> i*50+73,
<mask> right:0};
<mask>
<mask> }
<mask> }},{key:"getInitialStyle",value:function getInitialStyle(
<mask>
<mask> iconStyle){
<mask> return{
<mask> fab:{
<mask> height:56,
<mask> width:56,
<mask> borderRadius:28,
<mask> elevation:4,
<mask> shadowColor:"#000",
<mask> shadowOffset:{width:0,height:2},
<mask> shadowOpacity:0.4,
<mask> justifyContent:"center",
<mask> alignItems:"center",
<mask> shadowRadius:2,
<mask> position:"absolute",
<mask> bottom:0,
<mask> backgroundColor:"blue"},
<mask>
<mask> container:{
<mask> position:"absolute",
<mask> top:this.props.position?
<mask> this.fabTopValue(this.props.position).top:
<mask> undefined,
<mask> bottom:this.props.position?
<mask> this.fabTopValue(this.props.position).bottom:
<mask> 20,
<mask> right:this.props.position?
<mask> this.fabTopValue(this.props.position).right:
<mask> 20,
<mask> left:this.props.position?
<mask> this.fabTopValue(this.props.position).left:
<mask> undefined,
<mask> width:56,
<mask> height:this.containerHeight,
<mask> flexDirection:this.props.direction?
<mask> this.props.direction==="left"||this.props.direction==="right"?
<mask> "row":
<mask> "column":
<mask> "column",
<mask> alignItems:"center"},
<mask>
<mask> iconStyle:_extends({
<mask> color:"#fff",
<mask> fontSize:24,
<mask> lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
<mask> iconStyle),
<mask>
<mask> buttonStyle:{
<mask> position:"absolute",
<mask> height:40,
<mask> width:40,
<mask> left:7,
<mask> borderRadius:20,
<mask> transform:this.state.active?
<mask> [{scale:new _reactNative.Animated.Value(1)}]:
<mask> [{scale:this.buttonScale}],
<mask> marginBottom:10,
<mask> backgroundColor:"blue"}};
<mask>
<mask>
<mask> }},{key:"getContainerStyle",value:function getContainerStyle()
<mask>
<mask> {
<mask> return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
<mask> }},{key:"prepareFabProps",value:function prepareFabProps()
<mask>
<mask> {
<mask> var defaultProps={
<mask> style:this.getInitialStyle().fab};
<mask>
<mask> var incomingProps=_lodash2.default.clone(this.props);
<mask> delete incomingProps.onPress;
<mask>
<mask> return(0,_computeProps2.default)(incomingProps,defaultProps);
<mask> }},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
<mask>
<mask> child,i){
<mask> var type={
<mask> top:this.props.direction?
<mask> this.fabOtherBtns(this.props.direction,i).top:
<mask> undefined,
<mask> left:this.props.direction?
<mask> this.fabOtherBtns(this.props.direction,i).left:
<mask> 8,
<mask> right:this.props.direction?
<mask> this.fabOtherBtns(this.props.direction,i).right:
<mask> 0,
<mask> bottom:this.props.direction?
<mask> this.fabOtherBtns(this.props.direction,i).bottom:
<mask> this.props.active===false?
<mask> _reactNative.Platform.OS==="ios"?8:8:
<mask> i*50+50};
<mask>
<mask>
<mask> return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
<mask> }},{key:"prepareButtonProps",value:function prepareButtonProps(
<mask> child){
<mask> var inp=_lodash2.default.clone(child.props);
<mask> delete inp.style;
<mask>
<mask> var defaultProps={};
<mask>
<mask> return(0,_computeProps2.default)(inp,defaultProps);
<mask> }},{key:"componentDidMount",value:function componentDidMount()
<mask>
<mask> {var _this2=this;
<mask> var childrenArray=_react2.default.Children.toArray(this.props.children);
<mask> var icon=_lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type.displayName==="Styled(Button)"){
<mask> return true;
<mask> }
<mask> });
<mask> this.setState({
<mask> buttons:icon.length});
<mask>
<mask> this.activeTimer=setTimeout(function(){
<mask> _this2.setState({
<mask> active:_this2.props.active});
<mask>
<mask> },0);
<mask> }},{key:"componentWillUnmount",value:function componentWillUnmount()
<mask>
<mask> {
<mask> if(this.activeTimer){
<mask> clearTimeout(this.activeTimer);
<mask> }
<mask> }},{key:"renderFab",value:function renderFab()
<mask>
<mask> {
<mask> var childrenArray=_react2.default.Children.toArray(this.props.children);
<mask> var icon=_lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type.displayName==="Styled(Button)"){
<mask> return true;
<mask> }
<mask> });
<mask>
<mask>
<mask>
<mask> return _react2.default.cloneElement(childrenArray[0],{
<mask> style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
<mask>
<mask> }},{key:"renderButtons",value:function renderButtons()
<mask>
<mask> {var _this3=this;
<mask> var childrenArray=_react2.default.Children.toArray(this.props.children);
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> var newChildren=[];
<mask>
<mask> {
<mask> childrenArray.slice(1).map(function(child,i){
<mask> newChildren.push(
<mask> _react2.default.createElement(AnimatedFab,_extends({
<mask> style:_this3.getOtherButtonStyle(child,i)},
<mask> _this3.prepareButtonProps(child,i),{
<mask> fabButton:true,
<mask> key:i,__source:{fileName:_jsxFileName,lineNumber:279}}),
<mask>
<mask> child.props.children));
<mask>
<mask>
<mask> });
<mask> }
<mask> return newChildren;
<mask> }},{key:"upAnimate",value:function upAnimate()
<mask> {
<mask> if(!this.props.active){
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:this.state.buttons*51.3+56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:1}).
<mask> start();
<mask> }else{
<mask> this.setState({
<mask> active:false});
<mask>
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:0}).
<mask> start();
<mask> }
<mask> }},{key:"leftAnimate",value:function leftAnimate()
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> {
<mask> if(!this.props.active){
<mask> _reactNative.Animated.spring(this.containerWidth,{
<mask> toValue:this.state.buttons*51.3+56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:1}).
<mask> start();
<mask> }else{
<mask> this.setState({
<mask> active:false});
<mask>
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:0}).
<mask> start();
<mask> }
<mask> }},{key:"rightAnimate",value:function rightAnimate()
<mask>
<mask> {
<mask> if(!this.props.active){
<mask> _reactNative.Animated.spring(this.containerWidth,{
<mask> toValue:this.state.buttons*51.3+56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:1}).
<mask> start();
<mask> }else{
<mask> this.setState({
<mask> active:false});
<mask>
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:0}).
<mask> start();
<mask> }
<mask> }},{key:"downAnimate",value:function downAnimate()
<mask>
<mask> {
<mask> if(!this.props.active){
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:1}).
<mask> start();
<mask> }else{
<mask> this.setState({
<mask> active:false});
<mask>
<mask> _reactNative.Animated.spring(this.containerHeight,{
<mask> toValue:56}).
<mask> start();
<mask> _reactNative.Animated.spring(this.buttonScale,{
<mask> toValue:0}).
<mask> start();
<mask> }
<mask> }},{key:"_animate",value:function _animate()
<mask> {var _props=
<mask> this.props,direction=_props.direction,position=_props.position;
<mask> if(this.props.direction){
<mask> if(this.props.direction==="up"){
<mask> this.upAnimate();
<mask> }else if(this.props.direction==="left"){
<mask> this.leftAnimate();
<mask> }else if(this.props.direction==="right"){
<mask> this.rightAnimate();
<mask> }else if(this.props.direction==="down"){
<mask> this.downAnimate();
<mask> }
<mask> }else{
<mask> this.upAnimate();
<mask> }
<mask> }},{key:"fabOnPress",value:function fabOnPress()
<mask>
<mask> {var _this4=this;
<mask> if(this.props.onPress){
<mask> this.props.onPress();
<mask> this._animate();
<mask> this.activeTimer=setTimeout(function(){
<mask> _this4.setState({
<mask> active:_this4.props.active});
<mask>
<mask> },100);
<mask> }
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this5=this;var
<mask> active=this.props.active;
<mask>
<mask> return(
<mask> _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
<mask> this.renderButtons(),
<mask> _reactNative.Platform.OS==="ios"||
<mask> _platform2.default.androidRipple===false||
<mask> _reactNative.Platform["Version"]<=21?
<mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({
<mask> onPress:function onPress(){return _this5.fabOnPress();}},
<mask> this.prepareFabProps(),{
<mask> activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
<mask>
<mask> this.renderFab()):
<mask>
<mask>
<mask> _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
<mask> onPress:function onPress(){return _this5.fabOnPress();}},
<mask> this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
<mask>
<mask> _react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
<mask> this.renderFab()))));
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> }}]);return Fab;}(_react.Component);
<mask>
<mask> var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
<mask> Fab=StyledFab;
<mask> //# sourceMappingURL=Fab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var SWIPE_THRESHOLD=120;var
DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);
function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,
props));
_this.state={
pan:new _reactNative.Animated.ValueXY(),
pan2:new _reactNative.Animated.ValueXY(),
enter:new _reactNative.Animated.Value(0.8),
selectedItem:_this.props.dataSource[0],
selectedItem2:_this.props.dataSource[1],
card1Top:true,
card2Top:false,
fadeAnim:new _reactNative.Animated.Value(0.8),
looping:
typeof _this.props.looping==="undefined"?true:_this.props.looping,
disabled:_this.props.dataSource.length===0,
lastCard:_this.props.dataSource.length===1};return _this;
}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref)
{var dataSource=_ref.dataSource;
if(dataSource.length!==this.props.dataSource.length){
if(dataSource.length<=1){
this.setState(_extends({},
this.state,{
selectedItem:dataSource[0],
selectedItem2:undefined,
disabled:dataSource.length===0,
lastCard:dataSource.length===1}));
return;
}
var visibleIndex=dataSource.indexOf(this.state.selectedItem);
var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;
var nextIndex=
currentIndex+1===dataSource.length?0:currentIndex+1;
this.setState({
selectedItem:dataSource[currentIndex],
selectedItem2:dataSource[nextIndex]});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
topCard:{
position:"absolute",
top:0,
right:0,
left:0}};
}},{key:"findNextIndexes",value:function findNextIndexes(
currentIndex){
var newIdx=currentIndex+1;
var newIdx2=currentIndex+2;
if(
newIdx2>this.props.dataSource.length-1&&
newIdx===this.props.dataSource.length-1)
{
return[newIdx,0];
}else if(newIdx>this.props.dataSource.length-1){
return[0,1];
}
return[newIdx,newIdx2];
}},{key:"selectNext",value:function selectNext()
{var _this2=this;
var dataSource=this.props.dataSource;
var currentIndex=dataSource.indexOf(this.state.selectedItem);
if(!this.state.looping){
if(currentIndex===dataSource.length-1){
return this.setState({
disabled:true});
}else if(currentIndex===dataSource.length-2){
return setTimeout(function(){
_this2.setState({
selectedItem:dataSource[currentIndex+1]});
setTimeout(function(){
_this2.setState({
lastCard:true});
},350);
},50);
}
}
var nextIndexes=this.findNextIndexes(currentIndex);
setTimeout(function(){
_this2.setState({
selectedItem:_this2.props.dataSource[nextIndexes[0]]});
setTimeout(function(){
_this2.setState({
selectedItem2:_this2.props.dataSource[nextIndexes[1]]});
},350);
},50);
}},{key:"swipeRight",value:function swipeRight()
{var _this3=this;
if(this.props.onSwiping)this.props.onSwiping("right");
setTimeout(function(){
_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();
_this3.selectNext();
_reactNative.Animated.decay(_this3.state.pan,{
velocity:{x:8,y:1},
deceleration:0.98}).
start(_this3._resetState.bind(_this3));
},300);
}},{key:"swipeLeft",value:function swipeLeft()
{var _this4=this;
if(this.props.onSwiping)this.props.onSwiping("left");
setTimeout(function(){
_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();
_this4.selectNext();
_reactNative.Animated.decay(_this4.state.pan,{
velocity:{x:-8,y:1},
deceleration:0.98}).
start(_this4._resetState.bind(_this4));
},300);
}},{key:"componentWillMount",value:function componentWillMount()
{var _this5=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},
onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return(
Math.abs(gestureState.dx)>5);},
onPanResponderGrant:function onPanResponderGrant(e,gestureState){
_this5.state.pan.setOffset({
x:_this5.state.pan.x._value,
y:_this5.state.pan.y._value});
_this5.state.pan.setValue({x:0,y:0});
},
onPanResponderMove:function onPanResponderMove(e,gestureState){
if(gestureState.dx>20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("right",gestureState.dx);
}else if(gestureState.dx<-20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("left",gestureState.dx);
}
var val=Math.abs(gestureState.dx*0.0013);
var opa=Math.abs(gestureState.dx*0.0022);
if(val>0.2){
val=0.2;
}
_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();
_reactNative.Animated.spring(_this5.state.enter,{
toValue:0.8+val,
friction:7}).
start();
_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);
},
onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;
if(_this5.props.onSwiping)_this5.props.onSwiping(null);
var velocity=void 0;
if(vx>=0){
velocity=(0,_clamp2.default)(vx,4.5,10);
}else if(vx<0){
velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;
}
if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){
if(velocity>0){
_this5.props.onSwipeRight?
_this5.props.onSwipeRight(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}else{
_this5.props.onSwipeLeft?
_this5.props.onSwipeLeft(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}
_reactNative.Animated.decay(_this5.state.pan,{
velocity:{x:velocity,y:vy},
deceleration:0.98}).
start(_this5._resetState.bind(_this5));
}else{
_reactNative.Animated.spring(_this5.state.pan,{
toValue:{x:0,y:0},
friction:4}).
start();
}
}});
}},{key:"_resetState",value:function _resetState()
{
this.state.pan.setValue({x:0,y:0});
this.state.enter.setValue(0.8);
this.state.fadeAnim.setValue(0.8);
this.setState({
card1Top:!this.state.card1Top,
card2Top:!this.state.card2Top});
if(this.props.onSwiping)this.props.onSwiping(null);
}},{key:"getCardStyles",value:function getCardStyles()
{var _state=
this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=
[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];
var rotate=pan.x.interpolate({
inputRange:[-700,0,700],
outputRange:["-10deg","0deg","10deg"]});
var opacity=pan.x.interpolate({
inputRange:[-320,0,320],
outputRange:[0.9,1,0.9]});
var scale=enter;
var animatedCardStyles={
transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],
opacity:opacity};
var animatedCardStyles2={transform:[{scale:scale}]};
return[animatedCardStyles,animatedCardStyles2];
}},{key:"render",value:function render()
{
if(this.state.disabled){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())));
}else if(this.state.lastCard){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),
this.props.renderEmpty&&this.props.renderEmpty()),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[0],
this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),
this.props.renderItem(this.state.selectedItem)))));
}
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),
this.props.renderBottom?
this.props.renderBottom(this.state.selectedItem2):
this.props.renderItem(this.state.selectedItem2)),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),
this.props.renderTop?
this.props.renderTop(this.state.selectedItem):
this.props.renderItem(this.state.selectedItem)))));
}}]);return DeckSwiper;}(_react.Component);
DeckSwiper.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataSource:_propTypes2.default.array});
var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DeckSwiper",
{},
_mapPropsToStyleNames2.default)(
DeckSwiper);exports.
DeckSwiper=StyledDeckSwiper;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var SWIPE_THRESHOLD=120;var DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,props));_this.state={pan:new _reactNative.Animated.ValueXY(),pan2:new _reactNative.Animated.ValueXY(),enter:new _reactNative.Animated.Value(0.8),selectedItem:_this.props.dataSource[0],selectedItem2:_this.props.dataSource[1],card1Top:true,card2Top:false,fadeAnim:new _reactNative.Animated.Value(0.8),looping:typeof _this.props.looping==="undefined"?true:_this.props.looping,disabled:_this.props.dataSource.length===0,lastCard:_this.props.dataSource.length===1};return _this;}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var dataSource=_ref.dataSource;if(dataSource.length!==this.props.dataSource.length){if(dataSource.length<=1){this.setState(_extends({},this.state,{selectedItem:dataSource[0],selectedItem2:undefined,disabled:dataSource.length===0,lastCard:dataSource.length===1}));return;}var visibleIndex=dataSource.indexOf(this.state.selectedItem);var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;var nextIndex=currentIndex+1===dataSource.length?0:currentIndex+1;this.setState({selectedItem:dataSource[currentIndex],selectedItem2:dataSource[nextIndex]});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{topCard:{position:"absolute",top:0,right:0,left:0}};}},{key:"findNextIndexes",value:function findNextIndexes(currentIndex){var newIdx=currentIndex+1;var newIdx2=currentIndex+2;if(newIdx2>this.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Toast=require("./Toast");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ToastContainer=function(_Component){_inherits(ToastContainer,_Component);
function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,
props));
_this.state={
modalVisible:false,
fadeAnim:new _reactNative.Animated.Value(0)};return _this;
}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle()
{
return{
position:"absolute",
opacity:this.state.fadeAnim,
width:"100%",
elevation:9,
paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,
top:this.state.position==="top"?this.getTop():undefined,
bottom:this.state.position==="bottom"?this.getTop():undefined};
}},{key:"getTop",value:function getTop()
{
if(_reactNative.Platform.OS==="ios"){
return 30;
}else{
return 0;
}
}},{key:"getButtonText",value:function getButtonText(
buttonText){
if(buttonText){
if(buttonText.trim().length===0){
return undefined;
}else return buttonText;
}
return undefined;
}},{key:"showToast",value:function showToast(_ref)
{var config=_ref.config;
this.setState({
modalVisible:true,
text:config.text,
buttonText:this.getButtonText(config.buttonText),
type:config.type,
position:config.position?config.position:"bottom",
supportedOrientations:config.supportedOrientations,
style:config.style,
buttonTextStyle:config.buttonTextStyle,
buttonStyle:config.buttonStyle,
textStyle:config.textStyle,
onClose:config.onClose});
if(this.closeTimeout){
clearTimeout(this.closeTimeout);
}
if(config.duration!==0){
var duration=config.duration>0?config.duration:1500;
this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);
}
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:1,
duration:200}).
start();
}},{key:"closeModal",value:function closeModal(
reason){
this.setState({
modalVisible:false});var
onClose=this.state.onClose;
if(onClose&&typeof onClose==="function"){
onClose(reason);
}
}},{key:"closeToast",value:function closeToast(
reason){
clearTimeout(this.closeTimeout);
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:0,
duration:200}).
start(this.closeModal.bind(this,reason));
}},{key:"render",value:function render()
{var _this2=this;
if(this.state.modalVisible){
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},
_react2.default.createElement(_Toast.Toast,{
style:this.state.style,
danger:this.state.type=="danger"?true:false,
success:this.state.type=="success"?true:false,
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),
this.state.buttonText&&
_react2.default.createElement(_Button.Button,{
style:this.state.buttonStyle,
onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},
_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},
this.state.buttonText)))));
}else return null;
}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);
ToastContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ToastContainer",
{},
_mapPropsToStyleNames2.default)(
ToastContainer);exports.
ToastContainer=StyledToastContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Toast=require("./Toast");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Fab.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Footer=function(_Component){_inherits(Footer,_Component);
<mask>
<mask>
<mask>
<mask> function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
<mask> props));
<mask> _this.state={
<mask> orientation:
<mask> _platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
<mask>
<mask> }_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
<mask> val){
<mask> var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
<mask> if(val.width>=maxComp)this.setState({orientation:"landscape"});else
<mask> {
<mask> this.setState({orientation:"portrait"});
<mask> }
<mask> }},{key:"calculateHeight",value:function calculateHeight(
<mask>
<mask> mode,inSet){
<mask> var inset=null;
<mask> if(inSet!=undefined){
<mask> inset=inSet;
<mask> }else{
<mask> inset=_platform2.default.Inset;
<mask> }
<mask> var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
<mask> var oldHeight=null;
<mask> if(this.props.style.height!=undefined){
<mask> oldHeight=this.props.style.height;
<mask> }else if(this.props.style[1].height){
<mask> oldHeight=this.props.style[1].height;
<mask> }else{
<mask> oldHeight=this.props.style[0].height;
<mask> }
<mask> var height=oldHeight+InsetValues.bottomInset;
<mask> return height;
<mask> }},{key:"calculatePadder",value:function calculatePadder(
<mask>
<mask> mode,inSet){
<mask> var inset=null;
<mask> if(inSet!=undefined){
<mask> inset=inSet;
<mask> }else{
<mask> inset=_platform2.default.Inset;
<mask> }
<mask> var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
<mask> var bottomPadder=null;
<mask> if(this.props.style[1]!==undefined){
<mask> if(
<mask> this.props.style[1].padding!==undefined||
<mask> this.props.style[1].paddingTop!==undefined)
<mask> {
<mask> bottomPadder=
<mask> (this.props.style[1].paddingTop?
<mask> this.props.style[1].paddingTop:
<mask> this.props.style[1].padding)+InsetValues.bottomInset;
<mask> }
<mask> }else if(
<mask> this.props.style.padding!==undefined&&
<mask> this.props.style.paddingTop!==undefined)
<mask> {
<mask> bottomPadder=
<mask> (this.props.style.paddingTop?
<mask> this.props.style.paddingTop:
<mask> this.props.style.padding)+InsetValues.bottomInset;
<mask> }else{
<mask> bottomPadder=InsetValues.bottomInset;
<mask> }
<mask> return bottomPadder;
<mask> }},{key:"render",value:function render()
<mask> {var _this2=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> return _platform2.default.isIphoneX?
<mask> _react2.default.createElement(_reactNative.View,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.props,{
<mask> onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
<mask> style:[
<mask> this.props.style,
<mask> {
<mask> height:this.calculateHeight(
<mask> this.state.orientation,
<mask> variables.Inset),
<mask>
<mask> paddingBottom:this.calculatePadder(
<mask> this.state.orientation,
<mask> variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
<mask>
<mask> }}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> Footer.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.Footer",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> Footer);exports.
<mask> Footer=StyledFooter;
<mask> //# sourceMappingURL=Footer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Footer.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return FooterTab;}(_react.Component);FooterTab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.FooterTab",{},_mapPropsToStyleNames2.default)(FooterTab);exports.FooterTab=StyledFooterTab; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
<mask> this.props.children));
<mask>
<mask>
<mask> }}]);return FooterTab;}(_react.Component);
<mask>
<mask>
<mask> FooterTab.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.FooterTab",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> FooterTab);exports.
<mask>
<mask> FooterTab=StyledFooterTab;
<mask> //# sourceMappingURL=FooterTab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return Tab;}(_react.Component);
Tab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.
Tab=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return Tab;}(_react.Component);Tab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.Tab=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),
this.props.children));
}}]);return Badge;}(_react.Component);
Badge.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(
Badge);exports.
Badge=StyledBadge;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),this.props.children);}}]);return Badge;}(_react.Component);Badge.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(Badge);exports.Badge=StyledBadge; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/FooterTab.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Form;}(_react.Component);
<mask>
<mask>
<mask> Form.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
<mask> Form);exports.
<mask>
<mask>
<mask> Form=StyledForm;
<mask> //# sourceMappingURL=Form.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Left;}(_react.Component);
Left.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
Left);exports.
Left=StyledLeft;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Right;}(_react.Component);
Right.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(
Right);exports.
Right=StyledRight;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Right;}(_react.Component);Right.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(Right);exports.Right=StyledRight; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Body;}(_react.Component);
Body.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(
Body);exports.
Body=StyledBody;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Body;}(_react.Component);Body.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(Body);exports.Body=StyledBody; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Form.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var GRAVATAR_URI="https://www.gravatar.com/avatar/";var Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle(){return{gravatar:{borderRadius:this.props.size?this.props.size/2:15,width:this.props.size?this.props.size:30,height:this.props.size?this.props.size:30,resizeMode:this.props.contain?"contain":undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var gravatarStyle={};if(this.props.circular){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=this.props.size/2;}else if(this.props.square){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=0;}var defaultProps={style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var props=this.prepareRootProps();var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.height;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));}}]);return Gravatar;}(_NativeBaseComponent3.default);Gravatar.propTypes=_extends({},_reactNative.Image.propTypes,{email:PropTypes.string.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.number,PropTypes.array]),size:PropTypes.number,circular:PropTypes.bool,square:PropTypes.bool});var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Gravatar",{},_mapPropsToStyleNames2.default)(Gravatar);exports.Gravatar=StyledGravatar; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
<mask>
<mask> var GRAVATAR_URI="https://www.gravatar.com/avatar/";var
<mask>
<mask> Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle()
<mask> {
<mask> return{
<mask> gravatar:{
<mask> borderRadius:this.props.size?this.props.size/2:15,
<mask> width:this.props.size?this.props.size:30,
<mask> height:this.props.size?this.props.size:30,
<mask> resizeMode:this.props.contain?"contain":undefined}};
<mask>
<mask>
<mask> }},{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask> {
<mask> var gravatarStyle={};
<mask> if(this.props.circular){
<mask> gravatarStyle.width=this.props.size;
<mask> gravatarStyle.height=this.props.size;
<mask> gravatarStyle.borderRadius=this.props.size/2;
<mask> }else if(this.props.square){
<mask> gravatarStyle.width=this.props.size;
<mask> gravatarStyle.height=this.props.size;
<mask> gravatarStyle.borderRadius=0;
<mask> }
<mask>
<mask> var defaultProps={
<mask> style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};
<mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this2=this;
<mask> var props=this.prepareRootProps();
<mask>
<mask> var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.
<mask> height;
<mask> return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));
<mask> }}]);return Gravatar;}(_NativeBaseComponent3.default);
<mask>
<mask>
<mask> Gravatar.propTypes=_extends({},
<mask> _reactNative.Image.propTypes,{
<mask> email:PropTypes.string.isRequired,
<mask> style:PropTypes.oneOfType([
<mask> PropTypes.object,
<mask> PropTypes.number,
<mask> PropTypes.array]),
<mask>
<mask> size:PropTypes.number,
<mask> circular:PropTypes.bool,
<mask> square:PropTypes.bool});
<mask>
<mask>
<mask> var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.Gravatar",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> Gravatar);exports.
<mask> Gravatar=StyledGravatar;
<mask> //# sourceMappingURL=Gravatar.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?1:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
this.props.children));
}}]);return InputGroup;}(_react.Component);
InputGroup.propTypes=_extends({},
_reactNative.ViewPropTypes,{
regular:_propTypes2.default.bool,
underline:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool,
disabled:_propTypes2.default.bool});
var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.InputGroup",
{},
_mapPropsToStyleNames2.default)(
InputGroup);exports.
InputGroup=StyledInputGroup;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
{
return{
textarea:{
height:this.props.rowSpan?this.props.rowSpan*25:60}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getStyle().textarea};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
}},
this.prepareRootProps(),{
multiline:true,
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
}}]);return Textarea;}(_react.Component);
Textarea.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
rowSpan:_propTypes2.default.number,
bordered:_propTypes2.default.bool,
underline:_propTypes2.default.bool});
var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
Textarea=StyledTextarea;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
standardStyle:false};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this2._root=c;}},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),
_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?
this.props.selected&&
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.selectedColor?
this.props.selectedColor:
variables.radioColor,
lineHeight:25,
height:20,
fontSize:variables.radioBtnSize},
name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):
_react2.default.createElement(_Ionicons2.default,{
style:{
color:
_reactNative.Platform.OS==="ios"?
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioColor:
this.props.color?
this.props.color:
undefined:
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioSelectedColorAndroid:
this.props.color?
this.props.color:
undefined,
lineHeight:variables.radioBtnLineHeight,
fontSize:variables.radioBtnSize},
name:
_reactNative.Platform.OS==="ios"?
this.props.selected?
"ios-radio-button-on":
"ios-radio-button-off":
this.props.selected?
"md-radio-button-on":
"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}})));
}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};
Radio.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
selected:_propTypes2.default.bool,
standardStyle:_propTypes2.default.bool});
var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(
Radio);exports.
Radio=StyledRadio;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={standardStyle:false};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?this.props.selected&&_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.selectedColor?this.props.selectedColor:variables.radioColor,lineHeight:25,height:20,fontSize:variables.radioBtnSize},name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):_react2.default.createElement(_Ionicons2.default,{style:{color:_reactNative.Platform.OS==="ios"?this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioColor:this.props.color?this.props.color:undefined:this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioSelectedColorAndroid:this.props.color?this.props.color:undefined,lineHeight:variables.radioBtnLineHeight,fontSize:variables.radioBtnSize},name:_reactNative.Platform.OS==="ios"?this.props.selected?"ios-radio-button-on":"ios-radio-button-off":this.props.selected?"md-radio-button-on":"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}}));}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};Radio.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{selected:_propTypes2.default.bool,standardStyle:_propTypes2.default.bool});var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(Radio);exports.Radio=StyledRadio; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Gravatar.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return H1;}(_react.Component);
<mask>
<mask>
<mask> var childrenType=function childrenType(props,propName,component){
<mask> var error=void 0;
<mask> var prop=props[propName];
<mask> _react2.default.Children.forEach(prop,function(child){
<mask> if(typeof child!=="string"&&typeof child!=="number"){
<mask> error=new Error(component+" should have only string or number");
<mask> }
<mask> });
<mask> return error;
<mask> };
<mask>
<mask> H1.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> children:childrenType,
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
<mask>
<mask> H1=StyledH1;
<mask> //# sourceMappingURL=H1.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H3;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H3.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.
H3=StyledH3;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H3;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H3.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.H3=StyledH3; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
{var _this2=this;var _props=
this.props,uppercase=_props.uppercase,children=_props.children;
var text=void 0;
if(uppercase){
text=_react2.default.Children.map(children,function(child){
if(_lodash2.default.isString(child)){
return _lodash2.default.toUpper(child);
}else{
return child;
}
});
}else{
text=children;
}
return(
_react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
text));
}}]);return Text;}(_react.Component);
Text.propTypes=_extends({},
_reactNative.Text.propTypes,{
uppercase:_propTypes2.default.bool,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
Text.defaultProps={
uppercase:false};
var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
Text=StyledText;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/H1.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return H2;}(_react.Component);
<mask>
<mask> var childrenType=function childrenType(props,propName,component){
<mask> var error=void 0;
<mask> var prop=props[propName];
<mask> _react2.default.Children.forEach(prop,function(child){
<mask> if(typeof child!=="string"&&typeof child!=="number"){
<mask> error=new Error(component+" should have only string or number");
<mask> }
<mask> });
<mask> return error;
<mask> };
<mask>
<mask> H2.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> children:childrenType,
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
<mask>
<mask> H2=StyledH2;
<mask> //# sourceMappingURL=H2.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H3;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H3.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.
H3=StyledH3;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H3;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H3.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.H3=StyledH3; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
{var _this2=this;var _props=
this.props,uppercase=_props.uppercase,children=_props.children;
var text=void 0;
if(uppercase){
text=_react2.default.Children.map(children,function(child){
if(_lodash2.default.isString(child)){
return _lodash2.default.toUpper(child);
}else{
return child;
}
});
}else{
text=children;
}
return(
_react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
text));
}}]);return Text;}(_react.Component);
Text.propTypes=_extends({},
_reactNative.Text.propTypes,{
uppercase:_propTypes2.default.bool,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
Text.defaultProps={
uppercase:false};
var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
Text=StyledText;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/H2.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H3;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H3.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.H3=StyledH3; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return H3;}(_react.Component);
<mask>
<mask>
<mask> var childrenType=function childrenType(props,propName,component){
<mask> var error=void 0;
<mask> var prop=props[propName];
<mask> _react2.default.Children.forEach(prop,function(child){
<mask> if(typeof child!=="string"&&typeof child!=="number"){
<mask> error=new Error(component+" should have only string or number");
<mask> }
<mask> });
<mask> return error;
<mask> };
<mask>
<mask> H3.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> children:childrenType,
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.
<mask>
<mask> H3=StyledH3;
<mask> //# sourceMappingURL=H3.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
{var _this2=this;var _props=
this.props,uppercase=_props.uppercase,children=_props.children;
var text=void 0;
if(uppercase){
text=_react2.default.Children.map(children,function(child){
if(_lodash2.default.isString(child)){
return _lodash2.default.toUpper(child);
}else{
return child;
}
});
}else{
text=children;
}
return(
_react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
text));
}}]);return Text;}(_react.Component);
Text.propTypes=_extends({},
_reactNative.Text.propTypes,{
uppercase:_propTypes2.default.bool,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
Text.defaultProps={
uppercase:false};
var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
Text=StyledText;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/H3.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask> Header=function(_Component){_inherits(Header,_Component);
<mask>
<mask>
<mask>
<mask> function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
<mask> props));
<mask> _this.state={
<mask> orientation:"portrait"};return _this;
<mask>
<mask> }_createClass(Header,[{key:"layoutChange",value:function layoutChange(
<mask> val){
<mask> var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
<mask> if(val.width>=maxComp)this.setState({orientation:"landscape"});else
<mask> {
<mask> this.setState({orientation:"portrait"});
<mask> }
<mask> }},{key:"calculateHeight",value:function calculateHeight(
<mask> mode,inSet){
<mask> var inset=null;
<mask> if(inSet!=undefined){
<mask> inset=inSet;
<mask> }else{
<mask> inset=_platform2.default.Inset;
<mask> }
<mask> var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
<mask> var oldHeight=null;
<mask> if(this.props.style.height!=undefined){
<mask> oldHeight=this.props.style.height;
<mask> }else if(this.props.style[1].height){
<mask> oldHeight=this.props.style[1].height;
<mask> }else{
<mask> oldHeight=this.props.style[0].height;
<mask> }
<mask> var height=oldHeight+InsetValues.topInset;
<mask> return height;
<mask> }},{key:"calculatePadder",value:function calculatePadder(
<mask> mode,inSet){
<mask> var inset=null;
<mask> if(inSet!=undefined){
<mask> inset=inSet;
<mask> }else{
<mask> inset=_platform2.default.Inset;
<mask> }
<mask> var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
<mask> var topPadder=null;
<mask> var style=_reactNative.StyleSheet.flatten(this.props.style);
<mask> if(style.padding!==undefined&&style.paddingTop!==undefined){
<mask> topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
<mask> }else{
<mask> topPadder=InsetValues.topInset;
<mask> }
<mask> return topPadder;
<mask> }},{key:"render",value:function render()
<mask> {var _this2=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
<mask> _react2.default.createElement(_reactNative.StatusBar,{
<mask> backgroundColor:
<mask> this.props.androidStatusBarColor?
<mask> this.props.androidStatusBarColor:
<mask> variables.statusBarColor,
<mask>
<mask> barStyle:
<mask> this.props.iosBarStyle?
<mask> this.props.iosBarStyle:
<mask> platformStyle==="material"?
<mask> "light-content":
<mask> variables.iosStatusbar,
<mask>
<mask> translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
<mask>
<mask> _platform2.default.isIphoneX?
<mask> _react2.default.createElement(_reactNative.View,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.props,{
<mask> style:[
<mask> this.props.style,
<mask> {
<mask> height:this.calculateHeight(
<mask> this.state.orientation,
<mask> variables.Inset),
<mask>
<mask> paddingTop:this.calculatePadder(
<mask> this.state.orientation,
<mask> variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
<mask>
<mask>
<mask>
<mask> }}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> Header.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array]),
<mask>
<mask> searchBar:_propTypes2.default.bool,
<mask> rounded:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.Header",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> Header);exports.
<mask> Header=StyledHeader;
<mask> //# sourceMappingURL=Header.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Header.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask>
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask>
<mask> var _IconNB=require("../IconNB");
<mask> var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
<mask> var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask>
<mask> var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
<mask>
<mask>
<mask>
<mask>
<mask> {
<mask> var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask>
<mask> if((this.props.type||variables.iconFamily)==="Ionicons"){
<mask> if(typeof _NBIcons2.default[this.props.name]!=="object"){
<mask> return this.props.name;
<mask> }else if(typeof _NBIcons2.default[this.props.name]==="object"){
<mask> var name=void 0;
<mask> if(platform==="ios"&&platformStyle!=="material"){
<mask> name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
<mask> }else{
<mask> name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
<mask> }
<mask> return name;
<mask> }
<mask> }else{
<mask> return this.props.name;
<mask> }
<mask> }},{key:"getIconName",value:function getIconName()
<mask>
<mask> {
<mask> if(_reactNative.Platform.OS==="ios"){
<mask> if(this.props.ios){
<mask> return this.props.ios;
<mask> }else{
<mask> return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
<mask> }
<mask> }else if(this.props.android){
<mask> return this.props.android;
<mask> }else{
<mask> return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
<mask> }
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this2=this;
<mask> if(this.props.ios&&this.props.android){
<mask> return(
<mask> _react2.default.createElement(_IconNB.IconNB,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.props,{
<mask> name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
<mask>
<mask>
<mask> }else if(this.props.name&&(this.props.android||this.props.ios)){
<mask> return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
<mask> }else{
<mask> return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
<mask> }
<mask> }}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> Icon.propTypes=_extends({},
<mask> _IconNB.IconNB.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
<mask> name:_propTypes2.default.string,
<mask> ios:_propTypes2.default.string,
<mask> android:_propTypes2.default.string,
<mask> active:_propTypes2.default.bool,
<mask> type:_propTypes2.default.string});
<mask>
<mask>
<mask> var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
<mask>
<mask> Icon=StyledIcon;
<mask> //# sourceMappingURL=index.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove "use_strict";
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
module.exports=function(incomingProps,defaultProps){
var computedProps={};
incomingProps=_lodash2.default.clone(incomingProps);
delete incomingProps.children;
var incomingPropsStyle=incomingProps.style;
delete incomingProps.style;
if(incomingProps){
_lodash2.default.assign(computedProps,defaultProps,incomingProps);
}else{
computedProps=defaultProps;
}
if(incomingPropsStyle){
var computedPropsStyle={};
computedProps.style={};
if(Array.isArray(incomingPropsStyle)){
_lodash2.default.forEach(incomingPropsStyle,function(style){
if(typeof style==="number"){
_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
}else{
_lodash2.default.merge(computedPropsStyle,style);
}
});
}else if(typeof incomingPropsStyle==="number"){
computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
}else{
computedPropsStyle=incomingPropsStyle;
}
_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
}
return computedProps;
};
</s> add "use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Icon/index.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.IconNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/IconNB.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _Entypo=require("react-native-vector-icons/Entypo");var _Entypo2=_interopRequireDefault(_Entypo);var _Feather=require("react-native-vector-icons/Feather");var _Feather2=_interopRequireDefault(_Feather);var _FontAwesome=require("react-native-vector-icons/FontAwesome");var _FontAwesome2=_interopRequireDefault(_FontAwesome);var _Foundation=require("react-native-vector-icons/Foundation");var _Foundation2=_interopRequireDefault(_Foundation);var _MaterialIcons=require("react-native-vector-icons/MaterialIcons");var _MaterialIcons2=_interopRequireDefault(_MaterialIcons);var _MaterialCommunityIcons=require("react-native-vector-icons/MaterialCommunityIcons");var _MaterialCommunityIcons2=_interopRequireDefault(_MaterialCommunityIcons);var _Octicons=require("react-native-vector-icons/Octicons");var _Octicons2=_interopRequireDefault(_Octicons);var _Zocial=require("react-native-vector-icons/Zocial");var _Zocial2=_interopRequireDefault(_Zocial);var _SimpleLineIcons=require("react-native-vector-icons/SimpleLineIcons");var _SimpleLineIcons2=_interopRequireDefault(_SimpleLineIcons);var _EvilIcons=require("react-native-vector-icons/EvilIcons");var _EvilIcons2=_interopRequireDefault(_EvilIcons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var IconNB=function(_Component){_inherits(IconNB,_Component);function IconNB(){_classCallCheck(this,IconNB);return _possibleConstructorReturn(this,(IconNB.__proto__||Object.getPrototypeOf(IconNB)).apply(this,arguments));}_createClass(IconNB,[{key:"setIcon",value:function setIcon(iconType){if(iconType==undefined&&this.context.theme){iconType=this.context.theme["@@shoutem.theme/themeStyle"].variables.iconFamily;}switch(iconType){case"Entypo":this.Icon=_Entypo2.default;break;case"EvilIcons":this.Icon=_EvilIcons2.default;break;case"Feather":this.Icon=_Feather2.default;break;case"FontAwesome":this.Icon=_FontAwesome2.default;break;case"Foundation":this.Icon=_Foundation2.default;break;case"Ionicons":this.Icon=_Ionicons2.default;break;case"MaterialCommunityIcons":this.Icon=_MaterialCommunityIcons2.default;break;case"MaterialIcons":this.Icon=_MaterialIcons2.default;break;case"Octicons":this.Icon=_Octicons2.default;break;case"SimpleLineIcons":this.Icon=_SimpleLineIcons2.default;break;case"Zocial":this.Icon=_Zocial2.default;break;default:this.Icon=_Ionicons2.default;}}},{key:"componentWillMount",value:function componentWillMount(){this.setIcon(this.props.type);}},{key:"componentWillUpdate",value:function componentWillUpdate(nextProps,nextState){if(nextProps.type&&this.props.type!=nextProps.type){this.setIcon(nextProps.type);}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(this.Icon,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:80}}));}}]);return IconNB;}(_react.Component);IconNB.contextTypes={theme:_propTypes2.default.object};IconNB.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),type:_propTypes2.default.oneOf(["Entypo","EvilIcons","Feather","FontAwesome","Foundation","Ionicons","MaterialCommunityIcons","MaterialIcons","Octicons","SimpleLineIcons","Zocial"])};var StyledIconNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.IconNB",{},_mapPropsToStyleNames2.default)(IconNB);exports.IconNB=StyledIconNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.IconNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/IconNB.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask>
<mask> var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
<mask> var _Entypo=require("react-native-vector-icons/Entypo");var _Entypo2=_interopRequireDefault(_Entypo);
<mask> var _Feather=require("react-native-vector-icons/Feather");var _Feather2=_interopRequireDefault(_Feather);
<mask> var _FontAwesome=require("react-native-vector-icons/FontAwesome");var _FontAwesome2=_interopRequireDefault(_FontAwesome);
<mask> var _Foundation=require("react-native-vector-icons/Foundation");var _Foundation2=_interopRequireDefault(_Foundation);
<mask> var _MaterialIcons=require("react-native-vector-icons/MaterialIcons");var _MaterialIcons2=_interopRequireDefault(_MaterialIcons);
<mask> var _MaterialCommunityIcons=require("react-native-vector-icons/MaterialCommunityIcons");var _MaterialCommunityIcons2=_interopRequireDefault(_MaterialCommunityIcons);
<mask> var _Octicons=require("react-native-vector-icons/Octicons");var _Octicons2=_interopRequireDefault(_Octicons);
<mask> var _Zocial=require("react-native-vector-icons/Zocial");var _Zocial2=_interopRequireDefault(_Zocial);
<mask> var _SimpleLineIcons=require("react-native-vector-icons/SimpleLineIcons");var _SimpleLineIcons2=_interopRequireDefault(_SimpleLineIcons);
<mask> var _EvilIcons=require("react-native-vector-icons/EvilIcons");var _EvilIcons2=_interopRequireDefault(_EvilIcons);
<mask>
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> IconNB=function(_Component){_inherits(IconNB,_Component);function IconNB(){_classCallCheck(this,IconNB);return _possibleConstructorReturn(this,(IconNB.__proto__||Object.getPrototypeOf(IconNB)).apply(this,arguments));}_createClass(IconNB,[{key:"setIcon",value:function setIcon(
<mask>
<mask>
<mask>
<mask>
<mask> iconType){
<mask> if(iconType==undefined&&this.context.theme){
<mask> iconType=this.context.theme["@@shoutem.theme/themeStyle"].variables.
<mask> iconFamily;
<mask> }
<mask> switch(iconType){
<mask> case"Entypo":
<mask> this.Icon=_Entypo2.default;
<mask> break;
<mask> case"EvilIcons":
<mask> this.Icon=_EvilIcons2.default;
<mask> break;
<mask> case"Feather":
<mask> this.Icon=_Feather2.default;
<mask> break;
<mask> case"FontAwesome":
<mask> this.Icon=_FontAwesome2.default;
<mask> break;
<mask> case"Foundation":
<mask> this.Icon=_Foundation2.default;
<mask> break;
<mask> case"Ionicons":
<mask> this.Icon=_Ionicons2.default;
<mask> break;
<mask> case"MaterialCommunityIcons":
<mask> this.Icon=_MaterialCommunityIcons2.default;
<mask> break;
<mask> case"MaterialIcons":
<mask> this.Icon=_MaterialIcons2.default;
<mask> break;
<mask> case"Octicons":
<mask> this.Icon=_Octicons2.default;
<mask> break;
<mask> case"SimpleLineIcons":
<mask> this.Icon=_SimpleLineIcons2.default;
<mask> break;
<mask> case"Zocial":
<mask> this.Icon=_Zocial2.default;
<mask> break;
<mask> default:
<mask> this.Icon=_Ionicons2.default;}
<mask>
<mask> }},{key:"componentWillMount",value:function componentWillMount()
<mask>
<mask> {
<mask> this.setIcon(this.props.type);
<mask> }},{key:"componentWillUpdate",value:function componentWillUpdate(
<mask>
<mask> nextProps,nextState){
<mask> if(nextProps.type&&this.props.type!=nextProps.type){
<mask> this.setIcon(nextProps.type);
<mask> }
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this2=this;
<mask> return _react2.default.createElement(this.Icon,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:80}}));
<mask> }}]);return IconNB;}(_react.Component);IconNB.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> IconNB.propTypes={
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array]),
<mask>
<mask> type:_propTypes2.default.oneOf([
<mask> "Entypo",
<mask> "EvilIcons",
<mask> "Feather",
<mask> "FontAwesome",
<mask> "Foundation",
<mask> "Ionicons",
<mask> "MaterialCommunityIcons",
<mask> "MaterialIcons",
<mask> "Octicons",
<mask> "SimpleLineIcons",
<mask> "Zocial"])};
<mask>
<mask>
<mask>
<mask> var StyledIconNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.IconNB",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> IconNB);exports.
<mask>
<mask> IconNB=StyledIconNB;
<mask> //# sourceMappingURL=IconNB.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/IconNB.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;},editable:this.props.disabled?false:true,underlineColorAndroid:"rgba(0,0,0,0)",placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},this.props,{__source:{fileName:_jsxFileName,lineNumber:15}}));}}]);return Input;}(_NativeBaseComponent3.default);Input.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.Input=StyledInput; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> return(
<mask> _react2.default.createElement(_reactNative.TextInput,_extends({
<mask> ref:function ref(c){
<mask> _this2._textInput=c;
<mask> _this2._root=c;
<mask> },
<mask> editable:this.props.disabled?false:true,
<mask> underlineColorAndroid:"rgba(0,0,0,0)",
<mask> placeholderTextColor:
<mask> this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},
<mask>
<mask> this.props,{__source:{fileName:_jsxFileName,lineNumber:15}})));
<mask>
<mask>
<mask> }}]);return Input;}(_NativeBaseComponent3.default);
<mask>
<mask>
<mask> Input.propTypes=_extends({},
<mask> _reactNative.TextInput.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.
<mask>
<mask> Input=StyledInput;
<mask> //# sourceMappingURL=Input.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
{
return{
textarea:{
height:this.props.rowSpan?this.props.rowSpan*25:60}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getStyle().textarea};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
}},
this.prepareRootProps(),{
multiline:true,
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
}}]);return Textarea;}(_react.Component);
Textarea.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
rowSpan:_propTypes2.default.number,
bordered:_propTypes2.default.bool,
underline:_propTypes2.default.bool});
var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
Textarea=StyledTextarea;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
standardStyle:false};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this2._root=c;}},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),
_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?
this.props.selected&&
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.selectedColor?
this.props.selectedColor:
variables.radioColor,
lineHeight:25,
height:20,
fontSize:variables.radioBtnSize},
name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):
_react2.default.createElement(_Ionicons2.default,{
style:{
color:
_reactNative.Platform.OS==="ios"?
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioColor:
this.props.color?
this.props.color:
undefined:
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioSelectedColorAndroid:
this.props.color?
this.props.color:
undefined,
lineHeight:variables.radioBtnLineHeight,
fontSize:variables.radioBtnSize},
name:
_reactNative.Platform.OS==="ios"?
this.props.selected?
"ios-radio-button-on":
"ios-radio-button-off":
this.props.selected?
"md-radio-button-on":
"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}})));
}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};
Radio.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
selected:_propTypes2.default.bool,
standardStyle:_propTypes2.default.bool});
var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(
Radio);exports.
Radio=StyledRadio;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={standardStyle:false};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?this.props.selected&&_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.selectedColor?this.props.selectedColor:variables.radioColor,lineHeight:25,height:20,fontSize:variables.radioBtnSize},name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):_react2.default.createElement(_Ionicons2.default,{style:{color:_reactNative.Platform.OS==="ios"?this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioColor:this.props.color?this.props.color:undefined:this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioSelectedColorAndroid:this.props.color?this.props.color:undefined,lineHeight:variables.radioBtnLineHeight,fontSize:variables.radioBtnSize},name:_reactNative.Platform.OS==="ios"?this.props.selected?"ios-radio-button-on":"ios-radio-button-off":this.props.selected?"md-radio-button-on":"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}}));}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};Radio.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{selected:_propTypes2.default.bool,standardStyle:_propTypes2.default.bool});var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(Radio);exports.Radio=StyledRadio; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Root=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Root.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _reactNative=require("react-native");
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _ToastContainer=require("./ToastContainer");
var _Actionsheet=require("./Actionsheet");
var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Root=function(_Component){_inherits(Root,_Component);function Root(){_classCallCheck(this,Root);return _possibleConstructorReturn(this,(Root.__proto__||Object.getPrototypeOf(Root)).apply(this,arguments));}_createClass(Root,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:13}}),
this.props.children,
_react2.default.createElement(_ToastContainer.ToastContainer,{
ref:function ref(c){
if(c)_ToastContainer.ToastContainer.toastInstance=c;
},__source:{fileName:_jsxFileName,lineNumber:15}}),
_react2.default.createElement(_Actionsheet.ActionSheetContainer,{
ref:function ref(c){
if(c)
_Actionsheet.ActionSheetContainer.actionsheetInstance=c;
},__source:{fileName:_jsxFileName,lineNumber:20}})));
}}]);return Root;}(_react.Component);
Root.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledRoot=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Root",{},_mapPropsToStyleNames2.default)(
Root);exports.
Root=StyledRoot;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Root=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Root.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _ToastContainer=require("./ToastContainer");var _Actionsheet=require("./Actionsheet");var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Root=function(_Component){_inherits(Root,_Component);function Root(){_classCallCheck(this,Root);return _possibleConstructorReturn(this,(Root.__proto__||Object.getPrototypeOf(Root)).apply(this,arguments));}_createClass(Root,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:13}}),this.props.children,_react2.default.createElement(_ToastContainer.ToastContainer,{ref:function ref(c){if(c)_ToastContainer.ToastContainer.toastInstance=c;},__source:{fileName:_jsxFileName,lineNumber:15}}),_react2.default.createElement(_Actionsheet.ActionSheetContainer,{ref:function ref(c){if(c)_Actionsheet.ActionSheetContainer.actionsheetInstance=c;},__source:{fileName:_jsxFileName,lineNumber:20}}));}}]);return Root;}(_react.Component);Root.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledRoot=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Root",{},_mapPropsToStyleNames2.default)(Root);exports.Root=StyledRoot; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Input.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
<mask> {
<mask> return{
<mask> roundedInputGroup:{
<mask> borderWidth:this.props.rounded?1:undefined,
<mask> borderRadius:this.props.rounded?
<mask> _platform2.default.inputGroupRoundedBorderRadius:
<mask> undefined}};
<mask>
<mask>
<mask> }},{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask> {
<mask> var defaultProps={
<mask> style:this.getInitialStyle().roundedInputGroup};
<mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
<mask> this.props.children));
<mask>
<mask>
<mask> }}]);return InputGroup;}(_react.Component);
<mask>
<mask>
<mask> InputGroup.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> regular:_propTypes2.default.bool,
<mask> underline:_propTypes2.default.bool,
<mask> rounded:_propTypes2.default.bool,
<mask> success:_propTypes2.default.bool,
<mask> error:_propTypes2.default.bool,
<mask> disabled:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.InputGroup",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> InputGroup);exports.
<mask>
<mask> InputGroup=StyledInputGroup;
<mask> //# sourceMappingURL=InputGroup.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
{
return{
textarea:{
height:this.props.rowSpan?this.props.rowSpan*25:60}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getStyle().textarea};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
}},
this.prepareRootProps(),{
multiline:true,
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
}}]);return Textarea;}(_react.Component);
Textarea.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
rowSpan:_propTypes2.default.number,
bordered:_propTypes2.default.bool,
underline:_propTypes2.default.bool});
var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
Textarea=StyledTextarea;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var GRAVATAR_URI="https://www.gravatar.com/avatar/";var
Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
gravatar:{
borderRadius:this.props.size?this.props.size/2:15,
width:this.props.size?this.props.size:30,
height:this.props.size?this.props.size:30,
resizeMode:this.props.contain?"contain":undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var gravatarStyle={};
if(this.props.circular){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=this.props.size/2;
}else if(this.props.square){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=0;
}
var defaultProps={
style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var props=this.prepareRootProps();
var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.
height;
return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));
}}]);return Gravatar;}(_NativeBaseComponent3.default);
Gravatar.propTypes=_extends({},
_reactNative.Image.propTypes,{
email:PropTypes.string.isRequired,
style:PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array]),
size:PropTypes.number,
circular:PropTypes.bool,
square:PropTypes.bool});
var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Gravatar",
{},
_mapPropsToStyleNames2.default)(
Gravatar);exports.
Gravatar=StyledGravatar;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var GRAVATAR_URI="https://www.gravatar.com/avatar/";var Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle(){return{gravatar:{borderRadius:this.props.size?this.props.size/2:15,width:this.props.size?this.props.size:30,height:this.props.size?this.props.size:30,resizeMode:this.props.contain?"contain":undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var gravatarStyle={};if(this.props.circular){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=this.props.size/2;}else if(this.props.square){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=0;}var defaultProps={style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var props=this.prepareRootProps();var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.height;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));}}]);return Gravatar;}(_NativeBaseComponent3.default);Gravatar.propTypes=_extends({},_reactNative.Image.propTypes,{email:PropTypes.string.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.number,PropTypes.array]),size:PropTypes.number,circular:PropTypes.bool,square:PropTypes.bool});var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Gravatar",{},_mapPropsToStyleNames2.default)(Gravatar);exports.Gravatar=StyledGravatar; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/InputGroup.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> var _Input=require("./Input");
<mask> var _Label=require("./Label");
<mask> var _Icon=require("./Icon");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Item=function(_Component){_inherits(Item,_Component);
<mask> function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
<mask> props));
<mask> _this.state={
<mask> text:"",
<mask> topAnim:new _reactNative.Animated.Value(18),
<mask> opacAnim:new _reactNative.Animated.Value(1)};return _this;
<mask>
<mask> }_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
<mask> {
<mask> if(this.props.floatingLabel){
<mask> if(this.inputProps&&this.inputProps.value){
<mask> this.setState({isFocused:true});
<mask> this.floatUp(-16);
<mask> }
<mask> if(this.inputProps&&this.inputProps.getRef)
<mask> this.inputProps.getRef(this._inputRef);
<mask> }
<mask> }},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
<mask> nextProps){var _this2=this;
<mask> var childrenArray=_react2.default.Children.toArray(nextProps.children);
<mask> var inputProps={};
<mask> _lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type.displayName==="Styled(Input)"){
<mask> inputProps=item.props;
<mask> _this2.inputProps=item.props;
<mask> return item;
<mask> }
<mask> });
<mask> if(this.props.floatingLabel){
<mask> if(this.inputProps&&this.inputProps.value){
<mask> this.setState({isFocused:true});
<mask> this.floatUp(-16);
<mask> }
<mask> if(this.inputProps&&this.inputProps.getRef)
<mask> this.inputProps.getRef(this._inputRef);
<mask> }
<mask> }},{key:"floatBack",value:function floatBack()
<mask>
<mask> {
<mask> _reactNative.Animated.timing(this.state.topAnim,{
<mask> toValue:18,
<mask> duration:150}).
<mask> start();
<mask> _reactNative.Animated.timing(this.state.opacAnim,{
<mask> toValue:1,
<mask> duration:150}).
<mask> start();
<mask> }},{key:"floatUp",value:function floatUp(
<mask>
<mask> e){
<mask> _reactNative.Animated.timing(this.state.topAnim,{
<mask> toValue:e||-22,
<mask> duration:150}).
<mask> start();
<mask> _reactNative.Animated.timing(this.state.opacAnim,{
<mask> toValue:0.7,
<mask> duration:150}).
<mask> start();
<mask> }},{key:"renderLabel",value:function renderLabel(
<mask>
<mask> label,labelProps){
<mask> var newLabel=[];
<mask> var labelStyle=_reactNative.StyleSheet.flatten(
<mask> {fontSize:15,lineHeight:30},
<mask> labelProps.style);
<mask>
<mask> if(this.props.floatingLabel){
<mask> if(this.state.isFocused){
<mask> newLabel.push(
<mask> _react2.default.createElement(_Label.Label,_extends({},
<mask> labelProps,{
<mask> key:"newFLabel",
<mask> float:true,
<mask> style:labelStyle})));
<mask>
<mask>
<mask> this.floatUp(-16);
<mask> }else{
<mask> newLabel.push(label);
<mask> this.floatBack();
<mask> }
<mask> }else{
<mask> newLabel.push(
<mask> _react2.default.createElement(_Label.Label,_extends({},
<mask> labelProps,{
<mask> key:"newLabel"})));
<mask>
<mask>
<mask> }
<mask> return newLabel;
<mask> }},{key:"renderChildren",value:function renderChildren()
<mask>
<mask> {var _this3=this;
<mask> var newChildren=[];
<mask> var childrenArray=_react2.default.Children.toArray(this.props.children);
<mask>
<mask> var label=[];
<mask> var labelProps={};
<mask> label=_lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type===_Label.Label){
<mask> labelProps=item.props;
<mask> return item;
<mask> }
<mask> });
<mask>
<mask> var input=[];
<mask> var inputProps={};
<mask> input=_lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type===_Input.Input){
<mask> inputProps=item.props;
<mask> _this3.inputProps=item.props;
<mask> return item;
<mask> }
<mask> });
<mask>
<mask> var icon=[];
<mask> var iconProps={};
<mask> icon=_lodash2.default.remove(childrenArray,function(item){
<mask> if(item.type===_Icon.Icon){
<mask> iconProps=item.props;
<mask> return item;
<mask> }
<mask> });
<mask> if(this.props.floatingLabel&&icon.length){
<mask> var isIcon=false;
<mask> for(var i=0;i<this.props.children.length;i++){
<mask> if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
<mask> isIcon=true;
<mask> newChildren.push(
<mask> _react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
<mask>
<mask> }
<mask> if(this.props.children[i].props.children){
<mask> newChildren.push(
<mask> _react2.default.createElement(_reactNative.Animated.View,{
<mask> key:"float",
<mask> style:{
<mask> position:"absolute",
<mask> left:
<mask> this.props.last&&isIcon?
<mask> 40:
<mask> this.props.last?
<mask> 15:
<mask> isIcon?
<mask> 26:
<mask> 0,
<mask> right:0,
<mask> top:this.state.topAnim,
<mask> opacity:this.state.opacAnim,
<mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
<mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
<mask>
<mask>
<mask> _react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
<mask> this.renderLabel(label,labelProps))));
<mask>
<mask>
<mask>
<mask> newChildren.push(
<mask> _react2.default.createElement(_Input.Input,_extends({
<mask> ref:function ref(c){return _this3._inputRef=c;},
<mask> key:"l2"},
<mask> inputProps,{
<mask> onFocus:function onFocus(){
<mask> _this3.setState({isFocused:true});
<mask> inputProps.onFocus&&inputProps.onFocus();
<mask> },
<mask> onBlur:function onBlur(){
<mask> inputProps.value?
<mask> _this3.setState({
<mask> isFocused:true}):
<mask>
<mask> !_this3.state.text.length&&
<mask> _this3.setState({isFocused:false});
<mask> inputProps.onBlur&&inputProps.onBlur();
<mask> },
<mask> onChangeText:function onChangeText(text){
<mask> _this3.setState({text:text});
<mask> inputProps.onChangeText&&inputProps.onChangeText(text);
<mask> },__source:{fileName:_jsxFileName,lineNumber:180}})));
<mask>
<mask>
<mask> }
<mask> }
<mask> }else if(this.props.floatingLabel){
<mask> newChildren.push(
<mask> _react2.default.createElement(_reactNative.Animated.View,{
<mask> key:"float",
<mask> style:{
<mask> position:"absolute",
<mask> left:this.props.last?15:0,
<mask> right:0,
<mask> top:this.state.topAnim,
<mask> opacity:this.state.opacAnim,
<mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
<mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
<mask>
<mask>
<mask> _react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
<mask>
<mask>
<mask> newChildren.push(
<mask> _react2.default.createElement(_Input.Input,_extends({
<mask> ref:function ref(c){return _this3._inputRef=c;},
<mask> value:this.state.text,
<mask> key:"l2"},
<mask> inputProps,{
<mask> onFocus:function onFocus(){
<mask> _this3.setState({isFocused:true});
<mask> inputProps.onFocus&&inputProps.onFocus();
<mask> },
<mask> onBlur:function onBlur(){
<mask> inputProps.value?
<mask> _this3.setState({
<mask> isFocused:true}):
<mask>
<mask> !_this3.state.text.length&&_this3.setState({isFocused:false});
<mask> inputProps.onBlur&&inputProps.onBlur();
<mask> },
<mask> onChangeText:function onChangeText(text){
<mask> _this3.setState({text:text});
<mask> inputProps.onChangeText&&inputProps.onChangeText(text);
<mask> },__source:{fileName:_jsxFileName,lineNumber:223}})));
<mask>
<mask>
<mask> }else if(this.props.stackedLabel&&icon.length){
<mask> newChildren.push(
<mask> _react2.default.createElement(_reactNative.View,{
<mask> key:"s",
<mask> style:{
<mask> flexDirection:"row",
<mask> flex:1,
<mask> width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
<mask>
<mask>
<mask> _react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
<mask> _react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
<mask> _react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
<mask> _react2.default.createElement(_Input.Input,_extends({
<mask> key:"s3"},
<mask> inputProps,{
<mask> style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
<mask>
<mask>
<mask>
<mask>
<mask> }else{
<mask> return this.props.children;
<mask> }
<mask> return newChildren;
<mask> }},{key:"getInitialStyle",value:function getInitialStyle()
<mask> {
<mask> return{
<mask> roundedInputGroup:{
<mask> borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
<mask> borderRadius:this.props.rounded?
<mask> _platform2.default.inputGroupRoundedBorderRadius:
<mask> undefined}};
<mask>
<mask>
<mask> }},{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask> {
<mask> var defaultProps={
<mask> style:this.getInitialStyle().roundedInputGroup};
<mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"render",value:function render()
<mask> {var _this4=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({
<mask> ref:function ref(c){return _this4._root=c;}},
<mask> this.prepareRootProps(),{
<mask> activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
<mask>
<mask> this.renderChildren()));
<mask>
<mask>
<mask> }}]);return Item;}(_react.Component);
<mask>
<mask>
<mask> var childrenType=function childrenType(props,propName,component){
<mask> var error=void 0;
<mask> var prop=props[propName];
<mask> if(!props.children.length){
<mask> error=new Error(
<mask> component+" should have both Label and Input components");
<mask>
<mask> }else if(
<mask> props.children[0].type.displayName!=="Styled(Label)"||
<mask> props.children[1].type.displayName!=="Styled(Input)")
<mask> {
<mask> error=new Error(
<mask> component+" should have Label and Input components only");
<mask>
<mask> }
<mask> return error;
<mask> };
<mask>
<mask> Item.propTypes=_extends({},
<mask> _reactNative.TouchableOpacity.propTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array]),
<mask>
<mask> inlineLabel:_propTypes2.default.bool,
<mask> floatingLabel:_propTypes2.default.bool,
<mask> stackedLabel:_propTypes2.default.bool,
<mask> fixedLabel:_propTypes2.default.bool,
<mask> success:_propTypes2.default.bool,
<mask> error:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
<mask> Item);exports.
<mask>
<mask>
<mask> Item=StyledItem;
<mask> //# sourceMappingURL=Item.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _reactNative=require("react-native");
var _Icon=require("./Icon");
var _IconNB=require("./IconNB");
var _Button=require("./Button");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
Fab=function(_Component){_inherits(Fab,_Component);
function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
props));
_this.containerHeight=new _reactNative.Animated.Value(56);
_this.containerWidth=new _reactNative.Animated.Value(0);
_this.buttonScale=new _reactNative.Animated.Value(0);
_this.state={
buttons:undefined,
active:false};return _this;
}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
pos)
{
if(pos==="topLeft"){
return{
top:20,
bottom:undefined,
left:20,
right:undefined};
}else if(pos==="bottomRight"){
return{
top:undefined,
bottom:20,
left:undefined,
right:20};
}else if(pos==="bottomLeft"){
return{
top:undefined,
bottom:20,
left:20,
right:undefined};
}else if(pos==="topRight"){
return{
top:20,
bottom:undefined,
left:undefined,
right:20};
}
}},{key:"fabOtherBtns",value:function fabOtherBtns(
direction,i){
if(direction==="up"){
return{
top:undefined,
bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:5:
i*50+65,
left:8,
right:0};
}else if(direction==="left"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
-(i*50+58),
right:0};
}else if(direction==="down"){
return{
top:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
bottom:0,
left:8,
right:0};
}else if(direction==="right"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
right:0};
}
}},{key:"getInitialStyle",value:function getInitialStyle(
iconStyle){
return{
fab:{
height:56,
width:56,
borderRadius:28,
elevation:4,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.4,
justifyContent:"center",
alignItems:"center",
shadowRadius:2,
position:"absolute",
bottom:0,
backgroundColor:"blue"},
container:{
position:"absolute",
top:this.props.position?
this.fabTopValue(this.props.position).top:
undefined,
bottom:this.props.position?
this.fabTopValue(this.props.position).bottom:
20,
right:this.props.position?
this.fabTopValue(this.props.position).right:
20,
left:this.props.position?
this.fabTopValue(this.props.position).left:
undefined,
width:56,
height:this.containerHeight,
flexDirection:this.props.direction?
this.props.direction==="left"||this.props.direction==="right"?
"row":
"column":
"column",
alignItems:"center"},
iconStyle:_extends({
color:"#fff",
fontSize:24,
lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
iconStyle),
buttonStyle:{
position:"absolute",
height:40,
width:40,
left:7,
borderRadius:20,
transform:this.state.active?
[{scale:new _reactNative.Animated.Value(1)}]:
[{scale:this.buttonScale}],
marginBottom:10,
backgroundColor:"blue"}};
}},{key:"getContainerStyle",value:function getContainerStyle()
{
return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
}},{key:"prepareFabProps",value:function prepareFabProps()
{
var defaultProps={
style:this.getInitialStyle().fab};
var incomingProps=_lodash2.default.clone(this.props);
delete incomingProps.onPress;
return(0,_computeProps2.default)(incomingProps,defaultProps);
}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
child,i){
var type={
top:this.props.direction?
this.fabOtherBtns(this.props.direction,i).top:
undefined,
left:this.props.direction?
this.fabOtherBtns(this.props.direction,i).left:
8,
right:this.props.direction?
this.fabOtherBtns(this.props.direction,i).right:
0,
bottom:this.props.direction?
this.fabOtherBtns(this.props.direction,i).bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
i*50+50};
return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
}},{key:"prepareButtonProps",value:function prepareButtonProps(
child){
var inp=_lodash2.default.clone(child.props);
delete inp.style;
var defaultProps={};
return(0,_computeProps2.default)(inp,defaultProps);
}},{key:"componentDidMount",value:function componentDidMount()
{var _this2=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
this.setState({
buttons:icon.length});
this.activeTimer=setTimeout(function(){
_this2.setState({
active:_this2.props.active});
},0);
}},{key:"componentWillUnmount",value:function componentWillUnmount()
{
if(this.activeTimer){
clearTimeout(this.activeTimer);
}
}},{key:"renderFab",value:function renderFab()
{
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
return _react2.default.cloneElement(childrenArray[0],{
style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
}},{key:"renderButtons",value:function renderButtons()
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var newChildren=[];
{
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:279}}),
child.props.children));
});
}
return newChildren;
}},{key:"upAnimate",value:function upAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"leftAnimate",value:function leftAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"rightAnimate",value:function rightAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"downAnimate",value:function downAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"_animate",value:function _animate()
{var _props=
this.props,direction=_props.direction,position=_props.position;
if(this.props.direction){
if(this.props.direction==="up"){
this.upAnimate();
}else if(this.props.direction==="left"){
this.leftAnimate();
}else if(this.props.direction==="right"){
this.rightAnimate();
}else if(this.props.direction==="down"){
this.downAnimate();
}
}else{
this.upAnimate();
}
}},{key:"fabOnPress",value:function fabOnPress()
{var _this4=this;
if(this.props.onPress){
this.props.onPress();
this._animate();
this.activeTimer=setTimeout(function(){
_this4.setState({
active:_this4.props.active});
},100);
}
}},{key:"render",value:function render()
{var _this5=this;var
active=this.props.active;
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
this.renderButtons(),
_reactNative.Platform.OS==="ios"||
_platform2.default.androidRipple===false||
_reactNative.Platform["Version"]<=21?
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
this.renderFab()):
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
this.renderFab()))));
}}]);return Fab;}(_react.Component);
var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
Fab=StyledFab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var SWIPE_THRESHOLD=120;var
DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);
function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,
props));
_this.state={
pan:new _reactNative.Animated.ValueXY(),
pan2:new _reactNative.Animated.ValueXY(),
enter:new _reactNative.Animated.Value(0.8),
selectedItem:_this.props.dataSource[0],
selectedItem2:_this.props.dataSource[1],
card1Top:true,
card2Top:false,
fadeAnim:new _reactNative.Animated.Value(0.8),
looping:
typeof _this.props.looping==="undefined"?true:_this.props.looping,
disabled:_this.props.dataSource.length===0,
lastCard:_this.props.dataSource.length===1};return _this;
}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref)
{var dataSource=_ref.dataSource;
if(dataSource.length!==this.props.dataSource.length){
if(dataSource.length<=1){
this.setState(_extends({},
this.state,{
selectedItem:dataSource[0],
selectedItem2:undefined,
disabled:dataSource.length===0,
lastCard:dataSource.length===1}));
return;
}
var visibleIndex=dataSource.indexOf(this.state.selectedItem);
var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;
var nextIndex=
currentIndex+1===dataSource.length?0:currentIndex+1;
this.setState({
selectedItem:dataSource[currentIndex],
selectedItem2:dataSource[nextIndex]});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
topCard:{
position:"absolute",
top:0,
right:0,
left:0}};
}},{key:"findNextIndexes",value:function findNextIndexes(
currentIndex){
var newIdx=currentIndex+1;
var newIdx2=currentIndex+2;
if(
newIdx2>this.props.dataSource.length-1&&
newIdx===this.props.dataSource.length-1)
{
return[newIdx,0];
}else if(newIdx>this.props.dataSource.length-1){
return[0,1];
}
return[newIdx,newIdx2];
}},{key:"selectNext",value:function selectNext()
{var _this2=this;
var dataSource=this.props.dataSource;
var currentIndex=dataSource.indexOf(this.state.selectedItem);
if(!this.state.looping){
if(currentIndex===dataSource.length-1){
return this.setState({
disabled:true});
}else if(currentIndex===dataSource.length-2){
return setTimeout(function(){
_this2.setState({
selectedItem:dataSource[currentIndex+1]});
setTimeout(function(){
_this2.setState({
lastCard:true});
},350);
},50);
}
}
var nextIndexes=this.findNextIndexes(currentIndex);
setTimeout(function(){
_this2.setState({
selectedItem:_this2.props.dataSource[nextIndexes[0]]});
setTimeout(function(){
_this2.setState({
selectedItem2:_this2.props.dataSource[nextIndexes[1]]});
},350);
},50);
}},{key:"swipeRight",value:function swipeRight()
{var _this3=this;
if(this.props.onSwiping)this.props.onSwiping("right");
setTimeout(function(){
_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();
_this3.selectNext();
_reactNative.Animated.decay(_this3.state.pan,{
velocity:{x:8,y:1},
deceleration:0.98}).
start(_this3._resetState.bind(_this3));
},300);
}},{key:"swipeLeft",value:function swipeLeft()
{var _this4=this;
if(this.props.onSwiping)this.props.onSwiping("left");
setTimeout(function(){
_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();
_this4.selectNext();
_reactNative.Animated.decay(_this4.state.pan,{
velocity:{x:-8,y:1},
deceleration:0.98}).
start(_this4._resetState.bind(_this4));
},300);
}},{key:"componentWillMount",value:function componentWillMount()
{var _this5=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},
onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return(
Math.abs(gestureState.dx)>5);},
onPanResponderGrant:function onPanResponderGrant(e,gestureState){
_this5.state.pan.setOffset({
x:_this5.state.pan.x._value,
y:_this5.state.pan.y._value});
_this5.state.pan.setValue({x:0,y:0});
},
onPanResponderMove:function onPanResponderMove(e,gestureState){
if(gestureState.dx>20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("right",gestureState.dx);
}else if(gestureState.dx<-20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("left",gestureState.dx);
}
var val=Math.abs(gestureState.dx*0.0013);
var opa=Math.abs(gestureState.dx*0.0022);
if(val>0.2){
val=0.2;
}
_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();
_reactNative.Animated.spring(_this5.state.enter,{
toValue:0.8+val,
friction:7}).
start();
_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);
},
onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;
if(_this5.props.onSwiping)_this5.props.onSwiping(null);
var velocity=void 0;
if(vx>=0){
velocity=(0,_clamp2.default)(vx,4.5,10);
}else if(vx<0){
velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;
}
if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){
if(velocity>0){
_this5.props.onSwipeRight?
_this5.props.onSwipeRight(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}else{
_this5.props.onSwipeLeft?
_this5.props.onSwipeLeft(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}
_reactNative.Animated.decay(_this5.state.pan,{
velocity:{x:velocity,y:vy},
deceleration:0.98}).
start(_this5._resetState.bind(_this5));
}else{
_reactNative.Animated.spring(_this5.state.pan,{
toValue:{x:0,y:0},
friction:4}).
start();
}
}});
}},{key:"_resetState",value:function _resetState()
{
this.state.pan.setValue({x:0,y:0});
this.state.enter.setValue(0.8);
this.state.fadeAnim.setValue(0.8);
this.setState({
card1Top:!this.state.card1Top,
card2Top:!this.state.card2Top});
if(this.props.onSwiping)this.props.onSwiping(null);
}},{key:"getCardStyles",value:function getCardStyles()
{var _state=
this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=
[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];
var rotate=pan.x.interpolate({
inputRange:[-700,0,700],
outputRange:["-10deg","0deg","10deg"]});
var opacity=pan.x.interpolate({
inputRange:[-320,0,320],
outputRange:[0.9,1,0.9]});
var scale=enter;
var animatedCardStyles={
transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],
opacity:opacity};
var animatedCardStyles2={transform:[{scale:scale}]};
return[animatedCardStyles,animatedCardStyles2];
}},{key:"render",value:function render()
{
if(this.state.disabled){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())));
}else if(this.state.lastCard){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),
this.props.renderEmpty&&this.props.renderEmpty()),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[0],
this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),
this.props.renderItem(this.state.selectedItem)))));
}
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),
this.props.renderBottom?
this.props.renderBottom(this.state.selectedItem2):
this.props.renderItem(this.state.selectedItem2)),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),
this.props.renderTop?
this.props.renderTop(this.state.selectedItem):
this.props.renderItem(this.state.selectedItem)))));
}}]);return DeckSwiper;}(_react.Component);
DeckSwiper.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataSource:_propTypes2.default.array});
var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DeckSwiper",
{},
_mapPropsToStyleNames2.default)(
DeckSwiper);exports.
DeckSwiper=StyledDeckSwiper;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var SWIPE_THRESHOLD=120;var DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,props));_this.state={pan:new _reactNative.Animated.ValueXY(),pan2:new _reactNative.Animated.ValueXY(),enter:new _reactNative.Animated.Value(0.8),selectedItem:_this.props.dataSource[0],selectedItem2:_this.props.dataSource[1],card1Top:true,card2Top:false,fadeAnim:new _reactNative.Animated.Value(0.8),looping:typeof _this.props.looping==="undefined"?true:_this.props.looping,disabled:_this.props.dataSource.length===0,lastCard:_this.props.dataSource.length===1};return _this;}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var dataSource=_ref.dataSource;if(dataSource.length!==this.props.dataSource.length){if(dataSource.length<=1){this.setState(_extends({},this.state,{selectedItem:dataSource[0],selectedItem2:undefined,disabled:dataSource.length===0,lastCard:dataSource.length===1}));return;}var visibleIndex=dataSource.indexOf(this.state.selectedItem);var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;var nextIndex=currentIndex+1===dataSource.length?0:currentIndex+1;this.setState({selectedItem:dataSource[currentIndex],selectedItem2:dataSource[nextIndex]});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{topCard:{position:"absolute",top:0,right:0,left:0}};}},{key:"findNextIndexes",value:function findNextIndexes(currentIndex){var newIdx=currentIndex+1;var newIdx2=currentIndex+2;if(newIdx2>this.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.SwipeRow=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/SwipeRow.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var PREVIEW_OPEN_DELAY=700;
var PREVIEW_CLOSE_DELAY=300;var
SwipeRow=function(_Component){_inherits(SwipeRow,_Component);
function SwipeRow(props){_classCallCheck(this,SwipeRow);var _this=_possibleConstructorReturn(this,(SwipeRow.__proto__||Object.getPrototypeOf(SwipeRow)).call(this,
props));
_this.horizontalSwipeGestureBegan=false;
_this.swipeInitialX=null;
_this.parentScrollEnabled=true;
_this.ranPreview=false;
_this.state={
dimensionsSet:false,
hiddenHeight:0,
hiddenWidth:0};
_this._translateX=new _reactNative.Animated.Value(0);return _this;
}_createClass(SwipeRow,[{key:"componentWillMount",value:function componentWillMount()
{var _this2=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetPanResponder:function onMoveShouldSetPanResponder(e,gs){return _this2.handleOnMoveShouldSetPanResponder(e,gs);},
onPanResponderMove:function onPanResponderMove(e,gs){return _this2.handlePanResponderMove(e,gs);},
onPanResponderRelease:function onPanResponderRelease(e,gs){return _this2.handlePanResponderEnd(e,gs);},
onPanResponderTerminate:function onPanResponderTerminate(e,gs){return _this2.handlePanResponderEnd(e,gs);},
onShouldBlockNativeResponder:function onShouldBlockNativeResponder(_){return false;}});
}},{key:"getPreviewAnimation",value:function getPreviewAnimation(
toValue,delay){
return _reactNative.Animated.timing(this._translateX,{duration:this.props.previewDuration,toValue:toValue,delay:delay});
}},{key:"onContentLayout",value:function onContentLayout(
e){var _this3=this;
this.setState({
dimensionsSet:!this.props.recalculateHiddenLayout,
hiddenHeight:e.nativeEvent.layout.height,
hiddenWidth:e.nativeEvent.layout.width});
if(this.props.preview&&!this.ranPreview){
this.ranPreview=true;
var previewOpenValue=this.props.previewOpenValue||this.props.rightOpenValue*0.5;
this.getPreviewAnimation(previewOpenValue,PREVIEW_OPEN_DELAY).start(function(_){
_this3.getPreviewAnimation(0,PREVIEW_CLOSE_DELAY).start();
});
}
}},{key:"handleOnMoveShouldSetPanResponder",value:function handleOnMoveShouldSetPanResponder(
e,gs){var
dx=gs.dx;
return Math.abs(dx)>this.props.directionalDistanceChangeThreshold;
}},{key:"handlePanResponderMove",value:function handlePanResponderMove(
e,gestureState){var
dx=gestureState.dx,dy=gestureState.dy;
var absDx=Math.abs(dx);
var absDy=Math.abs(dy);
if(
absDx>this.props.directionalDistanceChangeThreshold||
absDy>this.props.directionalDistanceChangeThreshold)
{
if(absDy>absDx&&!this.horizontalSwipeGestureBegan){
return;
}
if(this.parentScrollEnabled){
this.parentScrollEnabled=false;
this.props.setScrollEnabled&&this.props.setScrollEnabled(false);
}
if(this.swipeInitialX===null){
this.swipeInitialX=this._translateX._value;
}
if(!this.horizontalSwipeGestureBegan){
this.horizontalSwipeGestureBegan=true;
this.props.swipeGestureBegan&&this.props.swipeGestureBegan();
}
var newDX=this.swipeInitialX+dx;
if(this.props.disableLeftSwipe&&newDX<0){
newDX=0;
}
if(this.props.disableRightSwipe&&newDX>0){
newDX=0;
}
if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){
newDX=this.props.stopLeftSwipe;
}
if(this.props.stopRightSwipe&&newDX<this.props.stopRightSwipe){
newDX=this.props.stopRightSwipe;
}
this._translateX.setValue(newDX);
}
}},{key:"handlePanResponderEnd",value:function handlePanResponderEnd(
e,gestureState){
if(!this.parentScrollEnabled){
this.parentScrollEnabled=true;
this.props.setScrollEnabled&&this.props.setScrollEnabled(true);
}
var toValue=0;
if(this._translateX._value>=0){
if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){
toValue=this.props.leftOpenValue;
}
}else{
if(this._translateX._value<this.props.rightOpenValue*(this.props.swipeToOpenPercent/100)){
toValue=this.props.rightOpenValue;
}
}
this.manuallySwipeRow(toValue);
}},{key:"closeRow",value:function closeRow()
{
this.manuallySwipeRow(0);
}},{key:"manuallySwipeRow",value:function manuallySwipeRow(
toValue){var _this4=this;
_reactNative.Animated.spring(this._translateX,{
toValue:toValue,
friction:this.props.friction,
tension:this.props.tension}).
start(function(_){
if(toValue===0){
_this4.props.onRowDidClose&&_this4.props.onRowDidClose();
}else{
_this4.props.onRowDidOpen&&_this4.props.onRowDidOpen();
}
});
if(toValue===0){
this.props.onRowClose&&this.props.onRowClose();
}else{
this.props.onRowOpen&&this.props.onRowOpen(toValue);
}
this.swipeInitialX=null;
this.horizontalSwipeGestureBegan=false;
}},{key:"renderMainContent",value:function renderMainContent()
{var _this5=this;
if(this.state.dimensionsSet){
return(
_react2.default.createElement(_reactNative.Animated.View,_extends({},
this._panResponder.panHandlers,{
style:{
transform:[{translateX:this._translateX}],
zIndex:2},__source:{fileName:_jsxFileName,lineNumber:191}}),
!this.props.list?
_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:199}},
this.props.body):
_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:202}},
this.props.body)));
}else{
return(
_react2.default.createElement(_reactNative.Animated.View,_extends({},
this._panResponder.panHandlers,{
onLayout:function onLayout(e){return _this5.onContentLayout(e);},
style:{
transform:[{translateX:this._translateX}],
zIndex:2},__source:{fileName:_jsxFileName,lineNumber:209}}),
!this.props.list?
_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:218}},
this.props.body):
_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:221}},
this.props.body)));
}
}},{key:"render",value:function render()
{
return(
_react2.default.createElement(_reactNative.View,{style:this.props.style?this.props.style:undefined,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(_reactNative.View,{
style:[
styles.hidden,
{
height:this.state.hiddenHeight,
flex:1,
flexDirection:"row",
justifyContent:"space-between"}],__source:{fileName:_jsxFileName,lineNumber:232}},
_react2.default.createElement(_Left.Left,{style:{width:this.props.leftOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:243}},
this.props.left),
_react2.default.createElement(_Body.Body,{style:{flex:0},__source:{fileName:_jsxFileName,lineNumber:246}}),
_react2.default.createElement(_Right.Right,{style:{width:-this.props.rightOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:247}},
this.props.right)),
this.renderMainContent()));
}}]);return SwipeRow;}(_react.Component);SwipeRow.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,preview:false,previewDuration:300,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};
var styles={
container:{},
hidden:{
bottom:0,
left:0,
overflow:"hidden",
position:"absolute",
right:0,
top:0}};
var StyledSwipeRow=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.SwipeRow",{},_mapPropsToStyleNames2.default)(SwipeRow);exports.
SwipeRow=StyledSwipeRow;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.SwipeRow=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/SwipeRow.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PREVIEW_OPEN_DELAY=700;var PREVIEW_CLOSE_DELAY=300;var SwipeRow=function(_Component){_inherits(SwipeRow,_Component);function SwipeRow(props){_classCallCheck(this,SwipeRow);var _this=_possibleConstructorReturn(this,(SwipeRow.__proto__||Object.getPrototypeOf(SwipeRow)).call(this,props));_this.horizontalSwipeGestureBegan=false;_this.swipeInitialX=null;_this.parentScrollEnabled=true;_this.ranPreview=false;_this.state={dimensionsSet:false,hiddenHeight:0,hiddenWidth:0};_this._translateX=new _reactNative.Animated.Value(0);return _this;}_createClass(SwipeRow,[{key:"componentWillMount",value:function componentWillMount(){var _this2=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetPanResponder:function onMoveShouldSetPanResponder(e,gs){return _this2.handleOnMoveShouldSetPanResponder(e,gs);},onPanResponderMove:function onPanResponderMove(e,gs){return _this2.handlePanResponderMove(e,gs);},onPanResponderRelease:function onPanResponderRelease(e,gs){return _this2.handlePanResponderEnd(e,gs);},onPanResponderTerminate:function onPanResponderTerminate(e,gs){return _this2.handlePanResponderEnd(e,gs);},onShouldBlockNativeResponder:function onShouldBlockNativeResponder(_){return false;}});}},{key:"getPreviewAnimation",value:function getPreviewAnimation(toValue,delay){return _reactNative.Animated.timing(this._translateX,{duration:this.props.previewDuration,toValue:toValue,delay:delay});}},{key:"onContentLayout",value:function onContentLayout(e){var _this3=this;this.setState({dimensionsSet:!this.props.recalculateHiddenLayout,hiddenHeight:e.nativeEvent.layout.height,hiddenWidth:e.nativeEvent.layout.width});if(this.props.preview&&!this.ranPreview){this.ranPreview=true;var previewOpenValue=this.props.previewOpenValue||this.props.rightOpenValue*0.5;this.getPreviewAnimation(previewOpenValue,PREVIEW_OPEN_DELAY).start(function(_){_this3.getPreviewAnimation(0,PREVIEW_CLOSE_DELAY).start();});}}},{key:"handleOnMoveShouldSetPanResponder",value:function handleOnMoveShouldSetPanResponder(e,gs){var dx=gs.dx;return Math.abs(dx)>this.props.directionalDistanceChangeThreshold;}},{key:"handlePanResponderMove",value:function handlePanResponderMove(e,gestureState){var dx=gestureState.dx,dy=gestureState.dy;var absDx=Math.abs(dx);var absDy=Math.abs(dy);if(absDx>this.props.directionalDistanceChangeThreshold||absDy>this.props.directionalDistanceChangeThreshold){if(absDy>absDx&&!this.horizontalSwipeGestureBegan){return;}if(this.parentScrollEnabled){this.parentScrollEnabled=false;this.props.setScrollEnabled&&this.props.setScrollEnabled(false);}if(this.swipeInitialX===null){this.swipeInitialX=this._translateX._value;}if(!this.horizontalSwipeGestureBegan){this.horizontalSwipeGestureBegan=true;this.props.swipeGestureBegan&&this.props.swipeGestureBegan();}var newDX=this.swipeInitialX+dx;if(this.props.disableLeftSwipe&&newDX<0){newDX=0;}if(this.props.disableRightSwipe&&newDX>0){newDX=0;}if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){newDX=this.props.stopLeftSwipe;}if(this.props.stopRightSwipe&&newDX<this.props.stopRightSwipe){newDX=this.props.stopRightSwipe;}this._translateX.setValue(newDX);}}},{key:"handlePanResponderEnd",value:function handlePanResponderEnd(e,gestureState){if(!this.parentScrollEnabled){this.parentScrollEnabled=true;this.props.setScrollEnabled&&this.props.setScrollEnabled(true);}var toValue=0;if(this._translateX._value>=0){if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){toValue=this.props.leftOpenValue;}}else{if(this._translateX._value<this.props.rightOpenValue*(this.props.swipeToOpenPercent/100)){toValue=this.props.rightOpenValue;}}this.manuallySwipeRow(toValue);}},{key:"closeRow",value:function closeRow(){this.manuallySwipeRow(0);}},{key:"manuallySwipeRow",value:function manuallySwipeRow(toValue){var _this4=this;_reactNative.Animated.spring(this._translateX,{toValue:toValue,friction:this.props.friction,tension:this.props.tension}).start(function(_){if(toValue===0){_this4.props.onRowDidClose&&_this4.props.onRowDidClose();}else{_this4.props.onRowDidOpen&&_this4.props.onRowDidOpen();}});if(toValue===0){this.props.onRowClose&&this.props.onRowClose();}else{this.props.onRowOpen&&this.props.onRowOpen(toValue);}this.swipeInitialX=null;this.horizontalSwipeGestureBegan=false;}},{key:"renderMainContent",value:function renderMainContent(){var _this5=this;if(this.state.dimensionsSet){return _react2.default.createElement(_reactNative.Animated.View,_extends({},this._panResponder.panHandlers,{style:{transform:[{translateX:this._translateX}],zIndex:2},__source:{fileName:_jsxFileName,lineNumber:191}}),!this.props.list?_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:199}},this.props.body):_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:202}},this.props.body));}else{return _react2.default.createElement(_reactNative.Animated.View,_extends({},this._panResponder.panHandlers,{onLayout:function onLayout(e){return _this5.onContentLayout(e);},style:{transform:[{translateX:this._translateX}],zIndex:2},__source:{fileName:_jsxFileName,lineNumber:209}}),!this.props.list?_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:218}},this.props.body):_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:221}},this.props.body));}}},{key:"render",value:function render(){return _react2.default.createElement(_reactNative.View,{style:this.props.style?this.props.style:undefined,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(_reactNative.View,{style:[styles.hidden,{height:this.state.hiddenHeight,flex:1,flexDirection:"row",justifyContent:"space-between"}],__source:{fileName:_jsxFileName,lineNumber:232}},_react2.default.createElement(_Left.Left,{style:{width:this.props.leftOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:243}},this.props.left),_react2.default.createElement(_Body.Body,{style:{flex:0},__source:{fileName:_jsxFileName,lineNumber:246}}),_react2.default.createElement(_Right.Right,{style:{width:-this.props.rightOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:247}},this.props.right)),this.renderMainContent());}}]);return SwipeRow;}(_react.Component);SwipeRow.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,preview:false,previewDuration:300,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};var styles={container:{},hidden:{bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0}};var StyledSwipeRow=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.SwipeRow",{},_mapPropsToStyleNames2.default)(SwipeRow);exports.SwipeRow=StyledSwipeRow; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Item.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Label;}(_react.Component);
<mask>
<mask>
<mask> Label.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
<mask>
<mask> Label=StyledLabel;
<mask> //# sourceMappingURL=Label.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Title;}(_react.Component);
Title.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.
Title=StyledTitle;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Title;}(_react.Component);Title.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.Title=StyledTitle; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Subtitle;}(_react.Component);
Subtitle.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.
Subtitle=StyledSubtitle;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Subtitle;}(_react.Component);Subtitle.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.Subtitle=StyledSubtitle; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H3;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H3.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.
H3=StyledH3;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H3;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H3.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.H3=StyledH3; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Label.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Left;}(_react.Component);
<mask>
<mask>
<mask> Left.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
<mask> Left);exports.
<mask>
<mask>
<mask> Left=StyledLeft;
<mask> //# sourceMappingURL=Left.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Right;}(_react.Component);
Right.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(
Right);exports.
Right=StyledRight;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Right;}(_react.Component);Right.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(Right);exports.Right=StyledRight; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Body;}(_react.Component);
Body.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(
Body);exports.
Body=StyledBody;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Body;}(_react.Component);Body.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(Body);exports.Body=StyledBody; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Left.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.List=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/List.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _SwipeRow=require("./SwipeRow");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var List=function(_Component){_inherits(List,_Component);function List(props){_classCallCheck(this,List);var _this=_possibleConstructorReturn(this,(List.__proto__||Object.getPrototypeOf(List)).call(this,props));_this._rows={};_this.openCellId=null;if(props.dataArray&&props.renderRow){var rowHasChanged=props.rowHasChanged||function(r1,r2){return r1!==r2;};var ds=new _reactNative.ListView.DataSource({rowHasChanged:rowHasChanged});_this.state={dataSource:ds.cloneWithRows(props.dataArray)};}else{_this.state={};}return _this;}_createClass(List,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){if(this.state.dataSource){this.setState({dataSource:this.state.dataSource.cloneWithRows(nextProps.dataArray)});}}},{key:"renderChildren",value:function renderChildren(){var childrenArray=_react2.default.Children.map(this.props.children,function(child){return child;});return childrenArray;}},{key:"setScrollEnabled",value:function setScrollEnabled(enable){this._listView.setNativeProps({scrollEnabled:enable});}},{key:"safeCloseOpenRow",value:function safeCloseOpenRow(){if(this._rows[this.openCellId]._root){this._rows[this.openCellId]._root.closeRow();}}},{key:"rowSwipeGestureBegan",value:function rowSwipeGestureBegan(id){if(this.props.closeOnRowBeginSwipe&&this.openCellId&&this.openCellId!==id){this.safeCloseOpenRow();}}},{key:"onRowOpen",value:function onRowOpen(secId,rowId,rowMap){var cellIdentifier=""+secId+rowId;if(this.openCellId&&this.openCellId!==cellIdentifier){this.safeCloseOpenRow();}this.openCellId=cellIdentifier;this.props.onRowOpen&&this.props.onRowOpen(secId,rowId,rowMap);}},{key:"onRowPress",value:function onRowPress(id){if(this.openCellId){if(this.props.closeOnRowPress){this.safeCloseOpenRow();this.openCellId=null;}}}},{key:"closeRow",value:function closeRow(id){if(this.openCellId){if(this.props.closeOnRowPress){this.safeCloseOpenRow();this.openCellId=null;}}}},{key:"onScroll",value:function onScroll(e){if(this.openCellId){if(this.props.closeOnScroll){this.safeCloseOpenRow();this.openCellId=null;}}this.props.onScroll&&this.props.onScroll(e);}},{key:"setRefs",value:function setRefs(ref){this._listView=ref;this.props.listViewRef&&this.props.listViewRef(ref);}},{key:"renderRow",value:function renderRow(rowData,secId,rowId,rowMap){var _this2=this;var previewRowId=this.props.dataSource&&this.props.dataSource.getRowIDForFlatIndex(this.props.previewRowIndex||0);return _react2.default.createElement(_SwipeRow.SwipeRow,{list:true,ref:function ref(row){return _this2._rows[""+secId+rowId]=row;},swipeGestureBegan:function swipeGestureBegan(_){return _this2.rowSwipeGestureBegan(""+secId+rowId);},onRowOpen:function onRowOpen(_){return _this2.onRowOpen(secId,rowId,_this2._rows);},onRowDidOpen:function onRowDidOpen(_){return _this2.props.onRowDidOpen&&_this2.props.onRowDidOpen(secId,rowId,_this2._rows);},onRowClose:function onRowClose(_){return _this2.props.onRowClose&&_this2.props.onRowClose(secId,rowId,_this2._rows);},onRowDidClose:function onRowDidClose(_){return _this2.props.onRowDidClose&&_this2.props.onRowDidClose(secId,rowId,_this2._rows);},onRowPress:function onRowPress(_){return _this2.onRowPress(""+secId+rowId);},closeRow:function closeRow(_){return _this2.closeRow(""+secId+rowId);},setScrollEnabled:function setScrollEnabled(enable){return _this2.setScrollEnabled(enable);},leftOpenValue:this.props.leftOpenValue,rightOpenValue:this.props.rightOpenValue,closeOnRowPress:this.props.closeOnRowPress,disableLeftSwipe:this.props.disableLeftSwipe,disableRightSwipe:this.props.disableRightSwipe,stopLeftSwipe:this.props.stopLeftSwipe,stopRightSwipe:this.props.stopRightSwipe,recalculateHiddenLayout:this.props.recalculateHiddenLayout,style:this.props.swipeRowStyle,preview:(this.props.previewFirstRow||this.props.previewRowIndex)&&rowId===previewRowId,previewDuration:this.props.previewDuration,previewOpenValue:this.props.previewOpenValue,tension:this.props.tension,friction:this.props.friction,directionalDistanceChangeThreshold:this.props.directionalDistanceChangeThreshold,swipeToOpenPercent:this.props.swipeToOpenPercent,left:this.props.renderLeftHiddenRow&&this.props.renderLeftHiddenRow(rowData,secId,rowId,this._rows),right:this.props.renderRightHiddenRow&&this.props.renderRightHiddenRow(rowData,secId,rowId,this._rows),body:this.props.renderRow&&this.props.renderRow(rowData,secId,rowId,this._rows),__source:{fileName:_jsxFileName,lineNumber:120}});}},{key:"render",value:function render(){var _this3=this;if(this.props.renderLeftHiddenRow||this.props.renderRightHiddenRow){return _react2.default.createElement(_reactNative.ListView,_extends({},this.props,{ref:function ref(_ref){_this3.setRefs(_ref);_this3._root=_ref;},enableEmptySections:true,onScroll:function onScroll(e){return _this3.onScroll(e);},renderRow:function renderRow(rowData,secId,rowId){return _this3.renderRow(rowData,secId,rowId,_this3._rows);},__source:{fileName:_jsxFileName,lineNumber:179}}));}else if(this.state.dataSource){return _react2.default.createElement(_reactNative.ListView,_extends({},this.props,{ref:function ref(_ref2){return _this3._root=_ref2;},enableEmptySections:true,dataSource:this.state.dataSource,renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:194}}));}return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this3._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:204}}),this.renderChildren());}}]);return List;}(_react.Component);List.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowBeginSwipe:false,closeOnScroll:true,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,previewFirstRow:false,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};var StyledList=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.List",{},_mapPropsToStyleNames2.default)(List);exports.List=StyledList; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.List=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/List.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask>
<mask> var _SwipeRow=require("./SwipeRow");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> List=function(_Component){_inherits(List,_Component);
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> function List(props){_classCallCheck(this,List);var _this=_possibleConstructorReturn(this,(List.__proto__||Object.getPrototypeOf(List)).call(this,
<mask> props));
<mask> _this._rows={};
<mask> _this.openCellId=null;
<mask> if(props.dataArray&&props.renderRow){
<mask> var rowHasChanged=props.rowHasChanged||function(r1,r2){return r1!==r2;};
<mask> var ds=new _reactNative.ListView.DataSource({rowHasChanged:rowHasChanged});
<mask> _this.state={
<mask> dataSource:ds.cloneWithRows(props.dataArray)};
<mask>
<mask> }else{
<mask> _this.state={};
<mask> }return _this;
<mask> }_createClass(List,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
<mask> nextProps){
<mask> if(this.state.dataSource){
<mask> this.setState({
<mask> dataSource:this.state.dataSource.cloneWithRows(nextProps.dataArray)});
<mask>
<mask> }
<mask> }},{key:"renderChildren",value:function renderChildren()
<mask> {
<mask> var childrenArray=_react2.default.Children.map(
<mask> this.props.children,
<mask> function(child){return child;});
<mask>
<mask>
<mask> return childrenArray;
<mask> }},{key:"setScrollEnabled",value:function setScrollEnabled(
<mask> enable){
<mask> this._listView.setNativeProps({scrollEnabled:enable});
<mask> }},{key:"safeCloseOpenRow",value:function safeCloseOpenRow()
<mask>
<mask> {
<mask>
<mask> if(this._rows[this.openCellId]._root){
<mask> this._rows[this.openCellId]._root.closeRow();
<mask> }
<mask> }},{key:"rowSwipeGestureBegan",value:function rowSwipeGestureBegan(
<mask>
<mask> id){
<mask> if(
<mask> this.props.closeOnRowBeginSwipe&&
<mask> this.openCellId&&
<mask> this.openCellId!==id)
<mask> {
<mask> this.safeCloseOpenRow();
<mask> }
<mask> }},{key:"onRowOpen",value:function onRowOpen(
<mask>
<mask> secId,rowId,rowMap){
<mask> var cellIdentifier=""+secId+rowId;
<mask> if(this.openCellId&&this.openCellId!==cellIdentifier){
<mask> this.safeCloseOpenRow();
<mask> }
<mask> this.openCellId=cellIdentifier;
<mask> this.props.onRowOpen&&this.props.onRowOpen(secId,rowId,rowMap);
<mask> }},{key:"onRowPress",value:function onRowPress(
<mask>
<mask> id){
<mask> if(this.openCellId){
<mask> if(this.props.closeOnRowPress){
<mask> this.safeCloseOpenRow();
<mask> this.openCellId=null;
<mask> }
<mask> }
<mask> }},{key:"closeRow",value:function closeRow(
<mask> id){
<mask> if(this.openCellId){
<mask> if(this.props.closeOnRowPress){
<mask> this.safeCloseOpenRow();
<mask> this.openCellId=null;
<mask> }
<mask> }
<mask> }},{key:"onScroll",value:function onScroll(
<mask>
<mask> e){
<mask> if(this.openCellId){
<mask> if(this.props.closeOnScroll){
<mask> this.safeCloseOpenRow();
<mask> this.openCellId=null;
<mask> }
<mask> }
<mask> this.props.onScroll&&this.props.onScroll(e);
<mask> }},{key:"setRefs",value:function setRefs(
<mask>
<mask> ref){
<mask> this._listView=ref;
<mask> this.props.listViewRef&&this.props.listViewRef(ref);
<mask> }},{key:"renderRow",value:function renderRow(
<mask>
<mask> rowData,secId,rowId,rowMap){var _this2=this;
<mask> var previewRowId=
<mask> this.props.dataSource&&
<mask> this.props.dataSource.getRowIDForFlatIndex(
<mask> this.props.previewRowIndex||0);
<mask>
<mask> return(
<mask> _react2.default.createElement(_SwipeRow.SwipeRow,{
<mask> list:true,
<mask> ref:function ref(row){return _this2._rows[""+secId+rowId]=row;},
<mask> swipeGestureBegan:function swipeGestureBegan(_){return _this2.rowSwipeGestureBegan(""+secId+rowId);},
<mask> onRowOpen:function onRowOpen(_){return _this2.onRowOpen(secId,rowId,_this2._rows);},
<mask> onRowDidOpen:function onRowDidOpen(_){return(
<mask> _this2.props.onRowDidOpen&&
<mask> _this2.props.onRowDidOpen(secId,rowId,_this2._rows));},
<mask>
<mask> onRowClose:function onRowClose(_){return(
<mask> _this2.props.onRowClose&&
<mask> _this2.props.onRowClose(secId,rowId,_this2._rows));},
<mask>
<mask> onRowDidClose:function onRowDidClose(_){return(
<mask> _this2.props.onRowDidClose&&
<mask> _this2.props.onRowDidClose(secId,rowId,_this2._rows));},
<mask>
<mask> onRowPress:function onRowPress(_){return _this2.onRowPress(""+secId+rowId);},
<mask> closeRow:function closeRow(_){return _this2.closeRow(""+secId+rowId);},
<mask> setScrollEnabled:function setScrollEnabled(enable){return _this2.setScrollEnabled(enable);},
<mask> leftOpenValue:this.props.leftOpenValue,
<mask> rightOpenValue:this.props.rightOpenValue,
<mask> closeOnRowPress:this.props.closeOnRowPress,
<mask> disableLeftSwipe:this.props.disableLeftSwipe,
<mask> disableRightSwipe:this.props.disableRightSwipe,
<mask> stopLeftSwipe:this.props.stopLeftSwipe,
<mask> stopRightSwipe:this.props.stopRightSwipe,
<mask> recalculateHiddenLayout:this.props.recalculateHiddenLayout,
<mask> style:this.props.swipeRowStyle,
<mask> preview:
<mask> (this.props.previewFirstRow||this.props.previewRowIndex)&&
<mask> rowId===previewRowId,
<mask>
<mask> previewDuration:this.props.previewDuration,
<mask> previewOpenValue:this.props.previewOpenValue,
<mask> tension:this.props.tension,
<mask> friction:this.props.friction,
<mask> directionalDistanceChangeThreshold:
<mask> this.props.directionalDistanceChangeThreshold,
<mask>
<mask> swipeToOpenPercent:this.props.swipeToOpenPercent,
<mask> left:
<mask> this.props.renderLeftHiddenRow&&
<mask> this.props.renderLeftHiddenRow(rowData,secId,rowId,this._rows),
<mask>
<mask> right:
<mask> this.props.renderRightHiddenRow&&
<mask> this.props.renderRightHiddenRow(rowData,secId,rowId,this._rows),
<mask>
<mask> body:
<mask> this.props.renderRow&&
<mask> this.props.renderRow(rowData,secId,rowId,this._rows),__source:{fileName:_jsxFileName,lineNumber:120}}));
<mask>
<mask>
<mask>
<mask> }},{key:"render",value:function render()
<mask> {var _this3=this;
<mask> if(this.props.renderLeftHiddenRow||this.props.renderRightHiddenRow){
<mask> return(
<mask> _react2.default.createElement(_reactNative.ListView,_extends({},
<mask> this.props,{
<mask> ref:function ref(_ref){
<mask> _this3.setRefs(_ref);
<mask> _this3._root=_ref;
<mask> },
<mask> enableEmptySections:true,
<mask> onScroll:function onScroll(e){return _this3.onScroll(e);},
<mask> renderRow:function renderRow(rowData,secId,rowId){return(
<mask> _this3.renderRow(rowData,secId,rowId,_this3._rows));},__source:{fileName:_jsxFileName,lineNumber:179}})));
<mask>
<mask>
<mask>
<mask> }else if(this.state.dataSource){
<mask> return(
<mask> _react2.default.createElement(_reactNative.ListView,_extends({},
<mask> this.props,{
<mask> ref:function ref(_ref2){return _this3._root=_ref2;},
<mask> enableEmptySections:true,
<mask> dataSource:this.state.dataSource,
<mask> renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:194}})));
<mask>
<mask>
<mask> }
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this3._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:204}}),
<mask> this.renderChildren()));
<mask>
<mask>
<mask> }}]);return List;}(_react.Component);List.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowBeginSwipe:false,closeOnScroll:true,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,previewFirstRow:false,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};
<mask>
<mask> var StyledList=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.List",{},_mapPropsToStyleNames2.default)(
<mask> List);exports.
<mask>
<mask>
<mask> List=StyledList;
<mask> //# sourceMappingURL=List.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Card=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Card.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Card=function(_Component){_inherits(Card,_Component);function Card(){_classCallCheck(this,Card);return _possibleConstructorReturn(this,(Card.__proto__||Object.getPrototypeOf(Card)).apply(this,arguments));}_createClass(Card,[{key:"render",value:function render()
{var _this2=this;
if(this.props.dataArray&&this.props.renderRow){
var ds=new _reactNative.ListView.DataSource({
rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});
var dataSource=ds.cloneWithRows(this.props.dataArray);
return(
_react2.default.createElement(_reactNative.ListView,_extends({},
this.props,{
enableEmptySections:true,
dataSource:dataSource,
renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:16}})));
}
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:25}}),
this.props.children));
}}]);return Card;}(_react.Component);
Card.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataArray:_propTypes2.default.array,
renderRow:_propTypes2.default.func});
var StyledCard=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Card",{},_mapPropsToStyleNames2.default)(
Card);exports.
Card=StyledCard;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Card=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Card.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Card=function(_Component){_inherits(Card,_Component);function Card(){_classCallCheck(this,Card);return _possibleConstructorReturn(this,(Card.__proto__||Object.getPrototypeOf(Card)).apply(this,arguments));}_createClass(Card,[{key:"render",value:function render(){var _this2=this;if(this.props.dataArray&&this.props.renderRow){var ds=new _reactNative.ListView.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});var dataSource=ds.cloneWithRows(this.props.dataArray);return _react2.default.createElement(_reactNative.ListView,_extends({},this.props,{enableEmptySections:true,dataSource:dataSource,renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:16}}));}return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:25}}),this.props.children);}}]);return Card;}(_react.Component);Card.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataArray:_propTypes2.default.array,renderRow:_propTypes2.default.func});var StyledCard=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Card",{},_mapPropsToStyleNames2.default)(Card);exports.Card=StyledCard; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/List.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
<mask>
<mask>
<mask>
<mask> {var _this2=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask>
<mask> if(
<mask> _reactNative.Platform.OS==="ios"||
<mask> _reactNative.Platform.OS==="web"||
<mask> variables.androidRipple===false||
<mask> !this.props.onPress&&!this.props.onLongPress||
<mask> _reactNative.Platform.Version<=21)
<mask> {
<mask> return(
<mask> _react2.default.createElement(_reactNative.TouchableHighlight,_extends({
<mask> onPress:this.props.onPress,
<mask> onLongPress:this.props.onLongPress,
<mask> ref:function ref(c){return _this2._root=c;},
<mask> underlayColor:variables.listBtnUnderlayColor},
<mask> this.props,{
<mask> style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
<mask>
<mask> _react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
<mask>
<mask>
<mask> }else{
<mask> return(
<mask> _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
<mask>
<mask> _react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
<mask> _react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
<mask>
<mask>
<mask>
<mask> }
<mask> }}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> ListItem.propTypes=_extends({},
<mask> _reactNative.TouchableHighlight.propTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array]),
<mask>
<mask> touchableHighlightStyle:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.array]),
<mask>
<mask> itemDivider:_propTypes2.default.bool,
<mask> button:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.ListItem",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> ListItem);exports.
<mask>
<mask> ListItem=StyledListItem;
<mask> //# sourceMappingURL=ListItem.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
standardStyle:false};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this2._root=c;}},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),
_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?
this.props.selected&&
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.selectedColor?
this.props.selectedColor:
variables.radioColor,
lineHeight:25,
height:20,
fontSize:variables.radioBtnSize},
name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):
_react2.default.createElement(_Ionicons2.default,{
style:{
color:
_reactNative.Platform.OS==="ios"?
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioColor:
this.props.color?
this.props.color:
undefined:
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioSelectedColorAndroid:
this.props.color?
this.props.color:
undefined,
lineHeight:variables.radioBtnLineHeight,
fontSize:variables.radioBtnSize},
name:
_reactNative.Platform.OS==="ios"?
this.props.selected?
"ios-radio-button-on":
"ios-radio-button-off":
this.props.selected?
"md-radio-button-on":
"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}})));
}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};
Radio.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
selected:_propTypes2.default.bool,
standardStyle:_propTypes2.default.bool});
var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(
Radio);exports.
Radio=StyledRadio;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={standardStyle:false};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?this.props.selected&&_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.selectedColor?this.props.selectedColor:variables.radioColor,lineHeight:25,height:20,fontSize:variables.radioBtnSize},name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):_react2.default.createElement(_Ionicons2.default,{style:{color:_reactNative.Platform.OS==="ios"?this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioColor:this.props.color?this.props.color:undefined:this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioSelectedColorAndroid:this.props.color?this.props.color:undefined,lineHeight:variables.radioBtnLineHeight,fontSize:variables.radioBtnSize},name:_reactNative.Platform.OS==="ios"?this.props.selected?"ios-radio-button-on":"ios-radio-button-off":this.props.selected?"md-radio-button-on":"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}}));}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};Radio.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{selected:_propTypes2.default.bool,standardStyle:_propTypes2.default.bool});var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(Radio);exports.Radio=StyledRadio; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/ListItem.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
<mask> this.props.children));
<mask>
<mask>
<mask> }}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
<mask>
<mask>
<mask> PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
<mask> render:function render(){
<mask> return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
<mask> }});
<mask>
<mask>
<mask> PickerNB.propTypes=_extends({},
<mask> _reactNative.Picker.propTypes);
<mask>
<mask>
<mask> var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.PickerNB",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> PickerNB);exports.
<mask>
<mask> PickerNB=StyledPickerNB;
<mask> //# sourceMappingURL=Picker.android.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.Picker.propTypes);
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return FooterTab;}(_react.Component);
FooterTab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.FooterTab",
{},
_mapPropsToStyleNames2.default)(
FooterTab);exports.
FooterTab=StyledFooterTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return FooterTab;}(_react.Component);FooterTab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.FooterTab",{},_mapPropsToStyleNames2.default)(FooterTab);exports.FooterTab=StyledFooterTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return Tab;}(_react.Component);
Tab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.
Tab=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return Tab;}(_react.Component);Tab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.Tab=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?1:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
this.props.children));
}}]);return InputGroup;}(_react.Component);
InputGroup.propTypes=_extends({},
_reactNative.ViewPropTypes,{
regular:_propTypes2.default.bool,
underline:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool,
disabled:_propTypes2.default.bool});
var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.InputGroup",
{},
_mapPropsToStyleNames2.default)(
InputGroup);exports.
InputGroup=StyledInputGroup;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Picker.android.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _reactNative=require("react-native");
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _Text=require("./Text");
<mask> var _List=require("./List");
<mask> var _IconNB=require("./IconNB");
<mask> var _Radio=require("./Radio");
<mask> var _Container=require("./Container");
<mask> var _ListItem=require("./ListItem");
<mask> var _Button=require("./Button");
<mask> var _Header=require("./Header");
<mask> var _Title=require("./Title");
<mask> var _Left=require("./Left");
<mask> var _Right=require("./Right");
<mask> var _Body=require("./Body");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask>
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> PickerNB=function(_Component){_inherits(PickerNB,_Component);
<mask> function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
<mask> props));
<mask> _this.state={
<mask> modalVisible:false,
<mask> currentLabel:_this.getLabel(props),
<mask> dataSource:_this.getChildren(props.children)};return _this;
<mask>
<mask> }_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
<mask>
<mask> nextProps){
<mask> var currentLabel=this.state.currentLabel;
<mask> var nextLabel=this.getLabel(nextProps);
<mask> var currentDS=this.state.dataSource;
<mask> var nextDS=this.getChildren(nextProps.children);
<mask>
<mask> if(currentLabel!==nextLabel){
<mask> this.setState({
<mask> currentLabel:nextLabel});
<mask>
<mask> }
<mask> if(currentDS!==nextDS){
<mask> this.setState({
<mask> dataSource:nextDS});
<mask>
<mask> }
<mask> }},{key:"getInitialStyle",value:function getInitialStyle()
<mask>
<mask> {
<mask> return{
<mask> picker:{},
<mask>
<mask>
<mask> pickerItem:{}};
<mask>
<mask> }},{key:"_setModalVisible",value:function _setModalVisible(
<mask> visible){
<mask> this.setState({modalVisible:visible});
<mask> }},{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask> {
<mask> var defaultProps={
<mask> style:this.getInitialStyle().picker,
<mask> itemStyle:this.getInitialStyle().pickerItem};
<mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"getLabel",value:function getLabel(
<mask>
<mask> props){
<mask> var children=this.getChildren(props.children);
<mask> var item=_lodash2.default.find(
<mask> children,
<mask> function(child){return child.props.value===props.selectedValue;});
<mask>
<mask> return _lodash2.default.get(item,"props.label");
<mask> }},{key:"getSelectedItem",value:function getSelectedItem()
<mask>
<mask> {var _this2=this;
<mask> return _lodash2.default.find(
<mask> this.props.children,
<mask> function(child){return child.props.value===_this2.props.selectedValue;});
<mask>
<mask> }},{key:"getChildren",value:function getChildren(
<mask>
<mask> children){
<mask> if(children&&!Array.isArray(children)){
<mask> return[].concat(children);
<mask> }
<mask> return children;
<mask> }},{key:"renderIcon",value:function renderIcon()
<mask>
<mask> {
<mask> return _react2.default.cloneElement(this.props.iosIcon,{
<mask> style:[
<mask> {
<mask> fontSize:22,
<mask> lineHeight:26},_extends({},
<mask>
<mask> this.props.iosIcon.props.style)]});
<mask>
<mask>
<mask> }},{key:"renderButton",value:function renderButton()
<mask>
<mask> {var _this3=this;
<mask> var onPress=function onPress(){
<mask> if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
<mask> _this3._setModalVisible(true);
<mask> };
<mask> var text=this.state.currentLabel?
<mask> this.state.currentLabel:
<mask> this.props.placeholder;
<mask> if(this.props.renderButton){
<mask> return this.props.renderButton({
<mask> onPress:onPress,
<mask> text:text,
<mask> picker:this,
<mask> selectedItem:this.getSelectedItem()});
<mask>
<mask> }
<mask> return(
<mask> _react2.default.createElement(_Button.Button,{
<mask> style:this.props.style,
<mask> dark:true,
<mask> picker:true,
<mask> transparent:true,
<mask> onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
<mask>
<mask> this.state.currentLabel?
<mask> _react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
<mask> this.state.currentLabel):
<mask>
<mask>
<mask> _react2.default.createElement(_Text.Text,{
<mask> style:[this.props.textStyle,this.props.placeholderStyle],
<mask> note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
<mask>
<mask> this.props.placeholder),
<mask>
<mask>
<mask> this.props.iosIcon===undefined?null:this.renderIcon()));
<mask>
<mask>
<mask> }},{key:"renderHeader",value:function renderHeader()
<mask>
<mask> {var _this4=this;
<mask> return this.props.renderHeader?
<mask> this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
<mask>
<mask> _react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
<mask> _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
<mask> _react2.default.createElement(_Button.Button,{
<mask> style:_extends({
<mask> shadowOffset:null,
<mask> shadowColor:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null,
<mask> marginLeft:3},
<mask> this.props.headerBackButtonStyle),
<mask>
<mask> transparent:true,
<mask> onPress:function onPress(){
<mask> _this4._setModalVisible(false);
<mask> },__source:{fileName:_jsxFileName,lineNumber:154}},
<mask>
<mask> _react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
<mask> this.props.headerBackButtonText||"Back"))),
<mask>
<mask>
<mask>
<mask> _react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
<mask> _react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
<mask> this.props.iosHeader||"Select One")),
<mask>
<mask>
<mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
<mask>
<mask>
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this5=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
<mask> this.renderButton(),
<mask> _react2.default.createElement(_reactNative.Modal,{
<mask> supportedOrientations:this.props.supportedOrientations||null,
<mask> animationType:"slide",
<mask> transparent:false,
<mask> visible:this.state.modalVisible,
<mask> onRequestClose:function onRequestClose(){
<mask> _this5._setModalVisible(false);
<mask> },__source:{fileName:_jsxFileName,lineNumber:187}},
<mask>
<mask> _react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
<mask> this.renderHeader(),
<mask> _react2.default.createElement(_reactNative.FlatList,{
<mask> data:this.state.dataSource,
<mask> keyExtractor:function keyExtractor(item,index){return String(index);},
<mask> renderItem:function renderItem(_ref){var item=_ref.item;return(
<mask> _react2.default.createElement(_ListItem.ListItem,{
<mask> selected:item.props.value===_this5.props.selectedValue,
<mask> button:true,
<mask> style:_this5.props.itemStyle,
<mask> onPress:function onPress(){
<mask> _this5._setModalVisible(false);
<mask> _this5.props.onValueChange(item.props.value);
<mask> _this5.setState({current:item.props.label});
<mask> },__source:{fileName:_jsxFileName,lineNumber:202}},
<mask>
<mask> _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
<mask> _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
<mask> item.props.label)),
<mask>
<mask>
<mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
<mask> item.props.value===_this5.props.selectedValue?
<mask> _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
<mask>
<mask> _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> }}]);return PickerNB;}(_react.Component);
<mask>
<mask>
<mask> PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
<mask> render:function render(){
<mask> return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
<mask> }});
<mask>
<mask>
<mask> PickerNB.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> renderButton:_propTypes2.default.func});
<mask>
<mask>
<mask> var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.PickerNB",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> PickerNB);exports.
<mask>
<mask> PickerNB=StyledPickerNB;
<mask> //# sourceMappingURL=Picker.ios.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Toast=require("./Toast");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ToastContainer=function(_Component){_inherits(ToastContainer,_Component);
function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,
props));
_this.state={
modalVisible:false,
fadeAnim:new _reactNative.Animated.Value(0)};return _this;
}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle()
{
return{
position:"absolute",
opacity:this.state.fadeAnim,
width:"100%",
elevation:9,
paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,
top:this.state.position==="top"?this.getTop():undefined,
bottom:this.state.position==="bottom"?this.getTop():undefined};
}},{key:"getTop",value:function getTop()
{
if(_reactNative.Platform.OS==="ios"){
return 30;
}else{
return 0;
}
}},{key:"getButtonText",value:function getButtonText(
buttonText){
if(buttonText){
if(buttonText.trim().length===0){
return undefined;
}else return buttonText;
}
return undefined;
}},{key:"showToast",value:function showToast(_ref)
{var config=_ref.config;
this.setState({
modalVisible:true,
text:config.text,
buttonText:this.getButtonText(config.buttonText),
type:config.type,
position:config.position?config.position:"bottom",
supportedOrientations:config.supportedOrientations,
style:config.style,
buttonTextStyle:config.buttonTextStyle,
buttonStyle:config.buttonStyle,
textStyle:config.textStyle,
onClose:config.onClose});
if(this.closeTimeout){
clearTimeout(this.closeTimeout);
}
if(config.duration!==0){
var duration=config.duration>0?config.duration:1500;
this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);
}
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:1,
duration:200}).
start();
}},{key:"closeModal",value:function closeModal(
reason){
this.setState({
modalVisible:false});var
onClose=this.state.onClose;
if(onClose&&typeof onClose==="function"){
onClose(reason);
}
}},{key:"closeToast",value:function closeToast(
reason){
clearTimeout(this.closeTimeout);
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:0,
duration:200}).
start(this.closeModal.bind(this,reason));
}},{key:"render",value:function render()
{var _this2=this;
if(this.state.modalVisible){
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},
_react2.default.createElement(_Toast.Toast,{
style:this.state.style,
danger:this.state.type=="danger"?true:false,
success:this.state.type=="success"?true:false,
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),
this.state.buttonText&&
_react2.default.createElement(_Button.Button,{
style:this.state.buttonStyle,
onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},
_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},
this.state.buttonText)))));
}else return null;
}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);
ToastContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ToastContainer",
{},
_mapPropsToStyleNames2.default)(
ToastContainer);exports.
ToastContainer=StyledToastContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Toast=require("./Toast");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.Picker.propTypes);
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.Picker.propTypes);
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _reactNative=require("react-native");
var _Icon=require("./Icon");
var _IconNB=require("./IconNB");
var _Button=require("./Button");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
Fab=function(_Component){_inherits(Fab,_Component);
function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
props));
_this.containerHeight=new _reactNative.Animated.Value(56);
_this.containerWidth=new _reactNative.Animated.Value(0);
_this.buttonScale=new _reactNative.Animated.Value(0);
_this.state={
buttons:undefined,
active:false};return _this;
}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
pos)
{
if(pos==="topLeft"){
return{
top:20,
bottom:undefined,
left:20,
right:undefined};
}else if(pos==="bottomRight"){
return{
top:undefined,
bottom:20,
left:undefined,
right:20};
}else if(pos==="bottomLeft"){
return{
top:undefined,
bottom:20,
left:20,
right:undefined};
}else if(pos==="topRight"){
return{
top:20,
bottom:undefined,
left:undefined,
right:20};
}
}},{key:"fabOtherBtns",value:function fabOtherBtns(
direction,i){
if(direction==="up"){
return{
top:undefined,
bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:5:
i*50+65,
left:8,
right:0};
}else if(direction==="left"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
-(i*50+58),
right:0};
}else if(direction==="down"){
return{
top:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
bottom:0,
left:8,
right:0};
}else if(direction==="right"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
right:0};
}
}},{key:"getInitialStyle",value:function getInitialStyle(
iconStyle){
return{
fab:{
height:56,
width:56,
borderRadius:28,
elevation:4,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.4,
justifyContent:"center",
alignItems:"center",
shadowRadius:2,
position:"absolute",
bottom:0,
backgroundColor:"blue"},
container:{
position:"absolute",
top:this.props.position?
this.fabTopValue(this.props.position).top:
undefined,
bottom:this.props.position?
this.fabTopValue(this.props.position).bottom:
20,
right:this.props.position?
this.fabTopValue(this.props.position).right:
20,
left:this.props.position?
this.fabTopValue(this.props.position).left:
undefined,
width:56,
height:this.containerHeight,
flexDirection:this.props.direction?
this.props.direction==="left"||this.props.direction==="right"?
"row":
"column":
"column",
alignItems:"center"},
iconStyle:_extends({
color:"#fff",
fontSize:24,
lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
iconStyle),
buttonStyle:{
position:"absolute",
height:40,
width:40,
left:7,
borderRadius:20,
transform:this.state.active?
[{scale:new _reactNative.Animated.Value(1)}]:
[{scale:this.buttonScale}],
marginBottom:10,
backgroundColor:"blue"}};
}},{key:"getContainerStyle",value:function getContainerStyle()
{
return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
}},{key:"prepareFabProps",value:function prepareFabProps()
{
var defaultProps={
style:this.getInitialStyle().fab};
var incomingProps=_lodash2.default.clone(this.props);
delete incomingProps.onPress;
return(0,_computeProps2.default)(incomingProps,defaultProps);
}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
child,i){
var type={
top:this.props.direction?
this.fabOtherBtns(this.props.direction,i).top:
undefined,
left:this.props.direction?
this.fabOtherBtns(this.props.direction,i).left:
8,
right:this.props.direction?
this.fabOtherBtns(this.props.direction,i).right:
0,
bottom:this.props.direction?
this.fabOtherBtns(this.props.direction,i).bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
i*50+50};
return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
}},{key:"prepareButtonProps",value:function prepareButtonProps(
child){
var inp=_lodash2.default.clone(child.props);
delete inp.style;
var defaultProps={};
return(0,_computeProps2.default)(inp,defaultProps);
}},{key:"componentDidMount",value:function componentDidMount()
{var _this2=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
this.setState({
buttons:icon.length});
this.activeTimer=setTimeout(function(){
_this2.setState({
active:_this2.props.active});
},0);
}},{key:"componentWillUnmount",value:function componentWillUnmount()
{
if(this.activeTimer){
clearTimeout(this.activeTimer);
}
}},{key:"renderFab",value:function renderFab()
{
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
return _react2.default.cloneElement(childrenArray[0],{
style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
}},{key:"renderButtons",value:function renderButtons()
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var newChildren=[];
{
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:279}}),
child.props.children));
});
}
return newChildren;
}},{key:"upAnimate",value:function upAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"leftAnimate",value:function leftAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"rightAnimate",value:function rightAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"downAnimate",value:function downAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"_animate",value:function _animate()
{var _props=
this.props,direction=_props.direction,position=_props.position;
if(this.props.direction){
if(this.props.direction==="up"){
this.upAnimate();
}else if(this.props.direction==="left"){
this.leftAnimate();
}else if(this.props.direction==="right"){
this.rightAnimate();
}else if(this.props.direction==="down"){
this.downAnimate();
}
}else{
this.upAnimate();
}
}},{key:"fabOnPress",value:function fabOnPress()
{var _this4=this;
if(this.props.onPress){
this.props.onPress();
this._animate();
this.activeTimer=setTimeout(function(){
_this4.setState({
active:_this4.props.active});
},100);
}
}},{key:"render",value:function render()
{var _this5=this;var
active=this.props.active;
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
this.renderButtons(),
_reactNative.Platform.OS==="ios"||
_platform2.default.androidRipple===false||
_reactNative.Platform["Version"]<=21?
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
this.renderFab()):
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
this.renderFab()))));
}}]);return Fab;}(_react.Component);
var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
Fab=StyledFab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Picker.ios.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
<mask> this.props.children));
<mask>
<mask>
<mask> }}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
<mask>
<mask>
<mask> PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
<mask> render:function render(){
<mask> return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
<mask> }});
<mask>
<mask>
<mask> PickerNB.propTypes=_extends({},
<mask> _reactNative.Picker.propTypes);
<mask>
<mask>
<mask> var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.PickerNB",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> PickerNB);exports.
<mask>
<mask> PickerNB=StyledPickerNB;
<mask> //# sourceMappingURL=Picker.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.Picker.propTypes);
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.android.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return FooterTab;}(_react.Component);
FooterTab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.FooterTab",
{},
_mapPropsToStyleNames2.default)(
FooterTab);exports.
FooterTab=StyledFooterTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return FooterTab;}(_react.Component);FooterTab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.FooterTab",{},_mapPropsToStyleNames2.default)(FooterTab);exports.FooterTab=StyledFooterTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return Tab;}(_react.Component);
Tab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.
Tab=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return Tab;}(_react.Component);Tab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.Tab=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?1:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
this.props.children));
}}]);return InputGroup;}(_react.Component);
InputGroup.propTypes=_extends({},
_reactNative.ViewPropTypes,{
regular:_propTypes2.default.bool,
underline:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool,
disabled:_propTypes2.default.bool});
var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.InputGroup",
{},
_mapPropsToStyleNames2.default)(
InputGroup);exports.
InputGroup=StyledInputGroup;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Picker.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Item;}(_react.Component);Item.propTypes=_extends({},_reactNative.Picker.Item.propTypes);var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Item;}(_react.Component);
<mask>
<mask>
<mask> Item.propTypes=_extends({},
<mask> _reactNative.Picker.Item.propTypes);
<mask>
<mask>
<mask> var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.
<mask>
<mask> Item=StyledItem;
<mask> //# sourceMappingURL=PickerItem.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Switch;}(_react.Component);
Switch.propTypes=_extends({},
Switch.propTypes);
var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.
Switch=StyledSwitch;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Switch;}(_react.Component);Switch.propTypes=_extends({},Switch.propTypes);var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.Switch=StyledSwitch; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Thumbnail;}(_react.Component);
Thumbnail.propTypes=_extends({},
_reactNative.Image.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
square:_propTypes2.default.bool,
circular:_propTypes2.default.bool,
size:_propTypes2.default.number});
var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.
Thumbnail=StyledThumbnail;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Thumbnail;}(_react.Component);Thumbnail.propTypes=_extends({},_reactNative.Image.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),square:_propTypes2.default.bool,circular:_propTypes2.default.bool,size:_propTypes2.default.number});var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.Thumbnail=StyledThumbnail; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Body;}(_react.Component);
Body.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(
Body);exports.
Body=StyledBody;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Body;}(_react.Component);Body.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(Body);exports.Body=StyledBody; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Left;}(_react.Component);
Left.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
Left);exports.
Left=StyledLeft;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/PickerItem.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={standardStyle:false};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?this.props.selected&&_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.selectedColor?this.props.selectedColor:variables.radioColor,lineHeight:25,height:20,fontSize:variables.radioBtnSize},name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):_react2.default.createElement(_Ionicons2.default,{style:{color:_reactNative.Platform.OS==="ios"?this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioColor:this.props.color?this.props.color:undefined:this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioSelectedColorAndroid:this.props.color?this.props.color:undefined,lineHeight:variables.radioBtnLineHeight,fontSize:variables.radioBtnSize},name:_reactNative.Platform.OS==="ios"?this.props.selected?"ios-radio-button-on":"ios-radio-button-off":this.props.selected?"md-radio-button-on":"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}}));}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};Radio.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{selected:_propTypes2.default.bool,standardStyle:_propTypes2.default.bool});var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(Radio);exports.Radio=StyledRadio; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask>
<mask>
<mask> {
<mask> var defaultProps={
<mask> standardStyle:false};
<mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"render",value:function render()
<mask>
<mask> {var _this2=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask>
<mask> return(
<mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),
<mask>
<mask> _reactNative.Platform.OS==="ios"&&!this.props.standardStyle?
<mask> this.props.selected&&
<mask> _react2.default.createElement(_Ionicons2.default,{
<mask> style:{
<mask> color:this.props.selectedColor?
<mask> this.props.selectedColor:
<mask> variables.radioColor,
<mask> lineHeight:25,
<mask> height:20,
<mask> fontSize:variables.radioBtnSize},
<mask>
<mask> name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):
<mask>
<mask>
<mask>
<mask> _react2.default.createElement(_Ionicons2.default,{
<mask> style:{
<mask> color:
<mask> _reactNative.Platform.OS==="ios"?
<mask> this.props.selected?
<mask> this.props.selectedColor?
<mask> this.props.selectedColor:
<mask> variables.radioColor:
<mask> this.props.color?
<mask> this.props.color:
<mask> undefined:
<mask> this.props.selected?
<mask> this.props.selectedColor?
<mask> this.props.selectedColor:
<mask> variables.radioSelectedColorAndroid:
<mask> this.props.color?
<mask> this.props.color:
<mask> undefined,
<mask> lineHeight:variables.radioBtnLineHeight,
<mask> fontSize:variables.radioBtnSize},
<mask>
<mask> name:
<mask> _reactNative.Platform.OS==="ios"?
<mask> this.props.selected?
<mask> "ios-radio-button-on":
<mask> "ios-radio-button-off":
<mask> this.props.selected?
<mask> "md-radio-button-on":
<mask> "md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}})));
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> }}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> Radio.propTypes=_extends({},
<mask> _reactNative.TouchableOpacity.propTypes,{
<mask> selected:_propTypes2.default.bool,
<mask> standardStyle:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(
<mask> Radio);exports.
<mask>
<mask>
<mask> Radio=StyledRadio;
<mask> //# sourceMappingURL=Radio.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Spinner=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Spinner.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Spinner=function(_Component){_inherits(Spinner,_Component);function Spinner(){_classCallCheck(this,Spinner);return _possibleConstructorReturn(this,(Spinner.__proto__||Object.getPrototypeOf(Spinner)).apply(this,arguments));}_createClass(Spinner,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
return(
_react2.default.createElement(_reactNative.ActivityIndicator,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
color:
this.props.color?
this.props.color:
this.props.inverse?variables.inverseSpinnerColor:variables.defaultSpinnerColor,
size:this.props.size?this.props.size:"large",__source:{fileName:_jsxFileName,lineNumber:16}})));
}}]);return Spinner;}(_react.Component);Spinner.contextTypes={theme:_propTypes2.default.object};
Spinner.propTypes=_extends({},
_reactNative.ActivityIndicator.propTypes,{
color:_propTypes2.default.string,
inverse:_propTypes2.default.bool});
var StyledSpinner=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Spinner",{},_mapPropsToStyleNames2.default)(Spinner);exports.
Spinner=StyledSpinner;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Spinner=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Spinner.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Spinner=function(_Component){_inherits(Spinner,_Component);function Spinner(){_classCallCheck(this,Spinner);return _possibleConstructorReturn(this,(Spinner.__proto__||Object.getPrototypeOf(Spinner)).apply(this,arguments));}_createClass(Spinner,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _react2.default.createElement(_reactNative.ActivityIndicator,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{color:this.props.color?this.props.color:this.props.inverse?variables.inverseSpinnerColor:variables.defaultSpinnerColor,size:this.props.size?this.props.size:"large",__source:{fileName:_jsxFileName,lineNumber:16}}));}}]);return Spinner;}(_react.Component);Spinner.contextTypes={theme:_propTypes2.default.object};Spinner.propTypes=_extends({},_reactNative.ActivityIndicator.propTypes,{color:_propTypes2.default.string,inverse:_propTypes2.default.bool});var StyledSpinner=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Spinner",{},_mapPropsToStyleNames2.default)(Spinner);exports.Spinner=StyledSpinner; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
{
return{
textarea:{
height:this.props.rowSpan?this.props.rowSpan*25:60}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getStyle().textarea};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
}},
this.prepareRootProps(),{
multiline:true,
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
}}]);return Textarea;}(_react.Component);
Textarea.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
rowSpan:_propTypes2.default.number,
bordered:_propTypes2.default.bool,
underline:_propTypes2.default.bool});
var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
Textarea=StyledTextarea;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var GRAVATAR_URI="https://www.gravatar.com/avatar/";var
Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
gravatar:{
borderRadius:this.props.size?this.props.size/2:15,
width:this.props.size?this.props.size:30,
height:this.props.size?this.props.size:30,
resizeMode:this.props.contain?"contain":undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var gravatarStyle={};
if(this.props.circular){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=this.props.size/2;
}else if(this.props.square){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=0;
}
var defaultProps={
style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var props=this.prepareRootProps();
var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.
height;
return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));
}}]);return Gravatar;}(_NativeBaseComponent3.default);
Gravatar.propTypes=_extends({},
_reactNative.Image.propTypes,{
email:PropTypes.string.isRequired,
style:PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array]),
size:PropTypes.number,
circular:PropTypes.bool,
square:PropTypes.bool});
var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Gravatar",
{},
_mapPropsToStyleNames2.default)(
Gravatar);exports.
Gravatar=StyledGravatar;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var GRAVATAR_URI="https://www.gravatar.com/avatar/";var Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle(){return{gravatar:{borderRadius:this.props.size?this.props.size/2:15,width:this.props.size?this.props.size:30,height:this.props.size?this.props.size:30,resizeMode:this.props.contain?"contain":undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var gravatarStyle={};if(this.props.circular){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=this.props.size/2;}else if(this.props.square){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=0;}var defaultProps={style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var props=this.prepareRootProps();var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.height;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));}}]);return Gravatar;}(_NativeBaseComponent3.default);Gravatar.propTypes=_extends({},_reactNative.Image.propTypes,{email:PropTypes.string.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.number,PropTypes.array]),size:PropTypes.number,circular:PropTypes.bool,square:PropTypes.bool});var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Gravatar",{},_mapPropsToStyleNames2.default)(Gravatar);exports.Gravatar=StyledGravatar; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Radio.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Right;}(_react.Component);Right.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(Right);exports.Right=StyledRight; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Right.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Right=function(_Component){_inherits(Right,_Component);function Right(){_classCallCheck(this,Right);return _possibleConstructorReturn(this,(Right.__proto__||Object.getPrototypeOf(Right)).apply(this,arguments));}_createClass(Right,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Right;}(_react.Component);
<mask>
<mask>
<mask> Right.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledRight=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Right",{},_mapPropsToStyleNames2.default)(
<mask> Right);exports.
<mask>
<mask>
<mask> Right=StyledRight;
<mask> //# sourceMappingURL=Right.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Left;}(_react.Component);
Left.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
Left);exports.
Left=StyledLeft;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Body;}(_react.Component);
Body.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(
Body);exports.
Body=StyledBody;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Body;}(_react.Component);Body.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(Body);exports.Body=StyledBody; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Right.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Root=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Root.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _ToastContainer=require("./ToastContainer");var _Actionsheet=require("./Actionsheet");var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Root=function(_Component){_inherits(Root,_Component);function Root(){_classCallCheck(this,Root);return _possibleConstructorReturn(this,(Root.__proto__||Object.getPrototypeOf(Root)).apply(this,arguments));}_createClass(Root,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:13}}),this.props.children,_react2.default.createElement(_ToastContainer.ToastContainer,{ref:function ref(c){if(c)_ToastContainer.ToastContainer.toastInstance=c;},__source:{fileName:_jsxFileName,lineNumber:15}}),_react2.default.createElement(_Actionsheet.ActionSheetContainer,{ref:function ref(c){if(c)_Actionsheet.ActionSheetContainer.actionsheetInstance=c;},__source:{fileName:_jsxFileName,lineNumber:20}}));}}]);return Root;}(_react.Component);Root.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledRoot=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Root",{},_mapPropsToStyleNames2.default)(Root);exports.Root=StyledRoot; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Root=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Root.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _reactNative=require("react-native");
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _ToastContainer=require("./ToastContainer");
<mask> var _Actionsheet=require("./Actionsheet");
<mask> var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Root=function(_Component){_inherits(Root,_Component);function Root(){_classCallCheck(this,Root);return _possibleConstructorReturn(this,(Root.__proto__||Object.getPrototypeOf(Root)).apply(this,arguments));}_createClass(Root,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:13}}),
<mask> this.props.children,
<mask> _react2.default.createElement(_ToastContainer.ToastContainer,{
<mask> ref:function ref(c){
<mask> if(c)_ToastContainer.ToastContainer.toastInstance=c;
<mask> },__source:{fileName:_jsxFileName,lineNumber:15}}),
<mask>
<mask> _react2.default.createElement(_Actionsheet.ActionSheetContainer,{
<mask> ref:function ref(c){
<mask> if(c)
<mask> _Actionsheet.ActionSheetContainer.actionsheetInstance=c;
<mask> },__source:{fileName:_jsxFileName,lineNumber:20}})));
<mask>
<mask>
<mask>
<mask> }}]);return Root;}(_react.Component);
<mask>
<mask>
<mask> Root.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledRoot=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Root",{},_mapPropsToStyleNames2.default)(
<mask> Root);exports.
<mask>
<mask>
<mask> Root=StyledRoot;
<mask> //# sourceMappingURL=Root.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Container=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Container.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _utils=require("../utils");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _ToastContainer=require("./ToastContainer");
var _Actionsheet=require("./Actionsheet");
var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Container=function(_Component){_inherits(Container,_Component);function Container(){_classCallCheck(this,Container);return _possibleConstructorReturn(this,(Container.__proto__||Object.getPrototypeOf(Container)).apply(this,arguments));}_createClass(Container,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:15}}),
this.props.children));
}}]);return Container;}(_react.Component);
Container.propTypes=_extends({},
_utils.ViewPropTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Container",{},_mapPropsToStyleNames2.default)(Container);exports.
Container=StyledContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Container=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Container.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _utils=require("../utils");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _ToastContainer=require("./ToastContainer");var _Actionsheet=require("./Actionsheet");var _Text=require("./Text");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Container=function(_Component){_inherits(Container,_Component);function Container(){_classCallCheck(this,Container);return _possibleConstructorReturn(this,(Container.__proto__||Object.getPrototypeOf(Container)).apply(this,arguments));}_createClass(Container,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:15}}),this.props.children);}}]);return Container;}(_react.Component);Container.propTypes=_extends({},_utils.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Container",{},_mapPropsToStyleNames2.default)(Container);exports.Container=StyledContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
},
editable:this.props.disabled?false:true,
underlineColorAndroid:"rgba(0,0,0,0)",
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},
this.props,{__source:{fileName:_jsxFileName,lineNumber:15}})));
}}]);return Input;}(_NativeBaseComponent3.default);
Input.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.
Input=StyledInput;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;},editable:this.props.disabled?false:true,underlineColorAndroid:"rgba(0,0,0,0)",placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},this.props,{__source:{fileName:_jsxFileName,lineNumber:15}}));}}]);return Input;}(_NativeBaseComponent3.default);Input.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.Input=StyledInput; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),
this.props.children));
}}]);return Badge;}(_react.Component);
Badge.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(
Badge);exports.
Badge=StyledBadge;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),this.props.children);}}]);return Badge;}(_react.Component);Badge.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(Badge);exports.Badge=StyledBadge; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return Tab;}(_react.Component);
Tab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.
Tab=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return Tab;}(_react.Component);Tab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.Tab=StyledTab; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Root.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return Segment;}(_react.Component);
<mask>
<mask>
<mask> Segment.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.Segment",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> Segment);exports.
<mask> Segment=StyledSegment;
<mask> //# sourceMappingURL=Segment.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabContainer;}(_react.Component);
TabContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabContainer",
{},
_mapPropsToStyleNames2.default)(
TabContainer);exports.
TabContainer=StyledTabContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Segment.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Separator;}(_react.Component);
<mask>
<mask>
<mask> Separator.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.Separator",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> Separator);exports.
<mask>
<mask> Separator=StyledSeparator;
<mask> //# sourceMappingURL=Separator.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabContainer;}(_react.Component);
TabContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabContainer",
{},
_mapPropsToStyleNames2.default)(
TabContainer);exports.
TabContainer=StyledTabContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Separator.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Spinner=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Spinner.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Spinner=function(_Component){_inherits(Spinner,_Component);function Spinner(){_classCallCheck(this,Spinner);return _possibleConstructorReturn(this,(Spinner.__proto__||Object.getPrototypeOf(Spinner)).apply(this,arguments));}_createClass(Spinner,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _react2.default.createElement(_reactNative.ActivityIndicator,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{color:this.props.color?this.props.color:this.props.inverse?variables.inverseSpinnerColor:variables.defaultSpinnerColor,size:this.props.size?this.props.size:"large",__source:{fileName:_jsxFileName,lineNumber:16}}));}}]);return Spinner;}(_react.Component);Spinner.contextTypes={theme:_propTypes2.default.object};Spinner.propTypes=_extends({},_reactNative.ActivityIndicator.propTypes,{color:_propTypes2.default.string,inverse:_propTypes2.default.bool});var StyledSpinner=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Spinner",{},_mapPropsToStyleNames2.default)(Spinner);exports.Spinner=StyledSpinner; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Spinner=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Spinner.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Spinner=function(_Component){_inherits(Spinner,_Component);function Spinner(){_classCallCheck(this,Spinner);return _possibleConstructorReturn(this,(Spinner.__proto__||Object.getPrototypeOf(Spinner)).apply(this,arguments));}_createClass(Spinner,[{key:"render",value:function render()
<mask>
<mask>
<mask>
<mask> {var _this2=this;
<mask> var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
<mask> return(
<mask> _react2.default.createElement(_reactNative.ActivityIndicator,_extends({
<mask> ref:function ref(c){return _this2._root=c;}},
<mask> this.props,{
<mask> color:
<mask> this.props.color?
<mask> this.props.color:
<mask> this.props.inverse?variables.inverseSpinnerColor:variables.defaultSpinnerColor,
<mask>
<mask> size:this.props.size?this.props.size:"large",__source:{fileName:_jsxFileName,lineNumber:16}})));
<mask>
<mask>
<mask> }}]);return Spinner;}(_react.Component);Spinner.contextTypes={theme:_propTypes2.default.object};
<mask>
<mask>
<mask> Spinner.propTypes=_extends({},
<mask> _reactNative.ActivityIndicator.propTypes,{
<mask> color:_propTypes2.default.string,
<mask> inverse:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledSpinner=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Spinner",{},_mapPropsToStyleNames2.default)(Spinner);exports.
<mask>
<mask> Spinner=StyledSpinner;
<mask> //# sourceMappingURL=Spinner.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
standardStyle:false};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this2._root=c;}},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),
_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?
this.props.selected&&
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.selectedColor?
this.props.selectedColor:
variables.radioColor,
lineHeight:25,
height:20,
fontSize:variables.radioBtnSize},
name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):
_react2.default.createElement(_Ionicons2.default,{
style:{
color:
_reactNative.Platform.OS==="ios"?
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioColor:
this.props.color?
this.props.color:
undefined:
this.props.selected?
this.props.selectedColor?
this.props.selectedColor:
variables.radioSelectedColorAndroid:
this.props.color?
this.props.color:
undefined,
lineHeight:variables.radioBtnLineHeight,
fontSize:variables.radioBtnSize},
name:
_reactNative.Platform.OS==="ios"?
this.props.selected?
"ios-radio-button-on":
"ios-radio-button-off":
this.props.selected?
"md-radio-button-on":
"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}})));
}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};
Radio.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
selected:_propTypes2.default.bool,
standardStyle:_propTypes2.default.bool});
var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(
Radio);exports.
Radio=StyledRadio;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Radio.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Radio=function(_Component){_inherits(Radio,_Component);function Radio(){_classCallCheck(this,Radio);return _possibleConstructorReturn(this,(Radio.__proto__||Object.getPrototypeOf(Radio)).apply(this,arguments));}_createClass(Radio,[{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={standardStyle:false};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:30}}),_reactNative.Platform.OS==="ios"&&!this.props.standardStyle?this.props.selected&&_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.selectedColor?this.props.selectedColor:variables.radioColor,lineHeight:25,height:20,fontSize:variables.radioBtnSize},name:"ios-checkmark",__source:{fileName:_jsxFileName,lineNumber:36}}):_react2.default.createElement(_Ionicons2.default,{style:{color:_reactNative.Platform.OS==="ios"?this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioColor:this.props.color?this.props.color:undefined:this.props.selected?this.props.selectedColor?this.props.selectedColor:variables.radioSelectedColorAndroid:this.props.color?this.props.color:undefined,lineHeight:variables.radioBtnLineHeight,fontSize:variables.radioBtnSize},name:_reactNative.Platform.OS==="ios"?this.props.selected?"ios-radio-button-on":"ios-radio-button-off":this.props.selected?"md-radio-button-on":"md-radio-button-off",__source:{fileName:_jsxFileName,lineNumber:49}}));}}]);return Radio;}(_react.Component);Radio.contextTypes={theme:_propTypes2.default.object};Radio.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{selected:_propTypes2.default.bool,standardStyle:_propTypes2.default.bool});var StyledRadio=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Radio",{},_mapPropsToStyleNames2.default)(Radio);exports.Radio=StyledRadio; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
!this.props.onPress&&!this.props.onLongPress||
_reactNative.Platform.Version<=21)
{
return(
_react2.default.createElement(_reactNative.TouchableHighlight,_extends({
onPress:this.props.onPress,
onLongPress:this.props.onLongPress,
ref:function ref(c){return _this2._root=c;},
underlayColor:variables.listBtnUnderlayColor},
this.props,{
style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children)));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},
_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children))));
}
}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};
ListItem.propTypes=_extends({},
_reactNative.TouchableHighlight.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
touchableHighlightStyle:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.array]),
itemDivider:_propTypes2.default.bool,
button:_propTypes2.default.bool});
var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ListItem",
{},
_mapPropsToStyleNames2.default)(
ListItem);exports.
ListItem=StyledListItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ListItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ListItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||!this.props.onPress&&!this.props.onLongPress||_reactNative.Platform.Version<=21){return _react2.default.createElement(_reactNative.TouchableHighlight,_extends({onPress:this.props.onPress,onLongPress:this.props.onLongPress,ref:function ref(c){return _this2._root=c;},underlayColor:variables.listBtnUnderlayColor},this.props,{style:this.props.touchableHighlightStyle,__source:{fileName:_jsxFileName,lineNumber:31}}),_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:39}}),this.props.children));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:44}}),_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17},__source:{fileName:_jsxFileName,lineNumber:48}},_react2.default.createElement(_reactNative.View,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:49}}),this.props.children)));}}}]);return ListItem;}(_react.Component);ListItem.contextTypes={theme:_propTypes2.default.object};ListItem.propTypes=_extends({},_reactNative.TouchableHighlight.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),touchableHighlightStyle:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.array]),itemDivider:_propTypes2.default.bool,button:_propTypes2.default.bool});var StyledListItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ListItem",{},_mapPropsToStyleNames2.default)(ListItem);exports.ListItem=StyledListItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),
this.props.children));
}}]);return Badge;}(_react.Component);
Badge.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(
Badge);exports.
Badge=StyledBadge;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),this.props.children);}}]);return Badge;}(_react.Component);Badge.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(Badge);exports.Badge=StyledBadge; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Spinner.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Subtitle;}(_react.Component);Subtitle.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.Subtitle=StyledSubtitle; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return Subtitle;}(_react.Component);
<mask>
<mask>
<mask> Subtitle.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.
<mask> Subtitle=StyledSubtitle;
<mask> //# sourceMappingURL=Subtitle.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Title;}(_react.Component);
Title.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.
Title=StyledTitle;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Title;}(_react.Component);Title.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.Title=StyledTitle; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
{var _this2=this;var _props=
this.props,uppercase=_props.uppercase,children=_props.children;
var text=void 0;
if(uppercase){
text=_react2.default.Children.map(children,function(child){
if(_lodash2.default.isString(child)){
return _lodash2.default.toUpper(child);
}else{
return child;
}
});
}else{
text=children;
}
return(
_react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
text));
}}]);return Text;}(_react.Component);
Text.propTypes=_extends({},
_reactNative.Text.propTypes,{
uppercase:_propTypes2.default.bool,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
Text.defaultProps={
uppercase:false};
var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
Text=StyledText;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Subtitle.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.SwipeRow=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/SwipeRow.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PREVIEW_OPEN_DELAY=700;var PREVIEW_CLOSE_DELAY=300;var SwipeRow=function(_Component){_inherits(SwipeRow,_Component);function SwipeRow(props){_classCallCheck(this,SwipeRow);var _this=_possibleConstructorReturn(this,(SwipeRow.__proto__||Object.getPrototypeOf(SwipeRow)).call(this,props));_this.horizontalSwipeGestureBegan=false;_this.swipeInitialX=null;_this.parentScrollEnabled=true;_this.ranPreview=false;_this.state={dimensionsSet:false,hiddenHeight:0,hiddenWidth:0};_this._translateX=new _reactNative.Animated.Value(0);return _this;}_createClass(SwipeRow,[{key:"componentWillMount",value:function componentWillMount(){var _this2=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetPanResponder:function onMoveShouldSetPanResponder(e,gs){return _this2.handleOnMoveShouldSetPanResponder(e,gs);},onPanResponderMove:function onPanResponderMove(e,gs){return _this2.handlePanResponderMove(e,gs);},onPanResponderRelease:function onPanResponderRelease(e,gs){return _this2.handlePanResponderEnd(e,gs);},onPanResponderTerminate:function onPanResponderTerminate(e,gs){return _this2.handlePanResponderEnd(e,gs);},onShouldBlockNativeResponder:function onShouldBlockNativeResponder(_){return false;}});}},{key:"getPreviewAnimation",value:function getPreviewAnimation(toValue,delay){return _reactNative.Animated.timing(this._translateX,{duration:this.props.previewDuration,toValue:toValue,delay:delay});}},{key:"onContentLayout",value:function onContentLayout(e){var _this3=this;this.setState({dimensionsSet:!this.props.recalculateHiddenLayout,hiddenHeight:e.nativeEvent.layout.height,hiddenWidth:e.nativeEvent.layout.width});if(this.props.preview&&!this.ranPreview){this.ranPreview=true;var previewOpenValue=this.props.previewOpenValue||this.props.rightOpenValue*0.5;this.getPreviewAnimation(previewOpenValue,PREVIEW_OPEN_DELAY).start(function(_){_this3.getPreviewAnimation(0,PREVIEW_CLOSE_DELAY).start();});}}},{key:"handleOnMoveShouldSetPanResponder",value:function handleOnMoveShouldSetPanResponder(e,gs){var dx=gs.dx;return Math.abs(dx)>this.props.directionalDistanceChangeThreshold;}},{key:"handlePanResponderMove",value:function handlePanResponderMove(e,gestureState){var dx=gestureState.dx,dy=gestureState.dy;var absDx=Math.abs(dx);var absDy=Math.abs(dy);if(absDx>this.props.directionalDistanceChangeThreshold||absDy>this.props.directionalDistanceChangeThreshold){if(absDy>absDx&&!this.horizontalSwipeGestureBegan){return;}if(this.parentScrollEnabled){this.parentScrollEnabled=false;this.props.setScrollEnabled&&this.props.setScrollEnabled(false);}if(this.swipeInitialX===null){this.swipeInitialX=this._translateX._value;}if(!this.horizontalSwipeGestureBegan){this.horizontalSwipeGestureBegan=true;this.props.swipeGestureBegan&&this.props.swipeGestureBegan();}var newDX=this.swipeInitialX+dx;if(this.props.disableLeftSwipe&&newDX<0){newDX=0;}if(this.props.disableRightSwipe&&newDX>0){newDX=0;}if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){newDX=this.props.stopLeftSwipe;}if(this.props.stopRightSwipe&&newDX<this.props.stopRightSwipe){newDX=this.props.stopRightSwipe;}this._translateX.setValue(newDX);}}},{key:"handlePanResponderEnd",value:function handlePanResponderEnd(e,gestureState){if(!this.parentScrollEnabled){this.parentScrollEnabled=true;this.props.setScrollEnabled&&this.props.setScrollEnabled(true);}var toValue=0;if(this._translateX._value>=0){if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){toValue=this.props.leftOpenValue;}}else{if(this._translateX._value<this.props.rightOpenValue*(this.props.swipeToOpenPercent/100)){toValue=this.props.rightOpenValue;}}this.manuallySwipeRow(toValue);}},{key:"closeRow",value:function closeRow(){this.manuallySwipeRow(0);}},{key:"manuallySwipeRow",value:function manuallySwipeRow(toValue){var _this4=this;_reactNative.Animated.spring(this._translateX,{toValue:toValue,friction:this.props.friction,tension:this.props.tension}).start(function(_){if(toValue===0){_this4.props.onRowDidClose&&_this4.props.onRowDidClose();}else{_this4.props.onRowDidOpen&&_this4.props.onRowDidOpen();}});if(toValue===0){this.props.onRowClose&&this.props.onRowClose();}else{this.props.onRowOpen&&this.props.onRowOpen(toValue);}this.swipeInitialX=null;this.horizontalSwipeGestureBegan=false;}},{key:"renderMainContent",value:function renderMainContent(){var _this5=this;if(this.state.dimensionsSet){return _react2.default.createElement(_reactNative.Animated.View,_extends({},this._panResponder.panHandlers,{style:{transform:[{translateX:this._translateX}],zIndex:2},__source:{fileName:_jsxFileName,lineNumber:191}}),!this.props.list?_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:199}},this.props.body):_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:202}},this.props.body));}else{return _react2.default.createElement(_reactNative.Animated.View,_extends({},this._panResponder.panHandlers,{onLayout:function onLayout(e){return _this5.onContentLayout(e);},style:{transform:[{translateX:this._translateX}],zIndex:2},__source:{fileName:_jsxFileName,lineNumber:209}}),!this.props.list?_react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:218}},this.props.body):_react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:221}},this.props.body));}}},{key:"render",value:function render(){return _react2.default.createElement(_reactNative.View,{style:this.props.style?this.props.style:undefined,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(_reactNative.View,{style:[styles.hidden,{height:this.state.hiddenHeight,flex:1,flexDirection:"row",justifyContent:"space-between"}],__source:{fileName:_jsxFileName,lineNumber:232}},_react2.default.createElement(_Left.Left,{style:{width:this.props.leftOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:243}},this.props.left),_react2.default.createElement(_Body.Body,{style:{flex:0},__source:{fileName:_jsxFileName,lineNumber:246}}),_react2.default.createElement(_Right.Right,{style:{width:-this.props.rightOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:247}},this.props.right)),this.renderMainContent());}}]);return SwipeRow;}(_react.Component);SwipeRow.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,preview:false,previewDuration:300,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};var styles={container:{},hidden:{bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0}};var StyledSwipeRow=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.SwipeRow",{},_mapPropsToStyleNames2.default)(SwipeRow);exports.SwipeRow=StyledSwipeRow; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.SwipeRow=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/SwipeRow.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _Text=require("./Text");
<mask> var _Left=require("./Left");
<mask> var _Right=require("./Right");
<mask> var _Body=require("./Body");
<mask> var _ListItem=require("./ListItem");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
<mask>
<mask> var PREVIEW_OPEN_DELAY=700;
<mask> var PREVIEW_CLOSE_DELAY=300;var
<mask>
<mask> SwipeRow=function(_Component){_inherits(SwipeRow,_Component);
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> function SwipeRow(props){_classCallCheck(this,SwipeRow);var _this=_possibleConstructorReturn(this,(SwipeRow.__proto__||Object.getPrototypeOf(SwipeRow)).call(this,
<mask> props));
<mask> _this.horizontalSwipeGestureBegan=false;
<mask> _this.swipeInitialX=null;
<mask> _this.parentScrollEnabled=true;
<mask> _this.ranPreview=false;
<mask> _this.state={
<mask> dimensionsSet:false,
<mask> hiddenHeight:0,
<mask> hiddenWidth:0};
<mask>
<mask> _this._translateX=new _reactNative.Animated.Value(0);return _this;
<mask> }_createClass(SwipeRow,[{key:"componentWillMount",value:function componentWillMount()
<mask>
<mask> {var _this2=this;
<mask> this._panResponder=_reactNative.PanResponder.create({
<mask> onMoveShouldSetPanResponder:function onMoveShouldSetPanResponder(e,gs){return _this2.handleOnMoveShouldSetPanResponder(e,gs);},
<mask> onPanResponderMove:function onPanResponderMove(e,gs){return _this2.handlePanResponderMove(e,gs);},
<mask> onPanResponderRelease:function onPanResponderRelease(e,gs){return _this2.handlePanResponderEnd(e,gs);},
<mask> onPanResponderTerminate:function onPanResponderTerminate(e,gs){return _this2.handlePanResponderEnd(e,gs);},
<mask> onShouldBlockNativeResponder:function onShouldBlockNativeResponder(_){return false;}});
<mask>
<mask> }},{key:"getPreviewAnimation",value:function getPreviewAnimation(
<mask>
<mask> toValue,delay){
<mask> return _reactNative.Animated.timing(this._translateX,{duration:this.props.previewDuration,toValue:toValue,delay:delay});
<mask> }},{key:"onContentLayout",value:function onContentLayout(
<mask>
<mask> e){var _this3=this;
<mask> this.setState({
<mask> dimensionsSet:!this.props.recalculateHiddenLayout,
<mask> hiddenHeight:e.nativeEvent.layout.height,
<mask> hiddenWidth:e.nativeEvent.layout.width});
<mask>
<mask>
<mask> if(this.props.preview&&!this.ranPreview){
<mask> this.ranPreview=true;
<mask> var previewOpenValue=this.props.previewOpenValue||this.props.rightOpenValue*0.5;
<mask> this.getPreviewAnimation(previewOpenValue,PREVIEW_OPEN_DELAY).start(function(_){
<mask> _this3.getPreviewAnimation(0,PREVIEW_CLOSE_DELAY).start();
<mask> });
<mask> }
<mask> }},{key:"handleOnMoveShouldSetPanResponder",value:function handleOnMoveShouldSetPanResponder(
<mask>
<mask> e,gs){var
<mask> dx=gs.dx;
<mask> return Math.abs(dx)>this.props.directionalDistanceChangeThreshold;
<mask> }},{key:"handlePanResponderMove",value:function handlePanResponderMove(
<mask>
<mask> e,gestureState){var
<mask> dx=gestureState.dx,dy=gestureState.dy;
<mask> var absDx=Math.abs(dx);
<mask> var absDy=Math.abs(dy);
<mask>
<mask>
<mask>
<mask> if(
<mask> absDx>this.props.directionalDistanceChangeThreshold||
<mask> absDy>this.props.directionalDistanceChangeThreshold)
<mask> {
<mask>
<mask> if(absDy>absDx&&!this.horizontalSwipeGestureBegan){
<mask>
<mask> return;
<mask> }
<mask>
<mask>
<mask> if(this.parentScrollEnabled){
<mask>
<mask> this.parentScrollEnabled=false;
<mask> this.props.setScrollEnabled&&this.props.setScrollEnabled(false);
<mask> }
<mask>
<mask> if(this.swipeInitialX===null){
<mask>
<mask> this.swipeInitialX=this._translateX._value;
<mask> }
<mask> if(!this.horizontalSwipeGestureBegan){
<mask> this.horizontalSwipeGestureBegan=true;
<mask> this.props.swipeGestureBegan&&this.props.swipeGestureBegan();
<mask> }
<mask>
<mask> var newDX=this.swipeInitialX+dx;
<mask> if(this.props.disableLeftSwipe&&newDX<0){
<mask> newDX=0;
<mask> }
<mask> if(this.props.disableRightSwipe&&newDX>0){
<mask> newDX=0;
<mask> }
<mask>
<mask> if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){
<mask> newDX=this.props.stopLeftSwipe;
<mask> }
<mask> if(this.props.stopRightSwipe&&newDX<this.props.stopRightSwipe){
<mask> newDX=this.props.stopRightSwipe;
<mask> }
<mask>
<mask> this._translateX.setValue(newDX);
<mask> }
<mask> }},{key:"handlePanResponderEnd",value:function handlePanResponderEnd(
<mask>
<mask> e,gestureState){
<mask>
<mask> if(!this.parentScrollEnabled){
<mask> this.parentScrollEnabled=true;
<mask> this.props.setScrollEnabled&&this.props.setScrollEnabled(true);
<mask> }
<mask>
<mask>
<mask> var toValue=0;
<mask> if(this._translateX._value>=0){
<mask>
<mask> if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){
<mask>
<mask> toValue=this.props.leftOpenValue;
<mask> }
<mask> }else{
<mask>
<mask> if(this._translateX._value<this.props.rightOpenValue*(this.props.swipeToOpenPercent/100)){
<mask>
<mask> toValue=this.props.rightOpenValue;
<mask> }
<mask> }
<mask>
<mask> this.manuallySwipeRow(toValue);
<mask> }},{key:"closeRow",value:function closeRow()
<mask>
<mask>
<mask>
<mask>
<mask> {
<mask> this.manuallySwipeRow(0);
<mask> }},{key:"manuallySwipeRow",value:function manuallySwipeRow(
<mask>
<mask> toValue){var _this4=this;
<mask> _reactNative.Animated.spring(this._translateX,{
<mask> toValue:toValue,
<mask> friction:this.props.friction,
<mask> tension:this.props.tension}).
<mask> start(function(_){
<mask> if(toValue===0){
<mask> _this4.props.onRowDidClose&&_this4.props.onRowDidClose();
<mask> }else{
<mask> _this4.props.onRowDidOpen&&_this4.props.onRowDidOpen();
<mask> }
<mask> });
<mask>
<mask> if(toValue===0){
<mask> this.props.onRowClose&&this.props.onRowClose();
<mask> }else{
<mask> this.props.onRowOpen&&this.props.onRowOpen(toValue);
<mask> }
<mask>
<mask>
<mask> this.swipeInitialX=null;
<mask> this.horizontalSwipeGestureBegan=false;
<mask> }},{key:"renderMainContent",value:function renderMainContent()
<mask>
<mask> {var _this5=this;
<mask>
<mask>
<mask> if(this.state.dimensionsSet){
<mask> return(
<mask> _react2.default.createElement(_reactNative.Animated.View,_extends({},
<mask> this._panResponder.panHandlers,{
<mask> style:{
<mask> transform:[{translateX:this._translateX}],
<mask> zIndex:2},__source:{fileName:_jsxFileName,lineNumber:191}}),
<mask>
<mask>
<mask> !this.props.list?
<mask> _react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:199}},
<mask> this.props.body):
<mask>
<mask> _react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:202}},
<mask> this.props.body)));
<mask>
<mask>
<mask>
<mask> }else{
<mask> return(
<mask> _react2.default.createElement(_reactNative.Animated.View,_extends({},
<mask> this._panResponder.panHandlers,{
<mask> onLayout:function onLayout(e){return _this5.onContentLayout(e);},
<mask> style:{
<mask> transform:[{translateX:this._translateX}],
<mask> zIndex:2},__source:{fileName:_jsxFileName,lineNumber:209}}),
<mask>
<mask>
<mask> !this.props.list?
<mask> _react2.default.createElement(_ListItem.ListItem,{list:true,style:this.props.style,__source:{fileName:_jsxFileName,lineNumber:218}},
<mask> this.props.body):
<mask>
<mask> _react2.default.createElement(_reactNative.View,{style:[{backgroundColor:'#FFF'},this.props.style],__source:{fileName:_jsxFileName,lineNumber:221}},
<mask> this.props.body)));
<mask>
<mask>
<mask>
<mask> }
<mask> }},{key:"render",value:function render()
<mask>
<mask> {
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,{style:this.props.style?this.props.style:undefined,__source:{fileName:_jsxFileName,lineNumber:231}},
<mask> _react2.default.createElement(_reactNative.View,{
<mask> style:[
<mask> styles.hidden,
<mask> {
<mask> height:this.state.hiddenHeight,
<mask> flex:1,
<mask> flexDirection:"row",
<mask> justifyContent:"space-between"}],__source:{fileName:_jsxFileName,lineNumber:232}},
<mask>
<mask>
<mask>
<mask> _react2.default.createElement(_Left.Left,{style:{width:this.props.leftOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:243}},
<mask> this.props.left),
<mask>
<mask> _react2.default.createElement(_Body.Body,{style:{flex:0},__source:{fileName:_jsxFileName,lineNumber:246}}),
<mask> _react2.default.createElement(_Right.Right,{style:{width:-this.props.rightOpenValue,zIndex:1},__source:{fileName:_jsxFileName,lineNumber:247}},
<mask> this.props.right)),
<mask>
<mask>
<mask> this.renderMainContent()));
<mask>
<mask>
<mask> }}]);return SwipeRow;}(_react.Component);SwipeRow.defaultProps={leftOpenValue:0,rightOpenValue:0,closeOnRowPress:true,disableLeftSwipe:false,disableRightSwipe:false,recalculateHiddenLayout:false,preview:false,previewDuration:300,directionalDistanceChangeThreshold:2,swipeToOpenPercent:50};
<mask>
<mask>
<mask> var styles={
<mask> container:{},
<mask>
<mask>
<mask>
<mask> hidden:{
<mask> bottom:0,
<mask> left:0,
<mask> overflow:"hidden",
<mask> position:"absolute",
<mask> right:0,
<mask> top:0}};
<mask>
<mask>
<mask>
<mask> var StyledSwipeRow=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.SwipeRow",{},_mapPropsToStyleNames2.default)(SwipeRow);exports.
<mask> SwipeRow=StyledSwipeRow;
<mask> //# sourceMappingURL=SwipeRow.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var SWIPE_THRESHOLD=120;var
DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);
function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,
props));
_this.state={
pan:new _reactNative.Animated.ValueXY(),
pan2:new _reactNative.Animated.ValueXY(),
enter:new _reactNative.Animated.Value(0.8),
selectedItem:_this.props.dataSource[0],
selectedItem2:_this.props.dataSource[1],
card1Top:true,
card2Top:false,
fadeAnim:new _reactNative.Animated.Value(0.8),
looping:
typeof _this.props.looping==="undefined"?true:_this.props.looping,
disabled:_this.props.dataSource.length===0,
lastCard:_this.props.dataSource.length===1};return _this;
}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref)
{var dataSource=_ref.dataSource;
if(dataSource.length!==this.props.dataSource.length){
if(dataSource.length<=1){
this.setState(_extends({},
this.state,{
selectedItem:dataSource[0],
selectedItem2:undefined,
disabled:dataSource.length===0,
lastCard:dataSource.length===1}));
return;
}
var visibleIndex=dataSource.indexOf(this.state.selectedItem);
var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;
var nextIndex=
currentIndex+1===dataSource.length?0:currentIndex+1;
this.setState({
selectedItem:dataSource[currentIndex],
selectedItem2:dataSource[nextIndex]});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
topCard:{
position:"absolute",
top:0,
right:0,
left:0}};
}},{key:"findNextIndexes",value:function findNextIndexes(
currentIndex){
var newIdx=currentIndex+1;
var newIdx2=currentIndex+2;
if(
newIdx2>this.props.dataSource.length-1&&
newIdx===this.props.dataSource.length-1)
{
return[newIdx,0];
}else if(newIdx>this.props.dataSource.length-1){
return[0,1];
}
return[newIdx,newIdx2];
}},{key:"selectNext",value:function selectNext()
{var _this2=this;
var dataSource=this.props.dataSource;
var currentIndex=dataSource.indexOf(this.state.selectedItem);
if(!this.state.looping){
if(currentIndex===dataSource.length-1){
return this.setState({
disabled:true});
}else if(currentIndex===dataSource.length-2){
return setTimeout(function(){
_this2.setState({
selectedItem:dataSource[currentIndex+1]});
setTimeout(function(){
_this2.setState({
lastCard:true});
},350);
},50);
}
}
var nextIndexes=this.findNextIndexes(currentIndex);
setTimeout(function(){
_this2.setState({
selectedItem:_this2.props.dataSource[nextIndexes[0]]});
setTimeout(function(){
_this2.setState({
selectedItem2:_this2.props.dataSource[nextIndexes[1]]});
},350);
},50);
}},{key:"swipeRight",value:function swipeRight()
{var _this3=this;
if(this.props.onSwiping)this.props.onSwiping("right");
setTimeout(function(){
_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();
_this3.selectNext();
_reactNative.Animated.decay(_this3.state.pan,{
velocity:{x:8,y:1},
deceleration:0.98}).
start(_this3._resetState.bind(_this3));
},300);
}},{key:"swipeLeft",value:function swipeLeft()
{var _this4=this;
if(this.props.onSwiping)this.props.onSwiping("left");
setTimeout(function(){
_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();
_this4.selectNext();
_reactNative.Animated.decay(_this4.state.pan,{
velocity:{x:-8,y:1},
deceleration:0.98}).
start(_this4._resetState.bind(_this4));
},300);
}},{key:"componentWillMount",value:function componentWillMount()
{var _this5=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},
onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return(
Math.abs(gestureState.dx)>5);},
onPanResponderGrant:function onPanResponderGrant(e,gestureState){
_this5.state.pan.setOffset({
x:_this5.state.pan.x._value,
y:_this5.state.pan.y._value});
_this5.state.pan.setValue({x:0,y:0});
},
onPanResponderMove:function onPanResponderMove(e,gestureState){
if(gestureState.dx>20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("right",gestureState.dx);
}else if(gestureState.dx<-20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("left",gestureState.dx);
}
var val=Math.abs(gestureState.dx*0.0013);
var opa=Math.abs(gestureState.dx*0.0022);
if(val>0.2){
val=0.2;
}
_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();
_reactNative.Animated.spring(_this5.state.enter,{
toValue:0.8+val,
friction:7}).
start();
_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);
},
onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;
if(_this5.props.onSwiping)_this5.props.onSwiping(null);
var velocity=void 0;
if(vx>=0){
velocity=(0,_clamp2.default)(vx,4.5,10);
}else if(vx<0){
velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;
}
if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){
if(velocity>0){
_this5.props.onSwipeRight?
_this5.props.onSwipeRight(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}else{
_this5.props.onSwipeLeft?
_this5.props.onSwipeLeft(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}
_reactNative.Animated.decay(_this5.state.pan,{
velocity:{x:velocity,y:vy},
deceleration:0.98}).
start(_this5._resetState.bind(_this5));
}else{
_reactNative.Animated.spring(_this5.state.pan,{
toValue:{x:0,y:0},
friction:4}).
start();
}
}});
}},{key:"_resetState",value:function _resetState()
{
this.state.pan.setValue({x:0,y:0});
this.state.enter.setValue(0.8);
this.state.fadeAnim.setValue(0.8);
this.setState({
card1Top:!this.state.card1Top,
card2Top:!this.state.card2Top});
if(this.props.onSwiping)this.props.onSwiping(null);
}},{key:"getCardStyles",value:function getCardStyles()
{var _state=
this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=
[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];
var rotate=pan.x.interpolate({
inputRange:[-700,0,700],
outputRange:["-10deg","0deg","10deg"]});
var opacity=pan.x.interpolate({
inputRange:[-320,0,320],
outputRange:[0.9,1,0.9]});
var scale=enter;
var animatedCardStyles={
transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],
opacity:opacity};
var animatedCardStyles2={transform:[{scale:scale}]};
return[animatedCardStyles,animatedCardStyles2];
}},{key:"render",value:function render()
{
if(this.state.disabled){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())));
}else if(this.state.lastCard){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),
this.props.renderEmpty&&this.props.renderEmpty()),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[0],
this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),
this.props.renderItem(this.state.selectedItem)))));
}
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),
this.props.renderBottom?
this.props.renderBottom(this.state.selectedItem2):
this.props.renderItem(this.state.selectedItem2)),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),
this.props.renderTop?
this.props.renderTop(this.state.selectedItem):
this.props.renderItem(this.state.selectedItem)))));
}}]);return DeckSwiper;}(_react.Component);
DeckSwiper.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataSource:_propTypes2.default.array});
var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DeckSwiper",
{},
_mapPropsToStyleNames2.default)(
DeckSwiper);exports.
DeckSwiper=StyledDeckSwiper;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var SWIPE_THRESHOLD=120;var DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,props));_this.state={pan:new _reactNative.Animated.ValueXY(),pan2:new _reactNative.Animated.ValueXY(),enter:new _reactNative.Animated.Value(0.8),selectedItem:_this.props.dataSource[0],selectedItem2:_this.props.dataSource[1],card1Top:true,card2Top:false,fadeAnim:new _reactNative.Animated.Value(0.8),looping:typeof _this.props.looping==="undefined"?true:_this.props.looping,disabled:_this.props.dataSource.length===0,lastCard:_this.props.dataSource.length===1};return _this;}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var dataSource=_ref.dataSource;if(dataSource.length!==this.props.dataSource.length){if(dataSource.length<=1){this.setState(_extends({},this.state,{selectedItem:dataSource[0],selectedItem2:undefined,disabled:dataSource.length===0,lastCard:dataSource.length===1}));return;}var visibleIndex=dataSource.indexOf(this.state.selectedItem);var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;var nextIndex=currentIndex+1===dataSource.length?0:currentIndex+1;this.setState({selectedItem:dataSource[currentIndex],selectedItem2:dataSource[nextIndex]});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{topCard:{position:"absolute",top:0,right:0,left:0}};}},{key:"findNextIndexes",value:function findNextIndexes(currentIndex){var newIdx=currentIndex+1;var newIdx2=currentIndex+2;if(newIdx2>this.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/SwipeRow.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Switch;}(_react.Component);Switch.propTypes=_extends({},Switch.propTypes);var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.Switch=StyledSwitch; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Switch;}(_react.Component);
<mask>
<mask>
<mask> Switch.propTypes=_extends({},
<mask> Switch.propTypes);
<mask>
<mask>
<mask> var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.
<mask>
<mask> Switch=StyledSwitch;
<mask> //# sourceMappingURL=Switch.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Item;}(_react.Component);
Item.propTypes=_extends({},
_reactNative.Picker.Item.propTypes);
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/PickerItem.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(){_classCallCheck(this,Item);return _possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).apply(this,arguments));}_createClass(Item,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker.Item,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Item;}(_react.Component);Item.propTypes=_extends({},_reactNative.Picker.Item.propTypes);var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Thumbnail;}(_react.Component);
Thumbnail.propTypes=_extends({},
_reactNative.Image.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
square:_propTypes2.default.bool,
circular:_propTypes2.default.bool,
size:_propTypes2.default.number});
var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.
Thumbnail=StyledThumbnail;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Thumbnail;}(_react.Component);Thumbnail.propTypes=_extends({},_reactNative.Image.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),square:_propTypes2.default.bool,circular:_propTypes2.default.bool,size:_propTypes2.default.number});var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.Thumbnail=StyledThumbnail; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Body;}(_react.Component);
Body.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(
Body);exports.
Body=StyledBody;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Body=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Body.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Body=function(_Component){_inherits(Body,_Component);function Body(){_classCallCheck(this,Body);return _possibleConstructorReturn(this,(Body.__proto__||Object.getPrototypeOf(Body)).apply(this,arguments));}_createClass(Body,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Body;}(_react.Component);Body.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBody=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Body",{},_mapPropsToStyleNames2.default)(Body);exports.Body=StyledBody; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Left;}(_react.Component);
Left.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(
Left);exports.
Left=StyledLeft;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Left=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Left.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Left=function(_Component){_inherits(Left,_Component);function Left(){_classCallCheck(this,Left);return _possibleConstructorReturn(this,(Left.__proto__||Object.getPrototypeOf(Left)).apply(this,arguments));}_createClass(Left,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Left;}(_react.Component);Left.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLeft=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Left",{},_mapPropsToStyleNames2.default)(Left);exports.Left=StyledLeft; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Switch.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return Tab;}(_react.Component);Tab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.Tab=StyledTab; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Tab=function(_Component){_inherits(Tab,_Component);function Tab(){_classCallCheck(this,Tab);return _possibleConstructorReturn(this,(Tab.__proto__||Object.getPrototypeOf(Tab)).apply(this,arguments));}_createClass(Tab,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
<mask> this.props.children));
<mask>
<mask>
<mask> }}]);return Tab;}(_react.Component);
<mask>
<mask>
<mask> Tab.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Tab",{},_mapPropsToStyleNames2.default)(Tab);exports.
<mask>
<mask> Tab=StyledTab;
<mask> //# sourceMappingURL=Tab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return FooterTab;}(_react.Component);
FooterTab.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.FooterTab",
{},
_mapPropsToStyleNames2.default)(
FooterTab);exports.
FooterTab=StyledFooterTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.FooterTab=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/FooterTab.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var FooterTab=function(_Component){_inherits(FooterTab,_Component);function FooterTab(){_classCallCheck(this,FooterTab);return _possibleConstructorReturn(this,(FooterTab.__proto__||Object.getPrototypeOf(FooterTab)).apply(this,arguments));}_createClass(FooterTab,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return FooterTab;}(_react.Component);FooterTab.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooterTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.FooterTab",{},_mapPropsToStyleNames2.default)(FooterTab);exports.FooterTab=StyledFooterTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),
this.props.children));
}}]);return Badge;}(_react.Component);
Badge.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(
Badge);exports.
Badge=StyledBadge;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Badge.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Badge=function(_Component){_inherits(Badge,_Component);function Badge(){_classCallCheck(this,Badge);return _possibleConstructorReturn(this,(Badge.__proto__||Object.getPrototypeOf(Badge)).apply(this,arguments));}_createClass(Badge,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:12}}),this.props.children);}}]);return Badge;}(_react.Component);Badge.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledBadge=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Badge",{},_mapPropsToStyleNames2.default)(Badge);exports.Badge=StyledBadge; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Card=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Card.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Card=function(_Component){_inherits(Card,_Component);function Card(){_classCallCheck(this,Card);return _possibleConstructorReturn(this,(Card.__proto__||Object.getPrototypeOf(Card)).apply(this,arguments));}_createClass(Card,[{key:"render",value:function render()
{var _this2=this;
if(this.props.dataArray&&this.props.renderRow){
var ds=new _reactNative.ListView.DataSource({
rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});
var dataSource=ds.cloneWithRows(this.props.dataArray);
return(
_react2.default.createElement(_reactNative.ListView,_extends({},
this.props,{
enableEmptySections:true,
dataSource:dataSource,
renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:16}})));
}
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:25}}),
this.props.children));
}}]);return Card;}(_react.Component);
Card.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataArray:_propTypes2.default.array,
renderRow:_propTypes2.default.func});
var StyledCard=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Card",{},_mapPropsToStyleNames2.default)(
Card);exports.
Card=StyledCard;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Card=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Card.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Card=function(_Component){_inherits(Card,_Component);function Card(){_classCallCheck(this,Card);return _possibleConstructorReturn(this,(Card.__proto__||Object.getPrototypeOf(Card)).apply(this,arguments));}_createClass(Card,[{key:"render",value:function render(){var _this2=this;if(this.props.dataArray&&this.props.renderRow){var ds=new _reactNative.ListView.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});var dataSource=ds.cloneWithRows(this.props.dataArray);return _react2.default.createElement(_reactNative.ListView,_extends({},this.props,{enableEmptySections:true,dataSource:dataSource,renderRow:this.props.renderRow,__source:{fileName:_jsxFileName,lineNumber:16}}));}return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:25}}),this.props.children);}}]);return Card;}(_react.Component);Card.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataArray:_propTypes2.default.array,renderRow:_propTypes2.default.func});var StyledCard=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Card",{},_mapPropsToStyleNames2.default)(Card);exports.Card=StyledCard; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tab.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return TabContainer;}(_react.Component);
<mask>
<mask>
<mask> TabContainer.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.TabContainer",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> TabContainer);exports.
<mask> TabContainer=StyledTabContainer;
<mask> //# sourceMappingURL=TabContainer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/TabContainer.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return TabHeadingNB;}(_react.Component);
<mask>
<mask>
<mask> TabHeadingNB.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.TabHeading",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> TabHeadingNB);exports.
<mask> TabHeading=StyledTabHeadingNB;
<mask> //# sourceMappingURL=TabHeading.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabContainer;}(_react.Component);
TabContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabContainer",
{},
_mapPropsToStyleNames2.default)(
TabContainer);exports.
TabContainer=StyledTabContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/TabHeading.js |
var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");var ReactNative=require("react-native");var TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableNativeFeedback,_extends({delayPressIn:0},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; | <mask> var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");
<mask> var ReactNative=require("react-native");var
<mask> TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;
<mask>
<mask> var Button=function Button(props){
<mask> return(
<mask> React.createElement(TouchableNativeFeedback,_extends({
<mask> delayPressIn:0},
<mask> props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
<mask>
<mask> props.children));
<mask>
<mask>
<mask> };
<mask>
<mask> module.exports=Button;
<mask> //# sourceMappingURL=Button.android.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");
var ReactNative=require("react-native");var
Component=React.Component;var
View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;
var StaticContainer=require("./StaticContainer");
var SceneComponent=function SceneComponent(Props){var
shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);
return(
React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},
props.children)));
};
module.exports=SceneComponent;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},
_reactNative.InteractionManager,{
runAfterInteractions:function runAfterInteractions(f){
var called=false;
var timeout=setTimeout(function(){
called=true;
f();
},10);
_reactNative.InteractionManager.runAfterInteractions(function(){
if(called)return;
clearTimeout(timeout);
f();
});
}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},_reactNative.InteractionManager,{runAfterInteractions:function runAfterInteractions(f){var called=false;var timeout=setTimeout(function(){called=true;f();},10);_reactNative.InteractionManager.runAfterInteractions(function(){if(called)return;clearTimeout(timeout);f();});}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/Button.android.js |
var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; | <mask> var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");
<mask> var ReactNative=require("react-native");var
<mask> TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
<mask>
<mask> var Button=function Button(props){
<mask> return(
<mask> React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
<mask> props.children));
<mask>
<mask>
<mask> };
<mask>
<mask> module.exports=Button;
<mask> //# sourceMappingURL=Button.ios.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableNativeFeedback,_extends({
delayPressIn:0},
props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");var ReactNative=require("react-native");var TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableNativeFeedback,_extends({delayPressIn:0},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");
var ReactNative=require("react-native");var
Component=React.Component;var
View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;
var StaticContainer=require("./StaticContainer");
var SceneComponent=function SceneComponent(Props){var
shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);
return(
React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},
props.children)));
};
module.exports=SceneComponent;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},
_reactNative.InteractionManager,{
runAfterInteractions:function runAfterInteractions(f){
var called=false;
var timeout=setTimeout(function(){
called=true;
f();
},10);
_reactNative.InteractionManager.runAfterInteractions(function(){
if(called)return;
clearTimeout(timeout);
f();
});
}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},_reactNative.InteractionManager,{runAfterInteractions:function runAfterInteractions(f){var called=false;var timeout=setTimeout(function(){called=true;f();},10);_reactNative.InteractionManager.runAfterInteractions(function(){if(called)return;clearTimeout(timeout);f();});}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/Button.ios.js |
var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; | <mask> var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");
<mask> var ReactNative=require("react-native");var
<mask> TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
<mask>
<mask> var Button=function Button(props){
<mask> return(
<mask> React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
<mask> props.children));
<mask>
<mask>
<mask> };
<mask>
<mask> module.exports=Button;
<mask> //# sourceMappingURL=Button.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableNativeFeedback,_extends({
delayPressIn:0},
props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");var ReactNative=require("react-native");var TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableNativeFeedback,_extends({delayPressIn:0},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");
var ReactNative=require("react-native");var
Component=React.Component;var
View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;
var StaticContainer=require("./StaticContainer");
var SceneComponent=function SceneComponent(Props){var
shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);
return(
React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},
props.children)));
};
module.exports=SceneComponent;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},
_reactNative.InteractionManager,{
runAfterInteractions:function runAfterInteractions(f){
var called=false;
var timeout=setTimeout(function(){
called=true;
f();
},10);
_reactNative.InteractionManager.runAfterInteractions(function(){
if(called)return;
clearTimeout(timeout);
f();
});
}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},_reactNative.InteractionManager,{runAfterInteractions:function runAfterInteractions(f){var called=false;var timeout=setTimeout(function(){called=true;f();},10);_reactNative.InteractionManager.runAfterInteractions(function(){if(called)return;clearTimeout(timeout);f();});}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/Button.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _index=require("./../../index");
<mask> var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask> var ReactNative=require("react-native");var
<mask>
<mask> StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
<mask> var Button=require("./Button");
<mask>
<mask> var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
<mask> propTypes:{
<mask> goToPage:_propTypes2.default.func,
<mask> activeTab:_propTypes2.default.number,
<mask> tabs:_propTypes2.default.array,
<mask> backgroundColor:_propTypes2.default.string,
<mask> activeTextColor:_propTypes2.default.string,
<mask> inactiveTextColor:_propTypes2.default.string,
<mask> tabStyle:_utils.ViewPropTypes.style,
<mask> renderTab:_propTypes2.default.func,
<mask> underlineStyle:_utils.ViewPropTypes.style,
<mask> tabContainerStyle:_utils.ViewPropTypes.style},
<mask>
<mask> contextTypes:{
<mask> theme:_propTypes2.default.object},
<mask>
<mask>
<mask> getDefaultProps:function getDefaultProps(){
<mask> return{
<mask> activeTextColor:_platform2.default.topTabBarActiveTextColor,
<mask> inactiveTextColor:_platform2.default.topTabBarTextColor,
<mask> backgroundColor:null,
<mask> tabFontSize:_platform2.default.tabFontSize};
<mask>
<mask> },
<mask>
<mask> renderTabOption:function renderTabOption(name,page){},
<mask>
<mask> renderTab:function renderTab(
<mask> name,
<mask> page,
<mask> isTabActive,
<mask> onPressHandler,
<mask> tabStyle,
<mask> activeTabStyle,
<mask> textStyle,
<mask> activeTextStyle,
<mask> tabHeaderStyle)
<mask> {
<mask> var headerContent=
<mask> typeof name!=="string"?name.props.children:undefined;var _props=
<mask> this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
<mask> var textColor=isTabActive?activeTextColor:inactiveTextColor;
<mask> var fontWeight=isTabActive?"bold":"normal";
<mask> var fontSize=tabFontSize;
<mask> if(typeof name==="string"){
<mask> return(
<mask> _react2.default.createElement(Button,{
<mask> style:{flex:1},
<mask> key:name,
<mask> onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
<mask>
<mask> _react2.default.createElement(_index.TabHeading,{
<mask> style:isTabActive?activeTabStyle:tabStyle,
<mask> active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
<mask>
<mask> _react2.default.createElement(_index.Text,{
<mask> style:[
<mask> isTabActive?activeTextStyle:textStyle,
<mask> {fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
<mask>
<mask>
<mask> name))));
<mask>
<mask>
<mask>
<mask>
<mask> }else{
<mask> return(
<mask> _react2.default.createElement(Button,{
<mask> style:{flex:1},
<mask> key:_lodash2.default.random(1.2,5.2),
<mask> onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
<mask>
<mask> _react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
<mask> headerContent)));
<mask>
<mask>
<mask>
<mask> }
<mask> },
<mask>
<mask> render:function render(){var _this=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var containerWidth=this.props.containerWidth;
<mask> var numberOfTabs=this.props.tabs.length;
<mask> var tabUnderlineStyle={
<mask> position:"absolute",
<mask> width:containerWidth/numberOfTabs,
<mask> height:4,
<mask> backgroundColor:variables.topTabBarActiveBorderColor,
<mask> bottom:0};
<mask>
<mask>
<mask> var left=this.props.scrollValue.interpolate({
<mask> inputRange:[0,1],
<mask> outputRange:[0,containerWidth/numberOfTabs]});
<mask>
<mask> return(
<mask> _react2.default.createElement(_index.TabContainer,{
<mask> style:[
<mask> {backgroundColor:variables.tabDefaultBg},
<mask> this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
<mask>
<mask>
<mask> this.props.tabs.map(function(name,page){
<mask> var isTabActive=_this.props.activeTab===page;
<mask> var renderTab=_this.props.renderTab||_this.renderTab;
<mask> return renderTab(
<mask> name,
<mask> page,
<mask> isTabActive,
<mask> _this.props.goToPage,
<mask> _this.props.tabStyle[page],
<mask> _this.props.activeTabStyle[page],
<mask> _this.props.textStyle[page],
<mask> _this.props.activeTextStyle[page],
<mask> _this.props.tabHeaderStyle[page]);
<mask>
<mask> }),
<mask> _react2.default.createElement(Animated.View,{
<mask> style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
<mask>
<mask>
<mask>
<mask> }});
<mask>
<mask>
<mask>
<mask> var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.DefaultTabBar",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> DefaultTabBar);exports.
<mask> DefaultTabBar=StyledTab;
<mask> //# sourceMappingURL=DefaultTabBar.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var Button=require("./Button");
var ReactNative=require("react-native");var
View=
ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
var WINDOW_WIDTH=Dimensions.get("window").width;
var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
scrollOffset:_propTypes2.default.number,
style:_utils.ViewPropTypes.style,
tabStyle:_utils.ViewPropTypes.style,
tabsContainerStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
onScroll:_propTypes2.default.func},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
scrollOffset:52,
activeTextColor:"navy",
inactiveTextColor:"black",
backgroundColor:_platform2.default.tabDefaultBg,
style:{},
tabStyle:{},
tabsContainerStyle:{},
underlineStyle:{},
tabFontSize:_platform2.default.tabFontSize};
},
getInitialState:function getInitialState(){
this._tabsMeasurements=[];
return{
_leftTabUnderline:new Animated.Value(0),
_widthTabUnderline:new Animated.Value(0),
_containerWidth:null};
},
componentDidMount:function componentDidMount(){
this.props.scrollValue.addListener(this.updateView);
},
updateView:function updateView(offset){
var position=Math.floor(offset.value);
var pageOffset=offset.value%1;
var tabCount=this.props.tabs.length;
var lastTabPosition=tabCount-1;
if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
return;
}
if(
this.necessarilyMeasurementsCompleted(
position,
position===lastTabPosition))
{
this.updateTabPanel(position,pageOffset);
this.updateTabUnderline(position,pageOffset,tabCount);
}
},
necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
return(
this._tabsMeasurements[position]&&(
isLastTab||this._tabsMeasurements[position+1])&&
this._tabContainerMeasurements&&
this._containerMeasurements);
},
updateTabPanel:function updateTabPanel(position,pageOffset){
var containerWidth=this._containerMeasurements.width;
var tabWidth=this._tabsMeasurements[position].width;
var nextTabMeasurements=this._tabsMeasurements[position+1];
var nextTabWidth=
nextTabMeasurements&&nextTabMeasurements.width||0;
var tabOffset=this._tabsMeasurements[position].left;
var absolutePageOffset=pageOffset*tabWidth;
var newScrollX=tabOffset+absolutePageOffset;
newScrollX-=
(containerWidth-
(1-pageOffset)*tabWidth-
pageOffset*nextTabWidth)/
2;
newScrollX=newScrollX>=0?newScrollX:0;
if(Platform.OS==="android"){
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}else{
var rightBoundScroll=
this._tabContainerMeasurements.width-
this._containerMeasurements.width;
newScrollX=
newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}
},
updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
var lineLeft=this._tabsMeasurements[position].left;
var lineRight=this._tabsMeasurements[position].right;
if(position<tabCount-1){
var nextTabLeft=this._tabsMeasurements[position+1].left;
var nextTabRight=this._tabsMeasurements[position+1].right;
var newLineLeft=
pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
var newLineRight=
pageOffset*nextTabRight+(1-pageOffset)*lineRight;
this.state._leftTabUnderline.setValue(newLineLeft);
this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
}else{
this.state._leftTabUnderline.setValue(lineLeft);
this.state._widthTabUnderline.setValue(lineRight-lineLeft);
}
},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
onLayoutHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
key:name+"_"+page,
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
_react2.default.createElement(_index.TabHeading,{
scrollable:true,
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
name))));
}else{
return(
_react2.default.createElement(Button,{
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
headerContent)));
}
},
measureTab:function measureTab(page,event){var _event$nativeEvent$la=
event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
this.updateView({value:this.props.scrollValue._value});
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var tabUnderlineStyle={
position:"absolute",
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var dynamicTabUnderline={
left:this.state._leftTabUnderline,
width:this.state._widthTabUnderline};
return(
_react2.default.createElement(View,{
style:[
styles.container,
{backgroundColor:this.props.backgroundColor},
this.props.style],
onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(ScrollView,{
automaticallyAdjustContentInsets:false,
ref:function ref(scrollView){
_this._scrollView=scrollView;
},
horizontal:true,
showsHorizontalScrollIndicator:false,
showsVerticalScrollIndicator:false,
directionalLockEnabled:true,
onScroll:this.props.onScroll,
bounces:false,
scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
_react2.default.createElement(View,{
style:[
styles.tabs,
{width:this.state._containerWidth},
this.props.tabsContainerStyle],
ref:"tabContainer",
onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
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]);
}),
_react2.default.createElement(Animated.View,{
style:[
tabUnderlineStyle,
dynamicTabUnderline,
this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
},
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
if(
!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
this.state._containerWidth)
{
this.setState({_containerWidth:null});
}
},
onTabContainerLayout:function onTabContainerLayout(e){
this._tabContainerMeasurements=e.nativeEvent.layout;
var width=this._tabContainerMeasurements.width;
if(width<WINDOW_WIDTH){
width=WINDOW_WIDTH;
}
this.setState({_containerWidth:width});
this.updateView({value:this.props.scrollValue._value});
},
onContainerLayout:function onContainerLayout(e){
this._containerMeasurements=e.nativeEvent.layout;
this.updateView({value:this.props.scrollValue._value});
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ScrollableTab",
{},
_mapPropsToStyleNames2.default)(
ScrollableTabBar);exports.
ScrollableTab=StyledTab;
var styles=StyleSheet.create({
tab:{
height:49,
alignItems:"center",
justifyContent:"center",
paddingLeft:20,
paddingRight:20},
container:{
height:50,
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderColor:"#ccc"},
tabs:{
flexDirection:"row",
justifyContent:"space-around"}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
var React=require("react");var
Component=React.Component;
var ReactNative=require("react-native");var
Dimensions=
ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;
var TimerMixin=require("react-timer-mixin");
var SceneComponent=require("./SceneComponent");var _require=
require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=
require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;
var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",
mixins:[TimerMixin],
statics:{
DefaultTabBar:DefaultTabBar,
ScrollableTabBar:ScrollableTabBar},
propTypes:{
tabBarPosition:_propTypes2.default.oneOf([
"top",
"bottom",
"overlayTop",
"overlayBottom"]),
initialPage:_propTypes2.default.number,
page:_propTypes2.default.number,
onChangeTab:_propTypes2.default.func,
onScroll:_propTypes2.default.func,
renderTabBar:_propTypes2.default.any,
style:_utils.ViewPropTypes.style,
contentProps:_propTypes2.default.object,
scrollWithoutAnimation:_propTypes2.default.bool,
locked:_propTypes2.default.bool,
prerenderingSiblingsNumber:_propTypes2.default.number},
getDefaultProps:function getDefaultProps(){
return{
tabBarPosition:"top",
initialPage:0,
page:-1,
onChangeTab:function onChangeTab(){},
onScroll:function onScroll(){},
contentProps:{},
scrollWithoutAnimation:false,
locked:false,
prerenderingSiblingsNumber:0};
},
getInitialState:function getInitialState(){
return{
currentPage:this.props.initialPage,
scrollValue:new Animated.Value(this.props.initialPage),
containerWidth:Dimensions.get("window").width,
sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};
},
componentDidMount:function componentDidMount(){var _this=this;
var scrollFn=function scrollFn(){
if(_this.scrollView){
_this.state.scrollValue.setValue(_this.props.initialPage);
}
};
_utils.InteractionManager.runAfterInteractions(scrollFn);
},
componentWillReceiveProps:function componentWillReceiveProps(props){
if(props.children!==this.props.children){
this.updateSceneKeys({
page:this.state.currentPage,
children:props.children});
}
if(props.page>=0&&props.page!==this.state.currentPage){
this.goToPage(props.page);
}
},
goToPage:function goToPage(pageNumber){
var offset=pageNumber*this.state.containerWidth;
if(this.scrollView){
this.scrollView.scrollTo({
x:offset,
y:0,
animated:!this.props.scrollWithoutAnimation});
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:pageNumber,
callback:this._onChangeTab.bind(this,currentPage,pageNumber)});
},
renderTabBar:function renderTabBar(props){
if(this.props.renderTabBar===false){
return null;
}else if(this.props.renderTabBar){
return React.cloneElement(this.props.renderTabBar(props),props);
}else{
return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));
}
},
updateSceneKeys:function updateSceneKeys(_ref)
{var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;
var newKeys=this.newSceneKeys({
previousKeys:this.state.sceneKeys,
currentPage:page,
children:children});
this.setState({currentPage:page,sceneKeys:newKeys},callback);
},
newSceneKeys:function newSceneKeys(_ref2)
{var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;
var newKeys=[];
this._children(children).forEach(function(child,idx){
var key=_this2._makeSceneKey(child,idx);
if(
_this2._keyExists(previousKeys,key)||
_this2._shouldRenderSceneKey(idx,currentPage))
{
newKeys.push(key);
}
});
return newKeys;
},
_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){
var numOfSibling=this.props.prerenderingSiblingsNumber;
return(
idx<currentPageKey+numOfSibling+1&&
idx>currentPageKey-numOfSibling-1);
},
_keyExists:function _keyExists(sceneKeys,key){
return sceneKeys.find(function(sceneKey){return key===sceneKey;});
},
_makeSceneKey:function _makeSceneKey(child,idx){
return child.props.heading+"_"+idx;
},
renderScrollableContent:function renderScrollableContent(){var _this3=this;
var scenes=this._composeScenes();
return(
React.createElement(ScrollView,_extends({
horizontal:true,
pagingEnabled:true,
automaticallyAdjustContentInsets:false,
keyboardShouldPersistTaps:"handled",
contentOffset:{
x:this.props.initialPage*this.state.containerWidth},
ref:function ref(scrollView){
_this3.scrollView=scrollView;
},
onScroll:function onScroll(e){
var offsetX=e.nativeEvent.contentOffset.x;
_this3._updateScrollValue(offsetX/_this3.state.containerWidth);
},
onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,
onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,
scrollEventThrottle:16,
scrollsToTop:false,
showsHorizontalScrollIndicator:false,
scrollEnabled:!this.props.locked,
directionalLockEnabled:true,
alwaysBounceVertical:false,
keyboardDismissMode:"on-drag"},
this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),
scenes));
},
_composeScenes:function _composeScenes(){var _this4=this;
return this._children().map(function(child,idx){
var key=_this4._makeSceneKey(child,idx);
return(
React.createElement(SceneComponent,{
key:child.key,
shouldUpdated:_this4._shouldRenderSceneKey(
idx,
_this4.state.currentPage),
style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},
_this4._keyExists(_this4.state.sceneKeys,key)?
child:
React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}})));
});
},
_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){
var offsetX=e.nativeEvent.contentOffset.x;
var page=Math.round(offsetX/this.state.containerWidth);
if(this.state.currentPage!==page){
this._updateSelectedPage(page);
}
},
_updateSelectedPage:function _updateSelectedPage(nextPage){
var localNextPage=nextPage;
if(typeof localNextPage==="object"){
localNextPage=nextPage.nativeEvent.position;
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:localNextPage,
callback:this._onChangeTab.bind(this,currentPage,localNextPage)});
},
_onChangeTab:function _onChangeTab(prevPage,currentPage){
this.props.onChangeTab({
i:currentPage,
ref:this._children()[currentPage],
from:prevPage});
},
_updateScrollValue:function _updateScrollValue(value){
this.state.scrollValue.setValue(value);
this.props.onScroll(value);
},
_handleLayout:function _handleLayout(e){var _this5=this;var
width=e.nativeEvent.layout.width;
if(Math.round(width)!==Math.round(this.state.containerWidth)){
this.setState({containerWidth:width});
this.requestAnimationFrame(function(){
_this5.goToPage(_this5.state.currentPage);
});
}
},
_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;
return React.Children.map(children,function(child){return child;});
},
render:function render(){
var overlayTabs=
this.props.tabBarPosition==="overlayTop"||
this.props.tabBarPosition==="overlayBottom";
var tabBarProps={
goToPage:this.goToPage,
tabs:this._children().map(function(child){return child.props.heading;}),
tabStyle:this._children().map(function(child){return child.props.tabStyle;}),
activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),
textStyle:this._children().map(function(child){return child.props.textStyle;}),
activeTextStyle:this._children().map(
function(child){return child.props.activeTextStyle;}),
tabHeaderStyle:this._children().map(function(child){return(
_lodash2.default.get(child.props.heading.props,"style",undefined));}),
activeTab:this.state.currentPage,
scrollValue:this.state.scrollValue,
containerWidth:this.state.containerWidth};
if(this.props.tabBarBackgroundColor){
tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;
}
if(this.props.tabBarActiveTextColor){
tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;
}
if(this.props.tabBarInactiveTextColor){
tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;
}
if(this.props.tabBarTextStyle){
tabBarProps.textStyle=this.props.tabBarTextStyle;
}
if(this.props.tabBarUnderlineStyle){
tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;
}
if(this.props.tabContainerStyle){
tabBarProps.tabContainerStyle=this.props.tabContainerStyle;
}
if(overlayTabs){var _tabBarProps$style;
tabBarProps.style=(_tabBarProps$style={
position:"absolute",
left:0,
right:0},_defineProperty(_tabBarProps$style,
this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor",
"rgba(255, 255, 255, 0.7)"),_tabBarProps$style);
}
return(
React.createElement(View,{
style:[styles.container,this.props.style],
onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},
(this.props.tabBarPosition==="top"||
this.props.tabBarPosition==="overlayTop")&&
this.renderTabBar(tabBarProps),
this.renderScrollableContent(),
(this.props.tabBarPosition==="bottom"||
this.props.tabBarPosition==="overlayBottom")&&
this.renderTabBar(tabBarProps)));
}});exports.default=
ScrollableTabView;
var styles=StyleSheet.create({
container:{
flex:1},
scrollableContentAndroid:{
flex:1}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var React=require("react");var Component=React.Component;var ReactNative=require("react-native");var Dimensions=ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;var TimerMixin=require("react-timer-mixin");var SceneComponent=require("./SceneComponent");var _require=require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",mixins:[TimerMixin],statics:{DefaultTabBar:DefaultTabBar,ScrollableTabBar:ScrollableTabBar},propTypes:{tabBarPosition:_propTypes2.default.oneOf(["top","bottom","overlayTop","overlayBottom"]),initialPage:_propTypes2.default.number,page:_propTypes2.default.number,onChangeTab:_propTypes2.default.func,onScroll:_propTypes2.default.func,renderTabBar:_propTypes2.default.any,style:_utils.ViewPropTypes.style,contentProps:_propTypes2.default.object,scrollWithoutAnimation:_propTypes2.default.bool,locked:_propTypes2.default.bool,prerenderingSiblingsNumber:_propTypes2.default.number},getDefaultProps:function getDefaultProps(){return{tabBarPosition:"top",initialPage:0,page:-1,onChangeTab:function onChangeTab(){},onScroll:function onScroll(){},contentProps:{},scrollWithoutAnimation:false,locked:false,prerenderingSiblingsNumber:0};},getInitialState:function getInitialState(){return{currentPage:this.props.initialPage,scrollValue:new Animated.Value(this.props.initialPage),containerWidth:Dimensions.get("window").width,sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};},componentDidMount:function componentDidMount(){var _this=this;var scrollFn=function scrollFn(){if(_this.scrollView){_this.state.scrollValue.setValue(_this.props.initialPage);}};_utils.InteractionManager.runAfterInteractions(scrollFn);},componentWillReceiveProps:function componentWillReceiveProps(props){if(props.children!==this.props.children){this.updateSceneKeys({page:this.state.currentPage,children:props.children});}if(props.page>=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idx<currentPageKey+numOfSibling+1&&idx>currentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _reactNative=require("react-native");
var _Icon=require("./Icon");
var _IconNB=require("./IconNB");
var _Button=require("./Button");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
Fab=function(_Component){_inherits(Fab,_Component);
function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
props));
_this.containerHeight=new _reactNative.Animated.Value(56);
_this.containerWidth=new _reactNative.Animated.Value(0);
_this.buttonScale=new _reactNative.Animated.Value(0);
_this.state={
buttons:undefined,
active:false};return _this;
}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
pos)
{
if(pos==="topLeft"){
return{
top:20,
bottom:undefined,
left:20,
right:undefined};
}else if(pos==="bottomRight"){
return{
top:undefined,
bottom:20,
left:undefined,
right:20};
}else if(pos==="bottomLeft"){
return{
top:undefined,
bottom:20,
left:20,
right:undefined};
}else if(pos==="topRight"){
return{
top:20,
bottom:undefined,
left:undefined,
right:20};
}
}},{key:"fabOtherBtns",value:function fabOtherBtns(
direction,i){
if(direction==="up"){
return{
top:undefined,
bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:5:
i*50+65,
left:8,
right:0};
}else if(direction==="left"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
-(i*50+58),
right:0};
}else if(direction==="down"){
return{
top:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
bottom:0,
left:8,
right:0};
}else if(direction==="right"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
right:0};
}
}},{key:"getInitialStyle",value:function getInitialStyle(
iconStyle){
return{
fab:{
height:56,
width:56,
borderRadius:28,
elevation:4,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.4,
justifyContent:"center",
alignItems:"center",
shadowRadius:2,
position:"absolute",
bottom:0,
backgroundColor:"blue"},
container:{
position:"absolute",
top:this.props.position?
this.fabTopValue(this.props.position).top:
undefined,
bottom:this.props.position?
this.fabTopValue(this.props.position).bottom:
20,
right:this.props.position?
this.fabTopValue(this.props.position).right:
20,
left:this.props.position?
this.fabTopValue(this.props.position).left:
undefined,
width:56,
height:this.containerHeight,
flexDirection:this.props.direction?
this.props.direction==="left"||this.props.direction==="right"?
"row":
"column":
"column",
alignItems:"center"},
iconStyle:_extends({
color:"#fff",
fontSize:24,
lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
iconStyle),
buttonStyle:{
position:"absolute",
height:40,
width:40,
left:7,
borderRadius:20,
transform:this.state.active?
[{scale:new _reactNative.Animated.Value(1)}]:
[{scale:this.buttonScale}],
marginBottom:10,
backgroundColor:"blue"}};
}},{key:"getContainerStyle",value:function getContainerStyle()
{
return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
}},{key:"prepareFabProps",value:function prepareFabProps()
{
var defaultProps={
style:this.getInitialStyle().fab};
var incomingProps=_lodash2.default.clone(this.props);
delete incomingProps.onPress;
return(0,_computeProps2.default)(incomingProps,defaultProps);
}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
child,i){
var type={
top:this.props.direction?
this.fabOtherBtns(this.props.direction,i).top:
undefined,
left:this.props.direction?
this.fabOtherBtns(this.props.direction,i).left:
8,
right:this.props.direction?
this.fabOtherBtns(this.props.direction,i).right:
0,
bottom:this.props.direction?
this.fabOtherBtns(this.props.direction,i).bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
i*50+50};
return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
}},{key:"prepareButtonProps",value:function prepareButtonProps(
child){
var inp=_lodash2.default.clone(child.props);
delete inp.style;
var defaultProps={};
return(0,_computeProps2.default)(inp,defaultProps);
}},{key:"componentDidMount",value:function componentDidMount()
{var _this2=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
this.setState({
buttons:icon.length});
this.activeTimer=setTimeout(function(){
_this2.setState({
active:_this2.props.active});
},0);
}},{key:"componentWillUnmount",value:function componentWillUnmount()
{
if(this.activeTimer){
clearTimeout(this.activeTimer);
}
}},{key:"renderFab",value:function renderFab()
{
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
return _react2.default.cloneElement(childrenArray[0],{
style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
}},{key:"renderButtons",value:function renderButtons()
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var newChildren=[];
{
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:279}}),
child.props.children));
});
}
return newChildren;
}},{key:"upAnimate",value:function upAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"leftAnimate",value:function leftAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"rightAnimate",value:function rightAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"downAnimate",value:function downAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"_animate",value:function _animate()
{var _props=
this.props,direction=_props.direction,position=_props.position;
if(this.props.direction){
if(this.props.direction==="up"){
this.upAnimate();
}else if(this.props.direction==="left"){
this.leftAnimate();
}else if(this.props.direction==="right"){
this.rightAnimate();
}else if(this.props.direction==="down"){
this.downAnimate();
}
}else{
this.upAnimate();
}
}},{key:"fabOnPress",value:function fabOnPress()
{var _this4=this;
if(this.props.onPress){
this.props.onPress();
this._animate();
this.activeTimer=setTimeout(function(){
_this4.setState({
active:_this4.props.active});
},100);
}
}},{key:"render",value:function render()
{var _this5=this;var
active=this.props.active;
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
this.renderButtons(),
_reactNative.Platform.OS==="ios"||
_platform2.default.androidRipple===false||
_reactNative.Platform["Version"]<=21?
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
this.renderFab()):
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
this.renderFab()))));
}}]);return Fab;}(_react.Component);
var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
Fab=StyledFab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/DefaultTabBar.js |
var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; | <mask> var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");
<mask> var ReactNative=require("react-native");var
<mask> Component=React.Component;var
<mask> View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;
<mask>
<mask> var StaticContainer=require("./StaticContainer");
<mask>
<mask> var SceneComponent=function SceneComponent(Props){var
<mask> shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);
<mask> return(
<mask> React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
<mask> React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},
<mask> props.children)));
<mask>
<mask>
<mask>
<mask> };
<mask>
<mask> module.exports=SceneComponent;
<mask> //# sourceMappingURL=SceneComponent.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableNativeFeedback,_extends({
delayPressIn:0},
props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");var ReactNative=require("react-native");var TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableNativeFeedback,_extends({delayPressIn:0},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Toast=require("./Toast");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ToastContainer=function(_Component){_inherits(ToastContainer,_Component);
function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,
props));
_this.state={
modalVisible:false,
fadeAnim:new _reactNative.Animated.Value(0)};return _this;
}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle()
{
return{
position:"absolute",
opacity:this.state.fadeAnim,
width:"100%",
elevation:9,
paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,
top:this.state.position==="top"?this.getTop():undefined,
bottom:this.state.position==="bottom"?this.getTop():undefined};
}},{key:"getTop",value:function getTop()
{
if(_reactNative.Platform.OS==="ios"){
return 30;
}else{
return 0;
}
}},{key:"getButtonText",value:function getButtonText(
buttonText){
if(buttonText){
if(buttonText.trim().length===0){
return undefined;
}else return buttonText;
}
return undefined;
}},{key:"showToast",value:function showToast(_ref)
{var config=_ref.config;
this.setState({
modalVisible:true,
text:config.text,
buttonText:this.getButtonText(config.buttonText),
type:config.type,
position:config.position?config.position:"bottom",
supportedOrientations:config.supportedOrientations,
style:config.style,
buttonTextStyle:config.buttonTextStyle,
buttonStyle:config.buttonStyle,
textStyle:config.textStyle,
onClose:config.onClose});
if(this.closeTimeout){
clearTimeout(this.closeTimeout);
}
if(config.duration!==0){
var duration=config.duration>0?config.duration:1500;
this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);
}
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:1,
duration:200}).
start();
}},{key:"closeModal",value:function closeModal(
reason){
this.setState({
modalVisible:false});var
onClose=this.state.onClose;
if(onClose&&typeof onClose==="function"){
onClose(reason);
}
}},{key:"closeToast",value:function closeToast(
reason){
clearTimeout(this.closeTimeout);
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:0,
duration:200}).
start(this.closeModal.bind(this,reason));
}},{key:"render",value:function render()
{var _this2=this;
if(this.state.modalVisible){
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},
_react2.default.createElement(_Toast.Toast,{
style:this.state.style,
danger:this.state.type=="danger"?true:false,
success:this.state.type=="success"?true:false,
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),
this.state.buttonText&&
_react2.default.createElement(_Button.Button,{
style:this.state.buttonStyle,
onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},
_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},
this.state.buttonText)))));
}else return null;
}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);
ToastContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ToastContainer",
{},
_mapPropsToStyleNames2.default)(
ToastContainer);exports.
ToastContainer=StyledToastContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Toast=require("./Toast");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},
_reactNative.InteractionManager,{
runAfterInteractions:function runAfterInteractions(f){
var called=false;
var timeout=setTimeout(function(){
called=true;
f();
},10);
_reactNative.InteractionManager.runAfterInteractions(function(){
if(called)return;
clearTimeout(timeout);
f();
});
}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},_reactNative.InteractionManager,{runAfterInteractions:function runAfterInteractions(f){var called=false;var timeout=setTimeout(function(){called=true;f();},10);_reactNative.InteractionManager.runAfterInteractions(function(){if(called)return;clearTimeout(timeout);f();});}}); | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/SceneComponent.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
<mask> var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _index=require("./../../index");
<mask> var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask> var Button=require("./Button");
<mask> var ReactNative=require("react-native");var
<mask>
<mask> View=
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
<mask>
<mask> var WINDOW_WIDTH=Dimensions.get("window").width;
<mask>
<mask> var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
<mask> propTypes:{
<mask> goToPage:_propTypes2.default.func,
<mask> activeTab:_propTypes2.default.number,
<mask> tabs:_propTypes2.default.array,
<mask> backgroundColor:_propTypes2.default.string,
<mask> activeTextColor:_propTypes2.default.string,
<mask> inactiveTextColor:_propTypes2.default.string,
<mask> scrollOffset:_propTypes2.default.number,
<mask> style:_utils.ViewPropTypes.style,
<mask> tabStyle:_utils.ViewPropTypes.style,
<mask> tabsContainerStyle:_utils.ViewPropTypes.style,
<mask> renderTab:_propTypes2.default.func,
<mask> underlineStyle:_utils.ViewPropTypes.style,
<mask> onScroll:_propTypes2.default.func},
<mask>
<mask> contextTypes:{
<mask> theme:_propTypes2.default.object},
<mask>
<mask>
<mask> getDefaultProps:function getDefaultProps(){
<mask> return{
<mask> scrollOffset:52,
<mask> activeTextColor:"navy",
<mask> inactiveTextColor:"black",
<mask> backgroundColor:_platform2.default.tabDefaultBg,
<mask> style:{},
<mask> tabStyle:{},
<mask> tabsContainerStyle:{},
<mask> underlineStyle:{},
<mask> tabFontSize:_platform2.default.tabFontSize};
<mask>
<mask> },
<mask>
<mask> getInitialState:function getInitialState(){
<mask> this._tabsMeasurements=[];
<mask> return{
<mask> _leftTabUnderline:new Animated.Value(0),
<mask> _widthTabUnderline:new Animated.Value(0),
<mask> _containerWidth:null};
<mask>
<mask> },
<mask>
<mask> componentDidMount:function componentDidMount(){
<mask> this.props.scrollValue.addListener(this.updateView);
<mask> },
<mask>
<mask> updateView:function updateView(offset){
<mask> var position=Math.floor(offset.value);
<mask> var pageOffset=offset.value%1;
<mask> var tabCount=this.props.tabs.length;
<mask> var lastTabPosition=tabCount-1;
<mask>
<mask> if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
<mask> return;
<mask> }
<mask>
<mask> if(
<mask> this.necessarilyMeasurementsCompleted(
<mask> position,
<mask> position===lastTabPosition))
<mask>
<mask> {
<mask> this.updateTabPanel(position,pageOffset);
<mask> this.updateTabUnderline(position,pageOffset,tabCount);
<mask> }
<mask> },
<mask>
<mask> necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
<mask> return(
<mask> this._tabsMeasurements[position]&&(
<mask> isLastTab||this._tabsMeasurements[position+1])&&
<mask> this._tabContainerMeasurements&&
<mask> this._containerMeasurements);
<mask>
<mask> },
<mask>
<mask> updateTabPanel:function updateTabPanel(position,pageOffset){
<mask> var containerWidth=this._containerMeasurements.width;
<mask> var tabWidth=this._tabsMeasurements[position].width;
<mask> var nextTabMeasurements=this._tabsMeasurements[position+1];
<mask> var nextTabWidth=
<mask> nextTabMeasurements&&nextTabMeasurements.width||0;
<mask> var tabOffset=this._tabsMeasurements[position].left;
<mask> var absolutePageOffset=pageOffset*tabWidth;
<mask> var newScrollX=tabOffset+absolutePageOffset;
<mask>
<mask>
<mask> newScrollX-=
<mask> (containerWidth-
<mask> (1-pageOffset)*tabWidth-
<mask> pageOffset*nextTabWidth)/
<mask> 2;
<mask> newScrollX=newScrollX>=0?newScrollX:0;
<mask>
<mask> if(Platform.OS==="android"){
<mask> this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
<mask> }else{
<mask> var rightBoundScroll=
<mask> this._tabContainerMeasurements.width-
<mask> this._containerMeasurements.width;
<mask> newScrollX=
<mask> newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
<mask> this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
<mask> }
<mask> },
<mask>
<mask> updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
<mask> var lineLeft=this._tabsMeasurements[position].left;
<mask> var lineRight=this._tabsMeasurements[position].right;
<mask>
<mask> if(position<tabCount-1){
<mask> var nextTabLeft=this._tabsMeasurements[position+1].left;
<mask> var nextTabRight=this._tabsMeasurements[position+1].right;
<mask>
<mask> var newLineLeft=
<mask> pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
<mask> var newLineRight=
<mask> pageOffset*nextTabRight+(1-pageOffset)*lineRight;
<mask>
<mask> this.state._leftTabUnderline.setValue(newLineLeft);
<mask> this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
<mask> }else{
<mask> this.state._leftTabUnderline.setValue(lineLeft);
<mask> this.state._widthTabUnderline.setValue(lineRight-lineLeft);
<mask> }
<mask> },
<mask>
<mask> renderTab:function renderTab(
<mask> name,
<mask> page,
<mask> isTabActive,
<mask> onPressHandler,
<mask> onLayoutHandler,
<mask> tabStyle,
<mask> activeTabStyle,
<mask> textStyle,
<mask> activeTextStyle,
<mask> tabHeaderStyle)
<mask> {
<mask> var headerContent=
<mask> typeof name!=="string"?name.props.children:undefined;var _props=
<mask> this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
<mask> var textColor=isTabActive?activeTextColor:inactiveTextColor;
<mask> var fontWeight=isTabActive?"bold":"normal";
<mask> var fontSize=tabFontSize;
<mask>
<mask> if(typeof name==="string"){
<mask> return(
<mask> _react2.default.createElement(Button,{
<mask> key:name+"_"+page,
<mask> onPress:function onPress(){return onPressHandler(page);},
<mask> onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
<mask>
<mask> _react2.default.createElement(_index.TabHeading,{
<mask> scrollable:true,
<mask> style:isTabActive?activeTabStyle:tabStyle,
<mask> active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
<mask>
<mask> _react2.default.createElement(_index.Text,{
<mask> style:[
<mask> isTabActive?activeTextStyle:textStyle,
<mask> {fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
<mask>
<mask>
<mask> name))));
<mask>
<mask>
<mask>
<mask>
<mask> }else{
<mask> return(
<mask> _react2.default.createElement(Button,{
<mask> key:_lodash2.default.random(1.2,5.2),
<mask> onPress:function onPress(){return onPressHandler(page);},
<mask> onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
<mask>
<mask> _react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
<mask> headerContent)));
<mask>
<mask>
<mask>
<mask> }
<mask> },
<mask>
<mask> measureTab:function measureTab(page,event){var _event$nativeEvent$la=
<mask> event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
<mask> this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
<mask> this.updateView({value:this.props.scrollValue._value});
<mask> },
<mask>
<mask> render:function render(){var _this=this;
<mask> var variables=this.context.theme?
<mask> this.context.theme["@@shoutem.theme/themeStyle"].variables:
<mask> _platform2.default;
<mask> var tabUnderlineStyle={
<mask> position:"absolute",
<mask> height:4,
<mask> backgroundColor:variables.topTabBarActiveBorderColor,
<mask> bottom:0};
<mask>
<mask>
<mask> var dynamicTabUnderline={
<mask> left:this.state._leftTabUnderline,
<mask> width:this.state._widthTabUnderline};
<mask>
<mask>
<mask> return(
<mask> _react2.default.createElement(View,{
<mask> style:[
<mask> styles.container,
<mask> {backgroundColor:this.props.backgroundColor},
<mask> this.props.style],
<mask>
<mask> onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
<mask>
<mask> _react2.default.createElement(ScrollView,{
<mask> automaticallyAdjustContentInsets:false,
<mask> ref:function ref(scrollView){
<mask> _this._scrollView=scrollView;
<mask> },
<mask> horizontal:true,
<mask> showsHorizontalScrollIndicator:false,
<mask> showsVerticalScrollIndicator:false,
<mask> directionalLockEnabled:true,
<mask> onScroll:this.props.onScroll,
<mask> bounces:false,
<mask> scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
<mask>
<mask> _react2.default.createElement(View,{
<mask> style:[
<mask> styles.tabs,
<mask> {width:this.state._containerWidth},
<mask> this.props.tabsContainerStyle],
<mask>
<mask> ref:"tabContainer",
<mask> onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
<mask>
<mask> this.props.tabs.map(function(name,page){
<mask> var isTabActive=_this.props.activeTab===page;
<mask> var renderTab=_this.props.renderTab||_this.renderTab;
<mask> return renderTab(
<mask> name,
<mask> page,
<mask> isTabActive,
<mask> _this.props.goToPage,
<mask> _this.measureTab.bind(_this,page),
<mask> _this.props.tabStyle[page],
<mask> _this.props.activeTabStyle[page],
<mask> _this.props.textStyle[page],
<mask> _this.props.activeTextStyle[page],
<mask> _this.props.tabHeaderStyle[page]);
<mask>
<mask> }),
<mask> _react2.default.createElement(Animated.View,{
<mask> style:[
<mask> tabUnderlineStyle,
<mask> dynamicTabUnderline,
<mask> this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> },
<mask>
<mask> componentWillReceiveProps:function componentWillReceiveProps(nextProps){
<mask>
<mask> if(
<mask> !_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
<mask> this.state._containerWidth)
<mask> {
<mask> this.setState({_containerWidth:null});
<mask> }
<mask> },
<mask>
<mask> onTabContainerLayout:function onTabContainerLayout(e){
<mask> this._tabContainerMeasurements=e.nativeEvent.layout;
<mask> var width=this._tabContainerMeasurements.width;
<mask> if(width<WINDOW_WIDTH){
<mask> width=WINDOW_WIDTH;
<mask> }
<mask> this.setState({_containerWidth:width});
<mask> this.updateView({value:this.props.scrollValue._value});
<mask> },
<mask>
<mask> onContainerLayout:function onContainerLayout(e){
<mask> this._containerMeasurements=e.nativeEvent.layout;
<mask> this.updateView({value:this.props.scrollValue._value});
<mask> }});
<mask>
<mask>
<mask>
<mask> var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.ScrollableTab",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> ScrollableTabBar);exports.
<mask> ScrollableTab=StyledTab;
<mask> var styles=StyleSheet.create({
<mask> tab:{
<mask> height:49,
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> paddingLeft:20,
<mask> paddingRight:20},
<mask>
<mask> container:{
<mask> height:50,
<mask> borderWidth:1,
<mask> borderTopWidth:0,
<mask> borderLeftWidth:0,
<mask> borderRightWidth:0,
<mask> borderColor:"#ccc"},
<mask>
<mask> tabs:{
<mask> flexDirection:"row",
<mask> justifyContent:"space-around"}});
<mask> //# sourceMappingURL=ScrollableTabBar.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
var React=require("react");var
Component=React.Component;
var ReactNative=require("react-native");var
Dimensions=
ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;
var TimerMixin=require("react-timer-mixin");
var SceneComponent=require("./SceneComponent");var _require=
require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=
require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;
var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",
mixins:[TimerMixin],
statics:{
DefaultTabBar:DefaultTabBar,
ScrollableTabBar:ScrollableTabBar},
propTypes:{
tabBarPosition:_propTypes2.default.oneOf([
"top",
"bottom",
"overlayTop",
"overlayBottom"]),
initialPage:_propTypes2.default.number,
page:_propTypes2.default.number,
onChangeTab:_propTypes2.default.func,
onScroll:_propTypes2.default.func,
renderTabBar:_propTypes2.default.any,
style:_utils.ViewPropTypes.style,
contentProps:_propTypes2.default.object,
scrollWithoutAnimation:_propTypes2.default.bool,
locked:_propTypes2.default.bool,
prerenderingSiblingsNumber:_propTypes2.default.number},
getDefaultProps:function getDefaultProps(){
return{
tabBarPosition:"top",
initialPage:0,
page:-1,
onChangeTab:function onChangeTab(){},
onScroll:function onScroll(){},
contentProps:{},
scrollWithoutAnimation:false,
locked:false,
prerenderingSiblingsNumber:0};
},
getInitialState:function getInitialState(){
return{
currentPage:this.props.initialPage,
scrollValue:new Animated.Value(this.props.initialPage),
containerWidth:Dimensions.get("window").width,
sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};
},
componentDidMount:function componentDidMount(){var _this=this;
var scrollFn=function scrollFn(){
if(_this.scrollView){
_this.state.scrollValue.setValue(_this.props.initialPage);
}
};
_utils.InteractionManager.runAfterInteractions(scrollFn);
},
componentWillReceiveProps:function componentWillReceiveProps(props){
if(props.children!==this.props.children){
this.updateSceneKeys({
page:this.state.currentPage,
children:props.children});
}
if(props.page>=0&&props.page!==this.state.currentPage){
this.goToPage(props.page);
}
},
goToPage:function goToPage(pageNumber){
var offset=pageNumber*this.state.containerWidth;
if(this.scrollView){
this.scrollView.scrollTo({
x:offset,
y:0,
animated:!this.props.scrollWithoutAnimation});
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:pageNumber,
callback:this._onChangeTab.bind(this,currentPage,pageNumber)});
},
renderTabBar:function renderTabBar(props){
if(this.props.renderTabBar===false){
return null;
}else if(this.props.renderTabBar){
return React.cloneElement(this.props.renderTabBar(props),props);
}else{
return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));
}
},
updateSceneKeys:function updateSceneKeys(_ref)
{var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;
var newKeys=this.newSceneKeys({
previousKeys:this.state.sceneKeys,
currentPage:page,
children:children});
this.setState({currentPage:page,sceneKeys:newKeys},callback);
},
newSceneKeys:function newSceneKeys(_ref2)
{var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;
var newKeys=[];
this._children(children).forEach(function(child,idx){
var key=_this2._makeSceneKey(child,idx);
if(
_this2._keyExists(previousKeys,key)||
_this2._shouldRenderSceneKey(idx,currentPage))
{
newKeys.push(key);
}
});
return newKeys;
},
_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){
var numOfSibling=this.props.prerenderingSiblingsNumber;
return(
idx<currentPageKey+numOfSibling+1&&
idx>currentPageKey-numOfSibling-1);
},
_keyExists:function _keyExists(sceneKeys,key){
return sceneKeys.find(function(sceneKey){return key===sceneKey;});
},
_makeSceneKey:function _makeSceneKey(child,idx){
return child.props.heading+"_"+idx;
},
renderScrollableContent:function renderScrollableContent(){var _this3=this;
var scenes=this._composeScenes();
return(
React.createElement(ScrollView,_extends({
horizontal:true,
pagingEnabled:true,
automaticallyAdjustContentInsets:false,
keyboardShouldPersistTaps:"handled",
contentOffset:{
x:this.props.initialPage*this.state.containerWidth},
ref:function ref(scrollView){
_this3.scrollView=scrollView;
},
onScroll:function onScroll(e){
var offsetX=e.nativeEvent.contentOffset.x;
_this3._updateScrollValue(offsetX/_this3.state.containerWidth);
},
onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,
onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,
scrollEventThrottle:16,
scrollsToTop:false,
showsHorizontalScrollIndicator:false,
scrollEnabled:!this.props.locked,
directionalLockEnabled:true,
alwaysBounceVertical:false,
keyboardDismissMode:"on-drag"},
this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),
scenes));
},
_composeScenes:function _composeScenes(){var _this4=this;
return this._children().map(function(child,idx){
var key=_this4._makeSceneKey(child,idx);
return(
React.createElement(SceneComponent,{
key:child.key,
shouldUpdated:_this4._shouldRenderSceneKey(
idx,
_this4.state.currentPage),
style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},
_this4._keyExists(_this4.state.sceneKeys,key)?
child:
React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}})));
});
},
_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){
var offsetX=e.nativeEvent.contentOffset.x;
var page=Math.round(offsetX/this.state.containerWidth);
if(this.state.currentPage!==page){
this._updateSelectedPage(page);
}
},
_updateSelectedPage:function _updateSelectedPage(nextPage){
var localNextPage=nextPage;
if(typeof localNextPage==="object"){
localNextPage=nextPage.nativeEvent.position;
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:localNextPage,
callback:this._onChangeTab.bind(this,currentPage,localNextPage)});
},
_onChangeTab:function _onChangeTab(prevPage,currentPage){
this.props.onChangeTab({
i:currentPage,
ref:this._children()[currentPage],
from:prevPage});
},
_updateScrollValue:function _updateScrollValue(value){
this.state.scrollValue.setValue(value);
this.props.onScroll(value);
},
_handleLayout:function _handleLayout(e){var _this5=this;var
width=e.nativeEvent.layout.width;
if(Math.round(width)!==Math.round(this.state.containerWidth)){
this.setState({containerWidth:width});
this.requestAnimationFrame(function(){
_this5.goToPage(_this5.state.currentPage);
});
}
},
_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;
return React.Children.map(children,function(child){return child;});
},
render:function render(){
var overlayTabs=
this.props.tabBarPosition==="overlayTop"||
this.props.tabBarPosition==="overlayBottom";
var tabBarProps={
goToPage:this.goToPage,
tabs:this._children().map(function(child){return child.props.heading;}),
tabStyle:this._children().map(function(child){return child.props.tabStyle;}),
activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),
textStyle:this._children().map(function(child){return child.props.textStyle;}),
activeTextStyle:this._children().map(
function(child){return child.props.activeTextStyle;}),
tabHeaderStyle:this._children().map(function(child){return(
_lodash2.default.get(child.props.heading.props,"style",undefined));}),
activeTab:this.state.currentPage,
scrollValue:this.state.scrollValue,
containerWidth:this.state.containerWidth};
if(this.props.tabBarBackgroundColor){
tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;
}
if(this.props.tabBarActiveTextColor){
tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;
}
if(this.props.tabBarInactiveTextColor){
tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;
}
if(this.props.tabBarTextStyle){
tabBarProps.textStyle=this.props.tabBarTextStyle;
}
if(this.props.tabBarUnderlineStyle){
tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;
}
if(this.props.tabContainerStyle){
tabBarProps.tabContainerStyle=this.props.tabContainerStyle;
}
if(overlayTabs){var _tabBarProps$style;
tabBarProps.style=(_tabBarProps$style={
position:"absolute",
left:0,
right:0},_defineProperty(_tabBarProps$style,
this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor",
"rgba(255, 255, 255, 0.7)"),_tabBarProps$style);
}
return(
React.createElement(View,{
style:[styles.container,this.props.style],
onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},
(this.props.tabBarPosition==="top"||
this.props.tabBarPosition==="overlayTop")&&
this.renderTabBar(tabBarProps),
this.renderScrollableContent(),
(this.props.tabBarPosition==="bottom"||
this.props.tabBarPosition==="overlayBottom")&&
this.renderTabBar(tabBarProps)));
}});exports.default=
ScrollableTabView;
var styles=StyleSheet.create({
container:{
flex:1},
scrollableContentAndroid:{
flex:1}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var React=require("react");var Component=React.Component;var ReactNative=require("react-native");var Dimensions=ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;var TimerMixin=require("react-timer-mixin");var SceneComponent=require("./SceneComponent");var _require=require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",mixins:[TimerMixin],statics:{DefaultTabBar:DefaultTabBar,ScrollableTabBar:ScrollableTabBar},propTypes:{tabBarPosition:_propTypes2.default.oneOf(["top","bottom","overlayTop","overlayBottom"]),initialPage:_propTypes2.default.number,page:_propTypes2.default.number,onChangeTab:_propTypes2.default.func,onScroll:_propTypes2.default.func,renderTabBar:_propTypes2.default.any,style:_utils.ViewPropTypes.style,contentProps:_propTypes2.default.object,scrollWithoutAnimation:_propTypes2.default.bool,locked:_propTypes2.default.bool,prerenderingSiblingsNumber:_propTypes2.default.number},getDefaultProps:function getDefaultProps(){return{tabBarPosition:"top",initialPage:0,page:-1,onChangeTab:function onChangeTab(){},onScroll:function onScroll(){},contentProps:{},scrollWithoutAnimation:false,locked:false,prerenderingSiblingsNumber:0};},getInitialState:function getInitialState(){return{currentPage:this.props.initialPage,scrollValue:new Animated.Value(this.props.initialPage),containerWidth:Dimensions.get("window").width,sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};},componentDidMount:function componentDidMount(){var _this=this;var scrollFn=function scrollFn(){if(_this.scrollView){_this.state.scrollValue.setValue(_this.props.initialPage);}};_utils.InteractionManager.runAfterInteractions(scrollFn);},componentWillReceiveProps:function componentWillReceiveProps(props){if(props.children!==this.props.children){this.updateSceneKeys({page:this.state.currentPage,children:props.children});}if(props.page>=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idx<currentPageKey+numOfSibling+1&&idx>currentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var SWIPE_THRESHOLD=120;var
DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);
function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,
props));
_this.state={
pan:new _reactNative.Animated.ValueXY(),
pan2:new _reactNative.Animated.ValueXY(),
enter:new _reactNative.Animated.Value(0.8),
selectedItem:_this.props.dataSource[0],
selectedItem2:_this.props.dataSource[1],
card1Top:true,
card2Top:false,
fadeAnim:new _reactNative.Animated.Value(0.8),
looping:
typeof _this.props.looping==="undefined"?true:_this.props.looping,
disabled:_this.props.dataSource.length===0,
lastCard:_this.props.dataSource.length===1};return _this;
}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref)
{var dataSource=_ref.dataSource;
if(dataSource.length!==this.props.dataSource.length){
if(dataSource.length<=1){
this.setState(_extends({},
this.state,{
selectedItem:dataSource[0],
selectedItem2:undefined,
disabled:dataSource.length===0,
lastCard:dataSource.length===1}));
return;
}
var visibleIndex=dataSource.indexOf(this.state.selectedItem);
var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;
var nextIndex=
currentIndex+1===dataSource.length?0:currentIndex+1;
this.setState({
selectedItem:dataSource[currentIndex],
selectedItem2:dataSource[nextIndex]});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
topCard:{
position:"absolute",
top:0,
right:0,
left:0}};
}},{key:"findNextIndexes",value:function findNextIndexes(
currentIndex){
var newIdx=currentIndex+1;
var newIdx2=currentIndex+2;
if(
newIdx2>this.props.dataSource.length-1&&
newIdx===this.props.dataSource.length-1)
{
return[newIdx,0];
}else if(newIdx>this.props.dataSource.length-1){
return[0,1];
}
return[newIdx,newIdx2];
}},{key:"selectNext",value:function selectNext()
{var _this2=this;
var dataSource=this.props.dataSource;
var currentIndex=dataSource.indexOf(this.state.selectedItem);
if(!this.state.looping){
if(currentIndex===dataSource.length-1){
return this.setState({
disabled:true});
}else if(currentIndex===dataSource.length-2){
return setTimeout(function(){
_this2.setState({
selectedItem:dataSource[currentIndex+1]});
setTimeout(function(){
_this2.setState({
lastCard:true});
},350);
},50);
}
}
var nextIndexes=this.findNextIndexes(currentIndex);
setTimeout(function(){
_this2.setState({
selectedItem:_this2.props.dataSource[nextIndexes[0]]});
setTimeout(function(){
_this2.setState({
selectedItem2:_this2.props.dataSource[nextIndexes[1]]});
},350);
},50);
}},{key:"swipeRight",value:function swipeRight()
{var _this3=this;
if(this.props.onSwiping)this.props.onSwiping("right");
setTimeout(function(){
_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();
_this3.selectNext();
_reactNative.Animated.decay(_this3.state.pan,{
velocity:{x:8,y:1},
deceleration:0.98}).
start(_this3._resetState.bind(_this3));
},300);
}},{key:"swipeLeft",value:function swipeLeft()
{var _this4=this;
if(this.props.onSwiping)this.props.onSwiping("left");
setTimeout(function(){
_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();
_this4.selectNext();
_reactNative.Animated.decay(_this4.state.pan,{
velocity:{x:-8,y:1},
deceleration:0.98}).
start(_this4._resetState.bind(_this4));
},300);
}},{key:"componentWillMount",value:function componentWillMount()
{var _this5=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},
onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return(
Math.abs(gestureState.dx)>5);},
onPanResponderGrant:function onPanResponderGrant(e,gestureState){
_this5.state.pan.setOffset({
x:_this5.state.pan.x._value,
y:_this5.state.pan.y._value});
_this5.state.pan.setValue({x:0,y:0});
},
onPanResponderMove:function onPanResponderMove(e,gestureState){
if(gestureState.dx>20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("right",gestureState.dx);
}else if(gestureState.dx<-20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("left",gestureState.dx);
}
var val=Math.abs(gestureState.dx*0.0013);
var opa=Math.abs(gestureState.dx*0.0022);
if(val>0.2){
val=0.2;
}
_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();
_reactNative.Animated.spring(_this5.state.enter,{
toValue:0.8+val,
friction:7}).
start();
_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);
},
onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;
if(_this5.props.onSwiping)_this5.props.onSwiping(null);
var velocity=void 0;
if(vx>=0){
velocity=(0,_clamp2.default)(vx,4.5,10);
}else if(vx<0){
velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;
}
if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){
if(velocity>0){
_this5.props.onSwipeRight?
_this5.props.onSwipeRight(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}else{
_this5.props.onSwipeLeft?
_this5.props.onSwipeLeft(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}
_reactNative.Animated.decay(_this5.state.pan,{
velocity:{x:velocity,y:vy},
deceleration:0.98}).
start(_this5._resetState.bind(_this5));
}else{
_reactNative.Animated.spring(_this5.state.pan,{
toValue:{x:0,y:0},
friction:4}).
start();
}
}});
}},{key:"_resetState",value:function _resetState()
{
this.state.pan.setValue({x:0,y:0});
this.state.enter.setValue(0.8);
this.state.fadeAnim.setValue(0.8);
this.setState({
card1Top:!this.state.card1Top,
card2Top:!this.state.card2Top});
if(this.props.onSwiping)this.props.onSwiping(null);
}},{key:"getCardStyles",value:function getCardStyles()
{var _state=
this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=
[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];
var rotate=pan.x.interpolate({
inputRange:[-700,0,700],
outputRange:["-10deg","0deg","10deg"]});
var opacity=pan.x.interpolate({
inputRange:[-320,0,320],
outputRange:[0.9,1,0.9]});
var scale=enter;
var animatedCardStyles={
transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],
opacity:opacity};
var animatedCardStyles2={transform:[{scale:scale}]};
return[animatedCardStyles,animatedCardStyles2];
}},{key:"render",value:function render()
{
if(this.state.disabled){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())));
}else if(this.state.lastCard){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),
this.props.renderEmpty&&this.props.renderEmpty()),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[0],
this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),
this.props.renderItem(this.state.selectedItem)))));
}
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),
this.props.renderBottom?
this.props.renderBottom(this.state.selectedItem2):
this.props.renderItem(this.state.selectedItem2)),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),
this.props.renderTop?
this.props.renderTop(this.state.selectedItem):
this.props.renderItem(this.state.selectedItem)))));
}}]);return DeckSwiper;}(_react.Component);
DeckSwiper.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataSource:_propTypes2.default.array});
var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DeckSwiper",
{},
_mapPropsToStyleNames2.default)(
DeckSwiper);exports.
DeckSwiper=StyledDeckSwiper;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var SWIPE_THRESHOLD=120;var DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,props));_this.state={pan:new _reactNative.Animated.ValueXY(),pan2:new _reactNative.Animated.ValueXY(),enter:new _reactNative.Animated.Value(0.8),selectedItem:_this.props.dataSource[0],selectedItem2:_this.props.dataSource[1],card1Top:true,card2Top:false,fadeAnim:new _reactNative.Animated.Value(0.8),looping:typeof _this.props.looping==="undefined"?true:_this.props.looping,disabled:_this.props.dataSource.length===0,lastCard:_this.props.dataSource.length===1};return _this;}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var dataSource=_ref.dataSource;if(dataSource.length!==this.props.dataSource.length){if(dataSource.length<=1){this.setState(_extends({},this.state,{selectedItem:dataSource[0],selectedItem2:undefined,disabled:dataSource.length===0,lastCard:dataSource.length===1}));return;}var visibleIndex=dataSource.indexOf(this.state.selectedItem);var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;var nextIndex=currentIndex+1===dataSource.length?0:currentIndex+1;this.setState({selectedItem:dataSource[currentIndex],selectedItem2:dataSource[nextIndex]});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{topCard:{position:"absolute",top:0,right:0,left:0}};}},{key:"findNextIndexes",value:function findNextIndexes(currentIndex){var newIdx=currentIndex+1;var newIdx2=currentIndex+2;if(newIdx2>this.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/ScrollableTabBar.js |
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var React=require("react");var StaticContainer=function(_React$Component){_inherits(StaticContainer,_React$Component);function StaticContainer(){_classCallCheck(this,StaticContainer);return _possibleConstructorReturn(this,(StaticContainer.__proto__||Object.getPrototypeOf(StaticContainer)).apply(this,arguments));}_createClass(StaticContainer,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){return!!nextProps.shouldUpdate;}},{key:"render",value:function render(){var child=this.props.children;if(child===null||child===false){return null;}return React.Children.only(child);}}]);return StaticContainer;}(React.Component);module.exports=StaticContainer; | <mask> var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var React=require("react");var
<mask>
<mask> StaticContainer=function(_React$Component){_inherits(StaticContainer,_React$Component);function StaticContainer(){_classCallCheck(this,StaticContainer);return _possibleConstructorReturn(this,(StaticContainer.__proto__||Object.getPrototypeOf(StaticContainer)).apply(this,arguments));}_createClass(StaticContainer,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(
<mask> nextProps){
<mask> return!!nextProps.shouldUpdate;
<mask> }},{key:"render",value:function render()
<mask>
<mask> {
<mask> var child=this.props.children;
<mask> if(child===null||child===false){
<mask> return null;
<mask> }
<mask> return React.Children.only(child);
<mask> }}]);return StaticContainer;}(React.Component);
<mask>
<mask>
<mask> module.exports=StaticContainer;
<mask> //# sourceMappingURL=StaticContainer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Toast=require("./Toast");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ToastContainer=function(_Component){_inherits(ToastContainer,_Component);
function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,
props));
_this.state={
modalVisible:false,
fadeAnim:new _reactNative.Animated.Value(0)};return _this;
}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle()
{
return{
position:"absolute",
opacity:this.state.fadeAnim,
width:"100%",
elevation:9,
paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,
top:this.state.position==="top"?this.getTop():undefined,
bottom:this.state.position==="bottom"?this.getTop():undefined};
}},{key:"getTop",value:function getTop()
{
if(_reactNative.Platform.OS==="ios"){
return 30;
}else{
return 0;
}
}},{key:"getButtonText",value:function getButtonText(
buttonText){
if(buttonText){
if(buttonText.trim().length===0){
return undefined;
}else return buttonText;
}
return undefined;
}},{key:"showToast",value:function showToast(_ref)
{var config=_ref.config;
this.setState({
modalVisible:true,
text:config.text,
buttonText:this.getButtonText(config.buttonText),
type:config.type,
position:config.position?config.position:"bottom",
supportedOrientations:config.supportedOrientations,
style:config.style,
buttonTextStyle:config.buttonTextStyle,
buttonStyle:config.buttonStyle,
textStyle:config.textStyle,
onClose:config.onClose});
if(this.closeTimeout){
clearTimeout(this.closeTimeout);
}
if(config.duration!==0){
var duration=config.duration>0?config.duration:1500;
this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);
}
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:1,
duration:200}).
start();
}},{key:"closeModal",value:function closeModal(
reason){
this.setState({
modalVisible:false});var
onClose=this.state.onClose;
if(onClose&&typeof onClose==="function"){
onClose(reason);
}
}},{key:"closeToast",value:function closeToast(
reason){
clearTimeout(this.closeTimeout);
_reactNative.Animated.timing(this.state.fadeAnim,{
toValue:0,
duration:200}).
start(this.closeModal.bind(this,reason));
}},{key:"render",value:function render()
{var _this2=this;
if(this.state.modalVisible){
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},
_react2.default.createElement(_Toast.Toast,{
style:this.state.style,
danger:this.state.type=="danger"?true:false,
success:this.state.type=="success"?true:false,
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),
this.state.buttonText&&
_react2.default.createElement(_Button.Button,{
style:this.state.buttonStyle,
onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},
_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},
this.state.buttonText)))));
}else return null;
}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);
ToastContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ToastContainer",
{},
_mapPropsToStyleNames2.default)(
ToastContainer);exports.
ToastContainer=StyledToastContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Toast=require("./Toast");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/StaticContainer.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var React=require("react");var Component=React.Component;var ReactNative=require("react-native");var Dimensions=ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;var TimerMixin=require("react-timer-mixin");var SceneComponent=require("./SceneComponent");var _require=require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",mixins:[TimerMixin],statics:{DefaultTabBar:DefaultTabBar,ScrollableTabBar:ScrollableTabBar},propTypes:{tabBarPosition:_propTypes2.default.oneOf(["top","bottom","overlayTop","overlayBottom"]),initialPage:_propTypes2.default.number,page:_propTypes2.default.number,onChangeTab:_propTypes2.default.func,onScroll:_propTypes2.default.func,renderTabBar:_propTypes2.default.any,style:_utils.ViewPropTypes.style,contentProps:_propTypes2.default.object,scrollWithoutAnimation:_propTypes2.default.bool,locked:_propTypes2.default.bool,prerenderingSiblingsNumber:_propTypes2.default.number},getDefaultProps:function getDefaultProps(){return{tabBarPosition:"top",initialPage:0,page:-1,onChangeTab:function onChangeTab(){},onScroll:function onScroll(){},contentProps:{},scrollWithoutAnimation:false,locked:false,prerenderingSiblingsNumber:0};},getInitialState:function getInitialState(){return{currentPage:this.props.initialPage,scrollValue:new Animated.Value(this.props.initialPage),containerWidth:Dimensions.get("window").width,sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};},componentDidMount:function componentDidMount(){var _this=this;var scrollFn=function scrollFn(){if(_this.scrollView){_this.state.scrollValue.setValue(_this.props.initialPage);}};_utils.InteractionManager.runAfterInteractions(scrollFn);},componentWillReceiveProps:function componentWillReceiveProps(props){if(props.children!==this.props.children){this.updateSceneKeys({page:this.state.currentPage,children:props.children});}if(props.page>=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idx<currentPageKey+numOfSibling+1&&idx>currentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
<mask> var React=require("react");var
<mask> Component=React.Component;
<mask> var ReactNative=require("react-native");var
<mask>
<mask> Dimensions=
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;
<mask> var TimerMixin=require("react-timer-mixin");
<mask>
<mask> var SceneComponent=require("./SceneComponent");var _require=
<mask> require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=
<mask> require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;
<mask>
<mask> var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",
<mask> mixins:[TimerMixin],
<mask> statics:{
<mask> DefaultTabBar:DefaultTabBar,
<mask> ScrollableTabBar:ScrollableTabBar},
<mask>
<mask>
<mask> propTypes:{
<mask> tabBarPosition:_propTypes2.default.oneOf([
<mask> "top",
<mask> "bottom",
<mask> "overlayTop",
<mask> "overlayBottom"]),
<mask>
<mask> initialPage:_propTypes2.default.number,
<mask> page:_propTypes2.default.number,
<mask> onChangeTab:_propTypes2.default.func,
<mask> onScroll:_propTypes2.default.func,
<mask> renderTabBar:_propTypes2.default.any,
<mask> style:_utils.ViewPropTypes.style,
<mask> contentProps:_propTypes2.default.object,
<mask> scrollWithoutAnimation:_propTypes2.default.bool,
<mask> locked:_propTypes2.default.bool,
<mask> prerenderingSiblingsNumber:_propTypes2.default.number},
<mask>
<mask>
<mask> getDefaultProps:function getDefaultProps(){
<mask> return{
<mask> tabBarPosition:"top",
<mask> initialPage:0,
<mask> page:-1,
<mask> onChangeTab:function onChangeTab(){},
<mask> onScroll:function onScroll(){},
<mask> contentProps:{},
<mask> scrollWithoutAnimation:false,
<mask> locked:false,
<mask> prerenderingSiblingsNumber:0};
<mask>
<mask> },
<mask>
<mask> getInitialState:function getInitialState(){
<mask> return{
<mask> currentPage:this.props.initialPage,
<mask> scrollValue:new Animated.Value(this.props.initialPage),
<mask> containerWidth:Dimensions.get("window").width,
<mask> sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};
<mask>
<mask> },
<mask>
<mask> componentDidMount:function componentDidMount(){var _this=this;
<mask> var scrollFn=function scrollFn(){
<mask> if(_this.scrollView){
<mask> _this.state.scrollValue.setValue(_this.props.initialPage);
<mask> }
<mask> };
<mask> _utils.InteractionManager.runAfterInteractions(scrollFn);
<mask> },
<mask>
<mask> componentWillReceiveProps:function componentWillReceiveProps(props){
<mask> if(props.children!==this.props.children){
<mask> this.updateSceneKeys({
<mask> page:this.state.currentPage,
<mask> children:props.children});
<mask>
<mask> }
<mask>
<mask> if(props.page>=0&&props.page!==this.state.currentPage){
<mask> this.goToPage(props.page);
<mask> }
<mask> },
<mask>
<mask> goToPage:function goToPage(pageNumber){
<mask> var offset=pageNumber*this.state.containerWidth;
<mask> if(this.scrollView){
<mask> this.scrollView.scrollTo({
<mask> x:offset,
<mask> y:0,
<mask> animated:!this.props.scrollWithoutAnimation});
<mask>
<mask> }
<mask>
<mask> var currentPage=this.state.currentPage;
<mask> this.updateSceneKeys({
<mask> page:pageNumber,
<mask> callback:this._onChangeTab.bind(this,currentPage,pageNumber)});
<mask>
<mask> },
<mask>
<mask> renderTabBar:function renderTabBar(props){
<mask> if(this.props.renderTabBar===false){
<mask> return null;
<mask> }else if(this.props.renderTabBar){
<mask> return React.cloneElement(this.props.renderTabBar(props),props);
<mask> }else{
<mask> return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));
<mask> }
<mask> },
<mask>
<mask> updateSceneKeys:function updateSceneKeys(_ref)
<mask>
<mask>
<mask>
<mask> {var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;
<mask> var newKeys=this.newSceneKeys({
<mask> previousKeys:this.state.sceneKeys,
<mask> currentPage:page,
<mask> children:children});
<mask>
<mask> this.setState({currentPage:page,sceneKeys:newKeys},callback);
<mask> },
<mask>
<mask> newSceneKeys:function newSceneKeys(_ref2)
<mask>
<mask>
<mask>
<mask> {var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;
<mask> var newKeys=[];
<mask> this._children(children).forEach(function(child,idx){
<mask> var key=_this2._makeSceneKey(child,idx);
<mask> if(
<mask> _this2._keyExists(previousKeys,key)||
<mask> _this2._shouldRenderSceneKey(idx,currentPage))
<mask> {
<mask> newKeys.push(key);
<mask> }
<mask> });
<mask> return newKeys;
<mask> },
<mask>
<mask> _shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){
<mask> var numOfSibling=this.props.prerenderingSiblingsNumber;
<mask> return(
<mask> idx<currentPageKey+numOfSibling+1&&
<mask> idx>currentPageKey-numOfSibling-1);
<mask>
<mask> },
<mask>
<mask> _keyExists:function _keyExists(sceneKeys,key){
<mask> return sceneKeys.find(function(sceneKey){return key===sceneKey;});
<mask> },
<mask>
<mask> _makeSceneKey:function _makeSceneKey(child,idx){
<mask> return child.props.heading+"_"+idx;
<mask> },
<mask>
<mask> renderScrollableContent:function renderScrollableContent(){var _this3=this;
<mask> var scenes=this._composeScenes();
<mask> return(
<mask> React.createElement(ScrollView,_extends({
<mask> horizontal:true,
<mask> pagingEnabled:true,
<mask> automaticallyAdjustContentInsets:false,
<mask> keyboardShouldPersistTaps:"handled",
<mask> contentOffset:{
<mask> x:this.props.initialPage*this.state.containerWidth},
<mask>
<mask> ref:function ref(scrollView){
<mask> _this3.scrollView=scrollView;
<mask> },
<mask> onScroll:function onScroll(e){
<mask> var offsetX=e.nativeEvent.contentOffset.x;
<mask> _this3._updateScrollValue(offsetX/_this3.state.containerWidth);
<mask> },
<mask> onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,
<mask> onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,
<mask> scrollEventThrottle:16,
<mask> scrollsToTop:false,
<mask> showsHorizontalScrollIndicator:false,
<mask> scrollEnabled:!this.props.locked,
<mask> directionalLockEnabled:true,
<mask> alwaysBounceVertical:false,
<mask> keyboardDismissMode:"on-drag"},
<mask> this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),
<mask>
<mask> scenes));
<mask>
<mask>
<mask> },
<mask>
<mask> _composeScenes:function _composeScenes(){var _this4=this;
<mask> return this._children().map(function(child,idx){
<mask> var key=_this4._makeSceneKey(child,idx);
<mask> return(
<mask> React.createElement(SceneComponent,{
<mask> key:child.key,
<mask> shouldUpdated:_this4._shouldRenderSceneKey(
<mask> idx,
<mask> _this4.state.currentPage),
<mask>
<mask> style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},
<mask>
<mask> _this4._keyExists(_this4.state.sceneKeys,key)?
<mask> child:
<mask>
<mask> React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}})));
<mask>
<mask>
<mask>
<mask> });
<mask> },
<mask>
<mask> _onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){
<mask> var offsetX=e.nativeEvent.contentOffset.x;
<mask> var page=Math.round(offsetX/this.state.containerWidth);
<mask> if(this.state.currentPage!==page){
<mask> this._updateSelectedPage(page);
<mask> }
<mask> },
<mask>
<mask> _updateSelectedPage:function _updateSelectedPage(nextPage){
<mask> var localNextPage=nextPage;
<mask> if(typeof localNextPage==="object"){
<mask> localNextPage=nextPage.nativeEvent.position;
<mask> }
<mask>
<mask> var currentPage=this.state.currentPage;
<mask> this.updateSceneKeys({
<mask> page:localNextPage,
<mask> callback:this._onChangeTab.bind(this,currentPage,localNextPage)});
<mask>
<mask> },
<mask>
<mask> _onChangeTab:function _onChangeTab(prevPage,currentPage){
<mask> this.props.onChangeTab({
<mask> i:currentPage,
<mask> ref:this._children()[currentPage],
<mask> from:prevPage});
<mask>
<mask> },
<mask>
<mask> _updateScrollValue:function _updateScrollValue(value){
<mask> this.state.scrollValue.setValue(value);
<mask> this.props.onScroll(value);
<mask> },
<mask>
<mask> _handleLayout:function _handleLayout(e){var _this5=this;var
<mask> width=e.nativeEvent.layout.width;
<mask>
<mask> if(Math.round(width)!==Math.round(this.state.containerWidth)){
<mask> this.setState({containerWidth:width});
<mask> this.requestAnimationFrame(function(){
<mask> _this5.goToPage(_this5.state.currentPage);
<mask> });
<mask> }
<mask> },
<mask>
<mask> _children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;
<mask> return React.Children.map(children,function(child){return child;});
<mask> },
<mask>
<mask> render:function render(){
<mask> var overlayTabs=
<mask> this.props.tabBarPosition==="overlayTop"||
<mask> this.props.tabBarPosition==="overlayBottom";
<mask> var tabBarProps={
<mask> goToPage:this.goToPage,
<mask> tabs:this._children().map(function(child){return child.props.heading;}),
<mask> tabStyle:this._children().map(function(child){return child.props.tabStyle;}),
<mask> activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),
<mask> textStyle:this._children().map(function(child){return child.props.textStyle;}),
<mask> activeTextStyle:this._children().map(
<mask> function(child){return child.props.activeTextStyle;}),
<mask>
<mask> tabHeaderStyle:this._children().map(function(child){return(
<mask> _lodash2.default.get(child.props.heading.props,"style",undefined));}),
<mask>
<mask> activeTab:this.state.currentPage,
<mask> scrollValue:this.state.scrollValue,
<mask> containerWidth:this.state.containerWidth};
<mask>
<mask>
<mask> if(this.props.tabBarBackgroundColor){
<mask> tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;
<mask> }
<mask> if(this.props.tabBarActiveTextColor){
<mask> tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;
<mask> }
<mask> if(this.props.tabBarInactiveTextColor){
<mask> tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;
<mask> }
<mask> if(this.props.tabBarTextStyle){
<mask> tabBarProps.textStyle=this.props.tabBarTextStyle;
<mask> }
<mask> if(this.props.tabBarUnderlineStyle){
<mask> tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;
<mask> }
<mask> if(this.props.tabContainerStyle){
<mask> tabBarProps.tabContainerStyle=this.props.tabContainerStyle;
<mask> }
<mask> if(overlayTabs){var _tabBarProps$style;
<mask> tabBarProps.style=(_tabBarProps$style={
<mask> position:"absolute",
<mask> left:0,
<mask> right:0},_defineProperty(_tabBarProps$style,
<mask> this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor",
<mask> "rgba(255, 255, 255, 0.7)"),_tabBarProps$style);
<mask>
<mask> }
<mask>
<mask> return(
<mask> React.createElement(View,{
<mask> style:[styles.container,this.props.style],
<mask> onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},
<mask>
<mask> (this.props.tabBarPosition==="top"||
<mask> this.props.tabBarPosition==="overlayTop")&&
<mask> this.renderTabBar(tabBarProps),
<mask> this.renderScrollableContent(),
<mask> (this.props.tabBarPosition==="bottom"||
<mask> this.props.tabBarPosition==="overlayBottom")&&
<mask> this.renderTabBar(tabBarProps)));
<mask>
<mask>
<mask> }});exports.default=
<mask>
<mask>
<mask> ScrollableTabView;
<mask>
<mask> var styles=StyleSheet.create({
<mask> container:{
<mask> flex:1},
<mask>
<mask> scrollableContentAndroid:{
<mask> flex:1}});
<mask> //# sourceMappingURL=index.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var Button=require("./Button");
var ReactNative=require("react-native");var
View=
ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
var WINDOW_WIDTH=Dimensions.get("window").width;
var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
scrollOffset:_propTypes2.default.number,
style:_utils.ViewPropTypes.style,
tabStyle:_utils.ViewPropTypes.style,
tabsContainerStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
onScroll:_propTypes2.default.func},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
scrollOffset:52,
activeTextColor:"navy",
inactiveTextColor:"black",
backgroundColor:_platform2.default.tabDefaultBg,
style:{},
tabStyle:{},
tabsContainerStyle:{},
underlineStyle:{},
tabFontSize:_platform2.default.tabFontSize};
},
getInitialState:function getInitialState(){
this._tabsMeasurements=[];
return{
_leftTabUnderline:new Animated.Value(0),
_widthTabUnderline:new Animated.Value(0),
_containerWidth:null};
},
componentDidMount:function componentDidMount(){
this.props.scrollValue.addListener(this.updateView);
},
updateView:function updateView(offset){
var position=Math.floor(offset.value);
var pageOffset=offset.value%1;
var tabCount=this.props.tabs.length;
var lastTabPosition=tabCount-1;
if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
return;
}
if(
this.necessarilyMeasurementsCompleted(
position,
position===lastTabPosition))
{
this.updateTabPanel(position,pageOffset);
this.updateTabUnderline(position,pageOffset,tabCount);
}
},
necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
return(
this._tabsMeasurements[position]&&(
isLastTab||this._tabsMeasurements[position+1])&&
this._tabContainerMeasurements&&
this._containerMeasurements);
},
updateTabPanel:function updateTabPanel(position,pageOffset){
var containerWidth=this._containerMeasurements.width;
var tabWidth=this._tabsMeasurements[position].width;
var nextTabMeasurements=this._tabsMeasurements[position+1];
var nextTabWidth=
nextTabMeasurements&&nextTabMeasurements.width||0;
var tabOffset=this._tabsMeasurements[position].left;
var absolutePageOffset=pageOffset*tabWidth;
var newScrollX=tabOffset+absolutePageOffset;
newScrollX-=
(containerWidth-
(1-pageOffset)*tabWidth-
pageOffset*nextTabWidth)/
2;
newScrollX=newScrollX>=0?newScrollX:0;
if(Platform.OS==="android"){
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}else{
var rightBoundScroll=
this._tabContainerMeasurements.width-
this._containerMeasurements.width;
newScrollX=
newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}
},
updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
var lineLeft=this._tabsMeasurements[position].left;
var lineRight=this._tabsMeasurements[position].right;
if(position<tabCount-1){
var nextTabLeft=this._tabsMeasurements[position+1].left;
var nextTabRight=this._tabsMeasurements[position+1].right;
var newLineLeft=
pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
var newLineRight=
pageOffset*nextTabRight+(1-pageOffset)*lineRight;
this.state._leftTabUnderline.setValue(newLineLeft);
this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
}else{
this.state._leftTabUnderline.setValue(lineLeft);
this.state._widthTabUnderline.setValue(lineRight-lineLeft);
}
},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
onLayoutHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
key:name+"_"+page,
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
_react2.default.createElement(_index.TabHeading,{
scrollable:true,
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
name))));
}else{
return(
_react2.default.createElement(Button,{
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
headerContent)));
}
},
measureTab:function measureTab(page,event){var _event$nativeEvent$la=
event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
this.updateView({value:this.props.scrollValue._value});
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var tabUnderlineStyle={
position:"absolute",
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var dynamicTabUnderline={
left:this.state._leftTabUnderline,
width:this.state._widthTabUnderline};
return(
_react2.default.createElement(View,{
style:[
styles.container,
{backgroundColor:this.props.backgroundColor},
this.props.style],
onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(ScrollView,{
automaticallyAdjustContentInsets:false,
ref:function ref(scrollView){
_this._scrollView=scrollView;
},
horizontal:true,
showsHorizontalScrollIndicator:false,
showsVerticalScrollIndicator:false,
directionalLockEnabled:true,
onScroll:this.props.onScroll,
bounces:false,
scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
_react2.default.createElement(View,{
style:[
styles.tabs,
{width:this.state._containerWidth},
this.props.tabsContainerStyle],
ref:"tabContainer",
onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
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]);
}),
_react2.default.createElement(Animated.View,{
style:[
tabUnderlineStyle,
dynamicTabUnderline,
this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
},
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
if(
!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
this.state._containerWidth)
{
this.setState({_containerWidth:null});
}
},
onTabContainerLayout:function onTabContainerLayout(e){
this._tabContainerMeasurements=e.nativeEvent.layout;
var width=this._tabContainerMeasurements.width;
if(width<WINDOW_WIDTH){
width=WINDOW_WIDTH;
}
this.setState({_containerWidth:width});
this.updateView({value:this.props.scrollValue._value});
},
onContainerLayout:function onContainerLayout(e){
this._containerMeasurements=e.nativeEvent.layout;
this.updateView({value:this.props.scrollValue._value});
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ScrollableTab",
{},
_mapPropsToStyleNames2.default)(
ScrollableTabBar);exports.
ScrollableTab=StyledTab;
var styles=StyleSheet.create({
tab:{
height:49,
alignItems:"center",
justifyContent:"center",
paddingLeft:20,
paddingRight:20},
container:{
height:50,
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderColor:"#ccc"},
tabs:{
flexDirection:"row",
justifyContent:"space-around"}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);
var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var deviceHeight=_reactNative.Dimensions.get("window").height;
var deviceWidth=_reactNative.Dimensions.get("window").width;
var platform=_reactNative.Platform.OS;
var platformStyle=undefined;
var isIphoneX=
platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default=
{
platformStyle:platformStyle,
platform:platform,
headerStyle:"#edebed",
iconStyle:"#000",
contentStyle:"#f5f4f5",
expandedIconStyle:"#000",
accordionBorderColor:"#d3d3d3",
androidRipple:true,
androidRippleColor:"rgba(256, 256, 256, 0.3)",
androidRippleColorDark:"rgba(0, 0, 0, 0.15)",
btnUppercaseAndroidText:true,
badgeBg:"#ED1727",
badgeColor:"#fff",
badgePadding:platform==="ios"?3:0,
btnFontFamily:platform==="ios"?"System":"Roboto_medium",
btnDisabledBg:"#b5b5b5",
buttonPadding:6,
get btnPrimaryBg(){
return this.brandPrimary;
},
get btnPrimaryColor(){
return this.inverseTextColor;
},
get btnInfoBg(){
return this.brandInfo;
},
get btnInfoColor(){
return this.inverseTextColor;
},
get btnSuccessBg(){
return this.brandSuccess;
},
get btnSuccessColor(){
return this.inverseTextColor;
},
get btnDangerBg(){
return this.brandDanger;
},
get btnDangerColor(){
return this.inverseTextColor;
},
get btnWarningBg(){
return this.brandWarning;
},
get btnWarningColor(){
return this.inverseTextColor;
},
get btnTextSize(){
return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;
},
get btnTextSizeLarge(){
return this.fontSizeBase*1.5;
},
get btnTextSizeSmall(){
return this.fontSizeBase*0.8;
},
get borderRadiusLarge(){
return this.fontSizeBase*3.8;
},
get iconSizeLarge(){
return this.iconFontSize*1.5;
},
get iconSizeSmall(){
return this.iconFontSize*0.6;
},
cardDefaultBg:"#fff",
cardBorderColor:"#ccc",
cardBorderRadius:2,
cardItemPadding:platform==="ios"?10:12,
CheckboxRadius:platform==="ios"?13:0,
CheckboxBorderWidth:platform==="ios"?1:2,
CheckboxPaddingLeft:platform==="ios"?4:2,
CheckboxPaddingBottom:platform==="ios"?0:5,
CheckboxIconSize:platform==="ios"?21:16,
CheckboxIconMarginTop:platform==="ios"?undefined:1,
CheckboxFontSize:platform==="ios"?23/0.9:17,
checkboxBgColor:"#039BE5",
checkboxSize:20,
checkboxTickColor:"#fff",
brandPrimary:platform==="ios"?"#007aff":"#3F51B5",
brandInfo:"#62B1F6",
brandSuccess:"#5cb85c",
brandDanger:"#d9534f",
brandWarning:"#f0ad4e",
brandDark:"#000",
brandLight:"#f4f4f4",
datePickerTextColor:"#000",
datePickerBg:"transparent",
DefaultFontSize:16,
fontFamily:platform==="ios"?"System":"Roboto",
fontSizeBase:15,
get fontSizeH1(){
return this.fontSizeBase*1.8;
},
get fontSizeH2(){
return this.fontSizeBase*1.6;
},
get fontSizeH3(){
return this.fontSizeBase*1.4;
},
footerHeight:55,
footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
footerPaddingBottom:0,
tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",
tabBarTextSize:platform==="ios"?14:11,
activeTab:platform==="ios"?"#007aff":"#fff",
sTabBarActiveTextColor:"#007aff",
tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",
tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",
toolbarBtnColor:platform==="ios"?"#007aff":"#fff",
toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
toolbarHeight:platform==="ios"?64:56,
toolbarSearchIconSize:platform==="ios"?20:23,
toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",
searchBarHeight:platform==="ios"?30:40,
searchBarInputHeight:platform==="ios"?30:50,
toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",
toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",
iosStatusbar:platform==="ios"?"dark-content":"light-content",
get statusBarColor(){
return(0,_color2.default)(this.toolbarDefaultBg).
darken(0.2).
hex();
},
get darkenHeader(){
return(0,_color2.default)(this.tabBgColor).
darken(0.03).
hex();
},
iconFamily:"Ionicons",
iconFontSize:platform==="ios"?30:28,
iconHeaderSize:platform==="ios"?33:24,
inputFontSize:17,
inputBorderColor:"#D9D5DC",
inputSuccessBorderColor:"#2b8339",
inputErrorBorderColor:"#ed2f2f",
inputHeightBase:50,
get inputColor(){
return this.textColor;
},
get inputColorPlaceholder(){
return"#575757";
},
btnLineHeight:19,
lineHeightH1:32,
lineHeightH2:27,
lineHeightH3:22,
lineHeight:platform==="ios"?20:24,
listItemSelected:platform==="ios"?"#007aff":"#3F51B5",
listBg:"transparent",
listBorderColor:"#c9c9c9",
listDividerBg:"#f4f4f4",
listBtnUnderlayColor:"#DDD",
listItemPadding:platform==="ios"?10:12,
listNoteColor:"#808080",
listNoteSize:13,
defaultProgressColor:"#E4202D",
inverseProgressColor:"#1A191B",
radioBtnSize:platform==="ios"?25:23,
radioSelectedColorAndroid:"#3F51B5",
radioBtnLineHeight:platform==="ios"?29:24,
get radioColor(){
return this.brandPrimary;
},
segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",
segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",
segmentTextColor:platform==="ios"?"#007aff":"#fff",
segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",
segmentBorderColor:platform==="ios"?"#007aff":"#fff",
segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",
defaultSpinnerColor:"#45D56E",
inverseSpinnerColor:"#1A191B",
tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",
topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",
topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",
topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",
tabBgColor:"#F8F8F8",
tabFontSize:15,
textColor:"#000",
inverseTextColor:"#fff",
noteFontSize:14,
get defaultTextColor(){
return this.textColor;
},
titleFontfamily:platform==="ios"?"System":"Roboto_medium",
titleFontSize:platform==="ios"?17:19,
subTitleFontSize:platform==="ios"?11:14,
subtitleColor:platform==="ios"?"#8e8e93":"#FFF",
titleFontColor:platform==="ios"?"#000":"#FFF",
borderRadiusBase:platform==="ios"?5:2,
borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
contentPadding:10,
dropdownLinkColor:"#414142",
inputLineHeight:24,
deviceWidth:deviceWidth,
deviceHeight:deviceHeight,
isIphoneX:isIphoneX,
inputGroupRoundedBorderRadius:30,
Inset:{
portrait:{
topInset:24,
leftInset:0,
rightInset:0,
bottomInset:34},
landscape:{
topInset:0,
leftInset:44,
rightInset:44,
bottomInset:21}}};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;var deviceWidth=_reactNative.Dimensions.get("window").width;var platform=_reactNative.Platform.OS;var platformStyle=undefined;var isIphoneX=platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default={platformStyle:platformStyle,platform:platform,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:true,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:true,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:platform==="ios"?3:0,btnFontFamily:platform==="ios"?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary;},get btnPrimaryColor(){return this.inverseTextColor;},get btnInfoBg(){return this.brandInfo;},get btnInfoColor(){return this.inverseTextColor;},get btnSuccessBg(){return this.brandSuccess;},get btnSuccessColor(){return this.inverseTextColor;},get btnDangerBg(){return this.brandDanger;},get btnDangerColor(){return this.inverseTextColor;},get btnWarningBg(){return this.brandWarning;},get btnWarningColor(){return this.inverseTextColor;},get btnTextSize(){return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;},get btnTextSizeLarge(){return this.fontSizeBase*1.5;},get btnTextSizeSmall(){return this.fontSizeBase*0.8;},get borderRadiusLarge(){return this.fontSizeBase*3.8;},get iconSizeLarge(){return this.iconFontSize*1.5;},get iconSizeSmall(){return this.iconFontSize*0.6;},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:platform==="ios"?10:12,CheckboxRadius:platform==="ios"?13:0,CheckboxBorderWidth:platform==="ios"?1:2,CheckboxPaddingLeft:platform==="ios"?4:2,CheckboxPaddingBottom:platform==="ios"?0:5,CheckboxIconSize:platform==="ios"?21:16,CheckboxIconMarginTop:platform==="ios"?undefined:1,CheckboxFontSize:platform==="ios"?23/0.9:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:platform==="ios"?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:platform==="ios"?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return this.fontSizeBase*1.8;},get fontSizeH2(){return this.fontSizeBase*1.6;},get fontSizeH3(){return this.fontSizeBase*1.4;},footerHeight:55,footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",tabBarTextSize:platform==="ios"?14:11,activeTab:platform==="ios"?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",toolbarBtnColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",toolbarHeight:platform==="ios"?64:56,toolbarSearchIconSize:platform==="ios"?20:23,toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",searchBarHeight:platform==="ios"?30:40,searchBarInputHeight:platform==="ios"?30:50,toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",iosStatusbar:platform==="ios"?"dark-content":"light-content",get statusBarColor(){return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();},get darkenHeader(){return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();},iconFamily:"Ionicons",iconFontSize:platform==="ios"?30:28,iconHeaderSize:platform==="ios"?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor;},get inputColorPlaceholder(){return"#575757";},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:platform==="ios"?20:24,listItemSelected:platform==="ios"?"#007aff":"#3F51B5",listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:platform==="ios"?10:12,listNoteColor:"#808080",listNoteSize:13,defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:platform==="ios"?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:platform==="ios"?29:24,get radioColor(){return this.brandPrimary;},segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",segmentTextColor:platform==="ios"?"#007aff":"#fff",segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",segmentBorderColor:platform==="ios"?"#007aff":"#fff",segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor;},titleFontfamily:platform==="ios"?"System":"Roboto_medium",titleFontSize:platform==="ios"?17:19,subTitleFontSize:platform==="ios"?11:14,subtitleColor:platform==="ios"?"#8e8e93":"#FFF",titleFontColor:platform==="ios"?"#000":"#FFF",borderRadiusBase:platform==="ios"?5:2,borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:deviceWidth,deviceHeight:deviceHeight,isIphoneX:isIphoneX,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Tabs/index.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask>
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
<mask> {var _this2=this;var _props=
<mask>
<mask>
<mask>
<mask> this.props,uppercase=_props.uppercase,children=_props.children;
<mask>
<mask> var text=void 0;
<mask> if(uppercase){
<mask> text=_react2.default.Children.map(children,function(child){
<mask> if(_lodash2.default.isString(child)){
<mask> return _lodash2.default.toUpper(child);
<mask> }else{
<mask> return child;
<mask> }
<mask> });
<mask> }else{
<mask> text=children;
<mask> }
<mask>
<mask> return(
<mask> _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
<mask> text));
<mask>
<mask>
<mask> }}]);return Text;}(_react.Component);
<mask>
<mask>
<mask> Text.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> uppercase:_propTypes2.default.bool,
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> Text.defaultProps={
<mask> uppercase:false};
<mask>
<mask>
<mask> var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
<mask>
<mask> Text=StyledText;
<mask> //# sourceMappingURL=Text.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H3;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H3.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.
H3=StyledH3;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H3=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H3.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H3=function(_Component){_inherits(H3,_Component);function H3(){_classCallCheck(this,H3);return _possibleConstructorReturn(this,(H3.__proto__||Object.getPrototypeOf(H3)).apply(this,arguments));}_createClass(H3,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H3;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H3.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH3=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H3",{},_mapPropsToStyleNames2.default)(H3);exports.H3=StyledH3; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Text.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
<mask> {
<mask> return{
<mask> textarea:{
<mask> height:this.props.rowSpan?this.props.rowSpan*25:60}};
<mask>
<mask>
<mask> }},{key:"prepareRootProps",value:function prepareRootProps()
<mask>
<mask> {
<mask> var defaultProps={
<mask> style:this.getStyle().textarea};
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.TextInput,_extends({
<mask> ref:function ref(c){
<mask> _this2._textInput=c;
<mask> _this2._root=c;
<mask> }},
<mask> this.prepareRootProps(),{
<mask> multiline:true,
<mask> placeholderTextColor:
<mask> this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
<mask>
<mask> underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
<mask>
<mask>
<mask> }}]);return Textarea;}(_react.Component);
<mask>
<mask>
<mask> Textarea.propTypes=_extends({},
<mask> _reactNative.TextInput.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
<mask> rowSpan:_propTypes2.default.number,
<mask> bordered:_propTypes2.default.bool,
<mask> underline:_propTypes2.default.bool});
<mask>
<mask>
<mask> var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
<mask>
<mask> Textarea=StyledTextarea;
<mask> //# sourceMappingURL=Textarea.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
},
editable:this.props.disabled?false:true,
underlineColorAndroid:"rgba(0,0,0,0)",
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},
this.props,{__source:{fileName:_jsxFileName,lineNumber:15}})));
}}]);return Input;}(_NativeBaseComponent3.default);
Input.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.
Input=StyledInput;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Input=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Input.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Input=function(_NativeBaseComponent){_inherits(Input,_NativeBaseComponent);function Input(){_classCallCheck(this,Input);return _possibleConstructorReturn(this,(Input.__proto__||Object.getPrototypeOf(Input)).apply(this,arguments));}_createClass(Input,[{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;},editable:this.props.disabled?false:true,underlineColorAndroid:"rgba(0,0,0,0)",placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:variables.inputColorPlaceholder},this.props,{__source:{fileName:_jsxFileName,lineNumber:15}}));}}]);return Input;}(_NativeBaseComponent3.default);Input.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledInput=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Input",{},_mapPropsToStyleNames2.default)(Input);exports.Input=StyledInput; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?1:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
this.props.children));
}}]);return InputGroup;}(_react.Component);
InputGroup.propTypes=_extends({},
_reactNative.ViewPropTypes,{
regular:_propTypes2.default.bool,
underline:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool,
disabled:_propTypes2.default.bool});
var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.InputGroup",
{},
_mapPropsToStyleNames2.default)(
InputGroup);exports.
InputGroup=StyledInputGroup;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Text=require("./Text");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
borderedBtn:{
borderWidth:this.props.bordered?1:undefined,
borderRadius:
this.props.rounded&&this.props.bordered?
_platform2.default.borderRadiusLarge:
2}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().borderedBtn};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var children=
_reactNative.Platform.OS==="ios"?
this.props.children:
_react2.default.Children.map(
this.props.children,
function(child){return(
child&&child.type===_Text.Text?
_react2.default.cloneElement(child,_extends({
uppercase:variables.btnUppercaseAndroidText},
child.props)):
child);});
if(
_reactNative.Platform.OS==="ios"||
_reactNative.Platform.OS==="web"||
variables.androidRipple===false||
_reactNative.Platform["Version"]<21)
{
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({},
this.prepareRootProps(),{
ref:function ref(c){return _this2._root=c;},
activeOpacity:
this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),
children));
}else{
if(this.props.rounded){
var buttonStyle=_extends({},this.prepareRootProps().style);
var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;
return(
_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
background:
this.props.androidRippleColor?
_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):
_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),
_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},
children))));
}else{
return(
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
ref:function ref(c){return _this2._root=c;},
onPress:this.props.onPress},
this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),
_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children)));
}
}
}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};
Button.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
block:_propTypes2.default.bool,
primary:_propTypes2.default.bool,
transparent:_propTypes2.default.bool,
success:_propTypes2.default.bool,
danger:_propTypes2.default.bool,
warning:_propTypes2.default.bool,
info:_propTypes2.default.bool,
bordered:_propTypes2.default.bool,
disabled:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
large:_propTypes2.default.bool,
small:_propTypes2.default.bool,
active:_propTypes2.default.bool});
var styles=_reactNative.StyleSheet.create({
childContainer:{
flexShrink:1,
flexDirection:'row',
justifyContent:'center',
alignItems:'center'}});
var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Button",
{},
_mapPropsToStyleNames2.default)(
Button);exports.
Button=StyledButton;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Text=require("./Text");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(){_classCallCheck(this,Button);return _possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments));}_createClass(Button,[{key:"getInitialStyle",value:function getInitialStyle(){return{borderedBtn:{borderWidth:this.props.bordered?1:undefined,borderRadius:this.props.rounded&&this.props.bordered?_platform2.default.borderRadiusLarge:2}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().borderedBtn};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var children=_reactNative.Platform.OS==="ios"?this.props.children:_react2.default.Children.map(this.props.children,function(child){return child&&child.type===_Text.Text?_react2.default.cloneElement(child,_extends({uppercase:variables.btnUppercaseAndroidText},child.props)):child;});if(_reactNative.Platform.OS==="ios"||_reactNative.Platform.OS==="web"||variables.androidRipple===false||_reactNative.Platform["Version"]<21){return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({},this.prepareRootProps(),{ref:function ref(c){return _this2._root=c;},activeOpacity:this.props.activeOpacity>0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Content=function(_Component){_inherits(Content,_Component);
function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Content,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateLeft",value:function calculateLeft(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var leftPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingLeft!==undefined)
{
leftPadder=
(this.props.style[1].paddingLeft?
this.props.style[1].paddingLeft:
this.props.style[1].padding)+InsetValues.leftInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingLeft!==undefined)
{
leftPadder=
(this.props.style.paddingLeft?
this.props.style.paddingLeft:
this.props.style.padding)+InsetValues.leftInset;
}else{
leftPadder=InsetValues.leftInset;
}
return leftPadder;
}},{key:"calculateRight",value:function calculateRight(
mode,inSet){
var inset=null;
if(inSet!==undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var rightPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingRight!==undefined)
{
rightPadder=
(this.props.style[1].paddingRight?
this.props.style[1].paddingRight:
this.props.style[1].padding)+InsetValues.rightInset;
}
}else if(
this.props.style.padding!==undefined||
this.props.style.paddingRight!==undefined)
{
rightPadder=
(this.props.style.paddingRight?
this.props.style.paddingRight:
this.props.style.padding)+InsetValues.rightInset;
}else{
rightPadder=InsetValues.rightInset;
}
return rightPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
paddingLeft:this.calculateLeft(
this.state.orientation,
variables.Inset)}],
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),
this.props.children):
_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({
automaticallyAdjustContentInsets:false,
resetScrollToCoords:
this.props.disableKBDismissScroll?null:{x:0,y:0},
keyboardShouldPersistTaps:
this.props.keyboardShouldPersistTaps?
this.props.keyboardShouldPersistTaps:
"handled",
ref:function ref(c){
_this2._scrollview=c;
_this2._root=c;
}},
this.props,{
contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),
this.props.children);
}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};
Content.propTypes={
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
padder:_propTypes2.default.bool,
disableKBDismissScroll:_propTypes2.default.bool,
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string};
var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Content",
{},
_mapPropsToStyleNames2.default)(
Content);exports.
Content=StyledContent;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Content.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNativeKeyboardAwareScrollView=require("react-native-keyboard-aware-scroll-view");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Content=function(_Component){_inherits(Content,_Component);function Content(props){_classCallCheck(this,Content);var _this=_possibleConstructorReturn(this,(Content.__proto__||Object.getPrototypeOf(Content)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Content,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Textarea.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Thumbnail;}(_react.Component);Thumbnail.propTypes=_extends({},_reactNative.Image.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),square:_propTypes2.default.bool,circular:_propTypes2.default.bool,size:_propTypes2.default.number});var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.Thumbnail=StyledThumbnail; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Thumbnail.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Thumbnail=function(_Component){_inherits(Thumbnail,_Component);function Thumbnail(){_classCallCheck(this,Thumbnail);return _possibleConstructorReturn(this,(Thumbnail.__proto__||Object.getPrototypeOf(Thumbnail)).apply(this,arguments));}_createClass(Thumbnail,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
<mask> }}]);return Thumbnail;}(_react.Component);
<mask>
<mask>
<mask> Thumbnail.propTypes=_extends({},
<mask> _reactNative.Image.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
<mask> square:_propTypes2.default.bool,
<mask> circular:_propTypes2.default.bool,
<mask> size:_propTypes2.default.number});
<mask>
<mask>
<mask> var StyledThumbnail=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Thumbnail",{},_mapPropsToStyleNames2.default)(Thumbnail);exports.
<mask>
<mask> Thumbnail=StyledThumbnail;
<mask> //# sourceMappingURL=Thumbnail.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var GRAVATAR_URI="https://www.gravatar.com/avatar/";var
Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
gravatar:{
borderRadius:this.props.size?this.props.size/2:15,
width:this.props.size?this.props.size:30,
height:this.props.size?this.props.size:30,
resizeMode:this.props.contain?"contain":undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var gravatarStyle={};
if(this.props.circular){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=this.props.size/2;
}else if(this.props.square){
gravatarStyle.width=this.props.size;
gravatarStyle.height=this.props.size;
gravatarStyle.borderRadius=0;
}
var defaultProps={
style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var props=this.prepareRootProps();
var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.
height;
return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));
}}]);return Gravatar;}(_NativeBaseComponent3.default);
Gravatar.propTypes=_extends({},
_reactNative.Image.propTypes,{
email:PropTypes.string.isRequired,
style:PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array]),
size:PropTypes.number,
circular:PropTypes.bool,
square:PropTypes.bool});
var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Gravatar",
{},
_mapPropsToStyleNames2.default)(
Gravatar);exports.
Gravatar=StyledGravatar;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Gravatar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Gravatar.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _blueimpMd=require("blueimp-md5");var _blueimpMd2=_interopRequireDefault(_blueimpMd);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _NativeBaseComponent2=require("./Base/NativeBaseComponent");var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var GRAVATAR_URI="https://www.gravatar.com/avatar/";var Gravatar=function(_NativeBaseComponent){_inherits(Gravatar,_NativeBaseComponent);function Gravatar(){_classCallCheck(this,Gravatar);return _possibleConstructorReturn(this,(Gravatar.__proto__||Object.getPrototypeOf(Gravatar)).apply(this,arguments));}_createClass(Gravatar,[{key:"getInitialStyle",value:function getInitialStyle(){return{gravatar:{borderRadius:this.props.size?this.props.size/2:15,width:this.props.size?this.props.size:30,height:this.props.size?this.props.size:30,resizeMode:this.props.contain?"contain":undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var gravatarStyle={};if(this.props.circular){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=this.props.size/2;}else if(this.props.square){gravatarStyle.width=this.props.size;gravatarStyle.height=this.props.size;gravatarStyle.borderRadius=0;}var defaultProps={style:_lodash2.default.merge(this.getInitialStyle().gravatar,gravatarStyle)};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var props=this.prepareRootProps();var uri=GRAVATAR_URI+(0,_blueimpMd2.default)(this.props.email)+"?s="+props.style.height;return _react2.default.createElement(_reactNative.Image,_extends({ref:function ref(c){return _this2._root=c;}},props,{source:{uri:uri},__source:{fileName:_jsxFileName,lineNumber:48}}));}}]);return Gravatar;}(_NativeBaseComponent3.default);Gravatar.propTypes=_extends({},_reactNative.Image.propTypes,{email:PropTypes.string.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.number,PropTypes.array]),size:PropTypes.number,circular:PropTypes.bool,square:PropTypes.bool});var StyledGravatar=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Gravatar",{},_mapPropsToStyleNames2.default)(Gravatar);exports.Gravatar=StyledGravatar; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle()
{
return{
textarea:{
height:this.props.rowSpan?this.props.rowSpan*25:60}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getStyle().textarea};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.TextInput,_extends({
ref:function ref(c){
_this2._textInput=c;
_this2._root=c;
}},
this.prepareRootProps(),{
multiline:true,
placeholderTextColor:
this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,
underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}})));
}}]);return Textarea;}(_react.Component);
Textarea.propTypes=_extends({},
_reactNative.TextInput.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
rowSpan:_propTypes2.default.number,
bordered:_propTypes2.default.bool,
underline:_propTypes2.default.bool});
var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.
Textarea=StyledTextarea;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Textarea.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Textarea=function(_Component){_inherits(Textarea,_Component);function Textarea(){_classCallCheck(this,Textarea);return _possibleConstructorReturn(this,(Textarea.__proto__||Object.getPrototypeOf(Textarea)).apply(this,arguments));}_createClass(Textarea,[{key:"getStyle",value:function getStyle(){return{textarea:{height:this.props.rowSpan?this.props.rowSpan*25:60}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getStyle().textarea};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.TextInput,_extends({ref:function ref(c){_this2._textInput=c;_this2._root=c;}},this.prepareRootProps(),{multiline:true,placeholderTextColor:this.props.placeholderTextColor?this.props.placeholderTextColor:_platform2.default.inputColorPlaceholder,underlineColorAndroid:"rgba(0,0,0,0)",__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Textarea;}(_react.Component);Textarea.propTypes=_extends({},_reactNative.TextInput.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),rowSpan:_propTypes2.default.number,bordered:_propTypes2.default.bool,underline:_propTypes2.default.bool});var StyledTextarea=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Textarea",{},_mapPropsToStyleNames2.default)(Textarea);exports.Textarea=StyledTextarea; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?1:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),
this.props.children));
}}]);return InputGroup;}(_react.Component);
InputGroup.propTypes=_extends({},
_reactNative.ViewPropTypes,{
regular:_propTypes2.default.bool,
underline:_propTypes2.default.bool,
rounded:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool,
disabled:_propTypes2.default.bool});
var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.InputGroup",
{},
_mapPropsToStyleNames2.default)(
InputGroup);exports.
InputGroup=StyledInputGroup;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.InputGroup=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/InputGroup.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var InputGroup=function(_Component){_inherits(InputGroup,_Component);function InputGroup(){_classCallCheck(this,InputGroup);return _possibleConstructorReturn(this,(InputGroup.__proto__||Object.getPrototypeOf(InputGroup)).apply(this,arguments));}_createClass(InputGroup,[{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?1:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:31}}),this.props.children);}}]);return InputGroup;}(_react.Component);InputGroup.propTypes=_extends({},_reactNative.ViewPropTypes,{regular:_propTypes2.default.bool,underline:_propTypes2.default.bool,rounded:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool,disabled:_propTypes2.default.bool});var StyledInputGroup=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.InputGroup",{},_mapPropsToStyleNames2.default)(InputGroup);exports.InputGroup=StyledInputGroup; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(
variables){
return{
checkStyle:{
borderColor:this.props.color?this.props.color:variables.checkboxBgColor,
backgroundColor:
this.props.checked===true?
this.props.color?this.props.color:variables.checkboxBgColor:
"transparent"}};
}},{key:"prepareRootProps",value:function prepareRootProps(
variables){
var defaultProps={
style:this.getInitialStyle(variables).checkStyle};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),
_react2.default.createElement(_Ionicons2.default,{
style:{
color:this.props.checked===true?variables.checkboxTickColor:"transparent",
fontSize:variables.CheckboxFontSize,
lineHeight:variables.CheckboxIconSize},
name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}})));
}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};
CheckBox.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
checked:_propTypes2.default.bool,
onPress:_propTypes2.default.func});
var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.
CheckBox=StyledCheckBox;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Checkbox.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Ionicons=require("react-native-vector-icons/Ionicons");var _Ionicons2=_interopRequireDefault(_Ionicons);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckBox=function(_Component){_inherits(CheckBox,_Component);function CheckBox(){_classCallCheck(this,CheckBox);return _possibleConstructorReturn(this,(CheckBox.__proto__||Object.getPrototypeOf(CheckBox)).apply(this,arguments));}_createClass(CheckBox,[{key:"getInitialStyle",value:function getInitialStyle(variables){return{checkStyle:{borderColor:this.props.color?this.props.color:variables.checkboxBgColor,backgroundColor:this.props.checked===true?this.props.color?this.props.color:variables.checkboxBgColor:"transparent"}};}},{key:"prepareRootProps",value:function prepareRootProps(variables){var defaultProps={style:this.getInitialStyle(variables).checkStyle};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps(variables),{__source:{fileName:_jsxFileName,lineNumber:40}}),_react2.default.createElement(_Ionicons2.default,{style:{color:this.props.checked===true?variables.checkboxTickColor:"transparent",fontSize:variables.CheckboxFontSize,lineHeight:variables.CheckboxIconSize},name:platform==="ios"&&platformStyle!=="material"?"ios-checkmark-outline":"md-checkmark",__source:{fileName:_jsxFileName,lineNumber:41}}));}}]);return CheckBox;}(_react.Component);CheckBox.contextTypes={theme:_propTypes2.default.object};CheckBox.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),checked:_propTypes2.default.bool,onPress:_propTypes2.default.func});var StyledCheckBox=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.CheckBox",{},_mapPropsToStyleNames2.default)(CheckBox);exports.CheckBox=StyledCheckBox; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Switch;}(_react.Component);
Switch.propTypes=_extends({},
Switch.propTypes);
var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.
Switch=StyledSwitch;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Switch.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Switch=function(_Component){_inherits(Switch,_Component);function Switch(){_classCallCheck(this,Switch);return _possibleConstructorReturn(this,(Switch.__proto__||Object.getPrototypeOf(Switch)).apply(this,arguments));}_createClass(Switch,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Switch,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Switch;}(_react.Component);Switch.propTypes=_extends({},Switch.propTypes);var StyledSwitch=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Switch",{},_mapPropsToStyleNames2.default)(Switch);exports.Switch=StyledSwitch; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Thumbnail.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Title;}(_react.Component);Title.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.Title=StyledTitle; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Title.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Title=function(_Component){_inherits(Title,_Component);function Title(){_classCallCheck(this,Title);return _possibleConstructorReturn(this,(Title.__proto__||Object.getPrototypeOf(Title)).apply(this,arguments));}_createClass(Title,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;},numberOfLines:1},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return Title;}(_react.Component);
<mask>
<mask>
<mask> Title.propTypes=_extends({},
<mask> _reactNative.Text.propTypes,{
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
<mask>
<mask>
<mask> var StyledTitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Title",{},_mapPropsToStyleNames2.default)(Title);exports.
<mask> Title=StyledTitle;
<mask> //# sourceMappingURL=Title.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Subtitle;}(_react.Component);
Subtitle.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.
Subtitle=StyledSubtitle;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Subtitle.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Subtitle=function(_Component){_inherits(Subtitle,_Component);function Subtitle(){_classCallCheck(this,Subtitle);return _possibleConstructorReturn(this,(Subtitle.__proto__||Object.getPrototypeOf(Subtitle)).apply(this,arguments));}_createClass(Subtitle,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Subtitle;}(_react.Component);Subtitle.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSubtitle=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Subtitle",{},_mapPropsToStyleNames2.default)(Subtitle);exports.Subtitle=StyledSubtitle; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Label;}(_react.Component);
Label.propTypes=_extends({},
_reactNative.Text.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.
Label=StyledLabel;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Label=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Label.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Label=function(_Component){_inherits(Label,_Component);function Label(){_classCallCheck(this,Label);return _possibleConstructorReturn(this,(Label.__proto__||Object.getPrototypeOf(Label)).apply(this,arguments));}_createClass(Label,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Label;}(_react.Component);Label.propTypes=_extends({},_reactNative.Text.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledLabel=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Label",{},_mapPropsToStyleNames2.default)(Label);exports.Label=StyledLabel; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render()
{var _this2=this;var _props=
this.props,uppercase=_props.uppercase,children=_props.children;
var text=void 0;
if(uppercase){
text=_react2.default.Children.map(children,function(child){
if(_lodash2.default.isString(child)){
return _lodash2.default.toUpper(child);
}else{
return child;
}
});
}else{
text=children;
}
return(
_react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),
text));
}}]);return Text;}(_react.Component);
Text.propTypes=_extends({},
_reactNative.Text.propTypes,{
uppercase:_propTypes2.default.bool,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
Text.defaultProps={
uppercase:false};
var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.
Text=StyledText;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Text.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Text=function(_Component){_inherits(Text,_Component);function Text(){_classCallCheck(this,Text);return _possibleConstructorReturn(this,(Text.__proto__||Object.getPrototypeOf(Text)).apply(this,arguments));}_createClass(Text,[{key:"render",value:function render(){var _this2=this;var _props=this.props,uppercase=_props.uppercase,children=_props.children;var text=void 0;if(uppercase){text=_react2.default.Children.map(children,function(child){if(_lodash2.default.isString(child)){return _lodash2.default.toUpper(child);}else{return child;}});}else{text=children;}return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:30}}),text);}}]);return Text;}(_react.Component);Text.propTypes=_extends({},_reactNative.Text.propTypes,{uppercase:_propTypes2.default.bool,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});Text.defaultProps={uppercase:false};var StyledText=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Text",{},_mapPropsToStyleNames2.default)(Text);exports.Text=StyledText; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H1;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H1.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.
H1=StyledH1;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H1.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H1;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H1.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H1",{},_mapPropsToStyleNames2.default)(H1);exports.H1=StyledH1; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return H2;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
_react2.default.Children.forEach(prop,function(child){
if(typeof child!=="string"&&typeof child!=="number"){
error=new Error(component+" should have only string or number");
}
});
return error;
};
H2.propTypes=_extends({},
_reactNative.Text.propTypes,{
children:childrenType,
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});
var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.
H2=StyledH2;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.H2=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/H2.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var H2=function(_Component){_inherits(H2,_Component);function H2(){_classCallCheck(this,H2);return _possibleConstructorReturn(this,(H2.__proto__||Object.getPrototypeOf(H2)).apply(this,arguments));}_createClass(H2,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return H2;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];_react2.default.Children.forEach(prop,function(child){if(typeof child!=="string"&&typeof child!=="number"){error=new Error(component+" should have only string or number");}});return error;};H2.propTypes=_extends({},_reactNative.Text.propTypes,{children:childrenType,style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledH2=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.H2",{},_mapPropsToStyleNames2.default)(H2);exports.H2=StyledH2; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Title.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return Toast;}(_react.Component);
<mask>
<mask>
<mask> Toast.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
<mask> Toast);exports.
<mask>
<mask> Toast=StyledToast;
<mask> //# sourceMappingURL=Toast.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return ViewNB;}(_react.Component);
ViewNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ViewNB",
{},
_mapPropsToStyleNames2.default)(
ViewNB);exports.
ViewNB=StyledViewNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabContainer;}(_react.Component);
TabContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabContainer",
{},
_mapPropsToStyleNames2.default)(
TabContainer);exports.
TabContainer=StyledTabContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Form;}(_react.Component);
Form.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(
Form);exports.
Form=StyledForm;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Form=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Form.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Form=function(_Component){_inherits(Form,_Component);function Form(){_classCallCheck(this,Form);return _possibleConstructorReturn(this,(Form.__proto__||Object.getPrototypeOf(Form)).apply(this,arguments));}_createClass(Form,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Form;}(_react.Component);Form.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledForm=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Form",{},_mapPropsToStyleNames2.default)(Form);exports.Form=StyledForm; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/Toast.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Toast=require("./Toast");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/ToastContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _Text=require("./Text");
<mask> var _Button=require("./Button");
<mask> var _View=require("./View");
<mask> var _Toast=require("./Toast");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> ToastContainer=function(_Component){_inherits(ToastContainer,_Component);
<mask> function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,
<mask> props));
<mask> _this.state={
<mask> modalVisible:false,
<mask> fadeAnim:new _reactNative.Animated.Value(0)};return _this;
<mask>
<mask> }_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle()
<mask>
<mask>
<mask>
<mask>
<mask> {
<mask> return{
<mask> position:"absolute",
<mask> opacity:this.state.fadeAnim,
<mask> width:"100%",
<mask> elevation:9,
<mask> paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,
<mask> top:this.state.position==="top"?this.getTop():undefined,
<mask> bottom:this.state.position==="bottom"?this.getTop():undefined};
<mask>
<mask> }},{key:"getTop",value:function getTop()
<mask> {
<mask> if(_reactNative.Platform.OS==="ios"){
<mask> return 30;
<mask> }else{
<mask> return 0;
<mask> }
<mask> }},{key:"getButtonText",value:function getButtonText(
<mask> buttonText){
<mask> if(buttonText){
<mask> if(buttonText.trim().length===0){
<mask> return undefined;
<mask> }else return buttonText;
<mask> }
<mask> return undefined;
<mask> }},{key:"showToast",value:function showToast(_ref)
<mask> {var config=_ref.config;
<mask> this.setState({
<mask> modalVisible:true,
<mask> text:config.text,
<mask> buttonText:this.getButtonText(config.buttonText),
<mask> type:config.type,
<mask> position:config.position?config.position:"bottom",
<mask> supportedOrientations:config.supportedOrientations,
<mask> style:config.style,
<mask> buttonTextStyle:config.buttonTextStyle,
<mask> buttonStyle:config.buttonStyle,
<mask> textStyle:config.textStyle,
<mask> onClose:config.onClose});
<mask>
<mask>
<mask> if(this.closeTimeout){
<mask> clearTimeout(this.closeTimeout);
<mask> }
<mask>
<mask> if(config.duration!==0){
<mask> var duration=config.duration>0?config.duration:1500;
<mask> this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);
<mask> }
<mask>
<mask> _reactNative.Animated.timing(this.state.fadeAnim,{
<mask> toValue:1,
<mask> duration:200}).
<mask> start();
<mask> }},{key:"closeModal",value:function closeModal(
<mask> reason){
<mask> this.setState({
<mask> modalVisible:false});var
<mask>
<mask> onClose=this.state.onClose;
<mask> if(onClose&&typeof onClose==="function"){
<mask> onClose(reason);
<mask> }
<mask> }},{key:"closeToast",value:function closeToast(
<mask> reason){
<mask> clearTimeout(this.closeTimeout);
<mask> _reactNative.Animated.timing(this.state.fadeAnim,{
<mask> toValue:0,
<mask> duration:200}).
<mask> start(this.closeModal.bind(this,reason));
<mask> }},{key:"render",value:function render()
<mask> {var _this2=this;
<mask> if(this.state.modalVisible){
<mask> return(
<mask> _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},
<mask> _react2.default.createElement(_Toast.Toast,{
<mask> style:this.state.style,
<mask> danger:this.state.type=="danger"?true:false,
<mask> success:this.state.type=="success"?true:false,
<mask> warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},
<mask>
<mask> _react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),
<mask> this.state.buttonText&&
<mask> _react2.default.createElement(_Button.Button,{
<mask> style:this.state.buttonStyle,
<mask> onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},
<mask>
<mask> _react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},
<mask> this.state.buttonText)))));
<mask>
<mask>
<mask>
<mask>
<mask>
<mask>
<mask> }else return null;
<mask> }}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);
<mask>
<mask>
<mask> ToastContainer.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.ToastContainer",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> ToastContainer);exports.
<mask>
<mask> ToastContainer=StyledToastContainer;
<mask> //# sourceMappingURL=ToastContainer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _reactNative=require("react-native");
var _Icon=require("./Icon");
var _IconNB=require("./IconNB");
var _Button=require("./Button");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
Fab=function(_Component){_inherits(Fab,_Component);
function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
props));
_this.containerHeight=new _reactNative.Animated.Value(56);
_this.containerWidth=new _reactNative.Animated.Value(0);
_this.buttonScale=new _reactNative.Animated.Value(0);
_this.state={
buttons:undefined,
active:false};return _this;
}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
pos)
{
if(pos==="topLeft"){
return{
top:20,
bottom:undefined,
left:20,
right:undefined};
}else if(pos==="bottomRight"){
return{
top:undefined,
bottom:20,
left:undefined,
right:20};
}else if(pos==="bottomLeft"){
return{
top:undefined,
bottom:20,
left:20,
right:undefined};
}else if(pos==="topRight"){
return{
top:20,
bottom:undefined,
left:undefined,
right:20};
}
}},{key:"fabOtherBtns",value:function fabOtherBtns(
direction,i){
if(direction==="up"){
return{
top:undefined,
bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:5:
i*50+65,
left:8,
right:0};
}else if(direction==="left"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
-(i*50+58),
right:0};
}else if(direction==="down"){
return{
top:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
bottom:0,
left:8,
right:0};
}else if(direction==="right"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
right:0};
}
}},{key:"getInitialStyle",value:function getInitialStyle(
iconStyle){
return{
fab:{
height:56,
width:56,
borderRadius:28,
elevation:4,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.4,
justifyContent:"center",
alignItems:"center",
shadowRadius:2,
position:"absolute",
bottom:0,
backgroundColor:"blue"},
container:{
position:"absolute",
top:this.props.position?
this.fabTopValue(this.props.position).top:
undefined,
bottom:this.props.position?
this.fabTopValue(this.props.position).bottom:
20,
right:this.props.position?
this.fabTopValue(this.props.position).right:
20,
left:this.props.position?
this.fabTopValue(this.props.position).left:
undefined,
width:56,
height:this.containerHeight,
flexDirection:this.props.direction?
this.props.direction==="left"||this.props.direction==="right"?
"row":
"column":
"column",
alignItems:"center"},
iconStyle:_extends({
color:"#fff",
fontSize:24,
lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
iconStyle),
buttonStyle:{
position:"absolute",
height:40,
width:40,
left:7,
borderRadius:20,
transform:this.state.active?
[{scale:new _reactNative.Animated.Value(1)}]:
[{scale:this.buttonScale}],
marginBottom:10,
backgroundColor:"blue"}};
}},{key:"getContainerStyle",value:function getContainerStyle()
{
return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
}},{key:"prepareFabProps",value:function prepareFabProps()
{
var defaultProps={
style:this.getInitialStyle().fab};
var incomingProps=_lodash2.default.clone(this.props);
delete incomingProps.onPress;
return(0,_computeProps2.default)(incomingProps,defaultProps);
}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
child,i){
var type={
top:this.props.direction?
this.fabOtherBtns(this.props.direction,i).top:
undefined,
left:this.props.direction?
this.fabOtherBtns(this.props.direction,i).left:
8,
right:this.props.direction?
this.fabOtherBtns(this.props.direction,i).right:
0,
bottom:this.props.direction?
this.fabOtherBtns(this.props.direction,i).bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
i*50+50};
return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
}},{key:"prepareButtonProps",value:function prepareButtonProps(
child){
var inp=_lodash2.default.clone(child.props);
delete inp.style;
var defaultProps={};
return(0,_computeProps2.default)(inp,defaultProps);
}},{key:"componentDidMount",value:function componentDidMount()
{var _this2=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
this.setState({
buttons:icon.length});
this.activeTimer=setTimeout(function(){
_this2.setState({
active:_this2.props.active});
},0);
}},{key:"componentWillUnmount",value:function componentWillUnmount()
{
if(this.activeTimer){
clearTimeout(this.activeTimer);
}
}},{key:"renderFab",value:function renderFab()
{
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
return _react2.default.cloneElement(childrenArray[0],{
style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
}},{key:"renderButtons",value:function renderButtons()
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var newChildren=[];
{
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:279}}),
child.props.children));
});
}
return newChildren;
}},{key:"upAnimate",value:function upAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"leftAnimate",value:function leftAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"rightAnimate",value:function rightAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"downAnimate",value:function downAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"_animate",value:function _animate()
{var _props=
this.props,direction=_props.direction,position=_props.position;
if(this.props.direction){
if(this.props.direction==="up"){
this.upAnimate();
}else if(this.props.direction==="left"){
this.leftAnimate();
}else if(this.props.direction==="right"){
this.rightAnimate();
}else if(this.props.direction==="down"){
this.downAnimate();
}
}else{
this.upAnimate();
}
}},{key:"fabOnPress",value:function fabOnPress()
{var _this4=this;
if(this.props.onPress){
this.props.onPress();
this._animate();
this.activeTimer=setTimeout(function(){
_this4.setState({
active:_this4.props.active});
},100);
}
}},{key:"render",value:function render()
{var _this5=this;var
active=this.props.active;
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
this.renderButtons(),
_reactNative.Platform.OS==="ios"||
_platform2.default.androidRipple===false||
_reactNative.Platform["Version"]<=21?
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
this.renderFab()):
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
this.renderFab()))));
}}]);return Fab;}(_react.Component);
var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
Fab=StyledFab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
var SWIPE_THRESHOLD=120;var
DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);
function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,
props));
_this.state={
pan:new _reactNative.Animated.ValueXY(),
pan2:new _reactNative.Animated.ValueXY(),
enter:new _reactNative.Animated.Value(0.8),
selectedItem:_this.props.dataSource[0],
selectedItem2:_this.props.dataSource[1],
card1Top:true,
card2Top:false,
fadeAnim:new _reactNative.Animated.Value(0.8),
looping:
typeof _this.props.looping==="undefined"?true:_this.props.looping,
disabled:_this.props.dataSource.length===0,
lastCard:_this.props.dataSource.length===1};return _this;
}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref)
{var dataSource=_ref.dataSource;
if(dataSource.length!==this.props.dataSource.length){
if(dataSource.length<=1){
this.setState(_extends({},
this.state,{
selectedItem:dataSource[0],
selectedItem2:undefined,
disabled:dataSource.length===0,
lastCard:dataSource.length===1}));
return;
}
var visibleIndex=dataSource.indexOf(this.state.selectedItem);
var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;
var nextIndex=
currentIndex+1===dataSource.length?0:currentIndex+1;
this.setState({
selectedItem:dataSource[currentIndex],
selectedItem2:dataSource[nextIndex]});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
topCard:{
position:"absolute",
top:0,
right:0,
left:0}};
}},{key:"findNextIndexes",value:function findNextIndexes(
currentIndex){
var newIdx=currentIndex+1;
var newIdx2=currentIndex+2;
if(
newIdx2>this.props.dataSource.length-1&&
newIdx===this.props.dataSource.length-1)
{
return[newIdx,0];
}else if(newIdx>this.props.dataSource.length-1){
return[0,1];
}
return[newIdx,newIdx2];
}},{key:"selectNext",value:function selectNext()
{var _this2=this;
var dataSource=this.props.dataSource;
var currentIndex=dataSource.indexOf(this.state.selectedItem);
if(!this.state.looping){
if(currentIndex===dataSource.length-1){
return this.setState({
disabled:true});
}else if(currentIndex===dataSource.length-2){
return setTimeout(function(){
_this2.setState({
selectedItem:dataSource[currentIndex+1]});
setTimeout(function(){
_this2.setState({
lastCard:true});
},350);
},50);
}
}
var nextIndexes=this.findNextIndexes(currentIndex);
setTimeout(function(){
_this2.setState({
selectedItem:_this2.props.dataSource[nextIndexes[0]]});
setTimeout(function(){
_this2.setState({
selectedItem2:_this2.props.dataSource[nextIndexes[1]]});
},350);
},50);
}},{key:"swipeRight",value:function swipeRight()
{var _this3=this;
if(this.props.onSwiping)this.props.onSwiping("right");
setTimeout(function(){
_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();
_this3.selectNext();
_reactNative.Animated.decay(_this3.state.pan,{
velocity:{x:8,y:1},
deceleration:0.98}).
start(_this3._resetState.bind(_this3));
},300);
}},{key:"swipeLeft",value:function swipeLeft()
{var _this4=this;
if(this.props.onSwiping)this.props.onSwiping("left");
setTimeout(function(){
_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();
_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();
_this4.selectNext();
_reactNative.Animated.decay(_this4.state.pan,{
velocity:{x:-8,y:1},
deceleration:0.98}).
start(_this4._resetState.bind(_this4));
},300);
}},{key:"componentWillMount",value:function componentWillMount()
{var _this5=this;
this._panResponder=_reactNative.PanResponder.create({
onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},
onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return(
Math.abs(gestureState.dx)>5);},
onPanResponderGrant:function onPanResponderGrant(e,gestureState){
_this5.state.pan.setOffset({
x:_this5.state.pan.x._value,
y:_this5.state.pan.y._value});
_this5.state.pan.setValue({x:0,y:0});
},
onPanResponderMove:function onPanResponderMove(e,gestureState){
if(gestureState.dx>20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("right",gestureState.dx);
}else if(gestureState.dx<-20){
if(_this5.props.onSwiping)
_this5.props.onSwiping("left",gestureState.dx);
}
var val=Math.abs(gestureState.dx*0.0013);
var opa=Math.abs(gestureState.dx*0.0022);
if(val>0.2){
val=0.2;
}
_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();
_reactNative.Animated.spring(_this5.state.enter,{
toValue:0.8+val,
friction:7}).
start();
_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);
},
onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;
if(_this5.props.onSwiping)_this5.props.onSwiping(null);
var velocity=void 0;
if(vx>=0){
velocity=(0,_clamp2.default)(vx,4.5,10);
}else if(vx<0){
velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;
}
if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){
if(velocity>0){
_this5.props.onSwipeRight?
_this5.props.onSwipeRight(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}else{
_this5.props.onSwipeLeft?
_this5.props.onSwipeLeft(_this5.state.selectedItem):
undefined;
_this5.selectNext();
}
_reactNative.Animated.decay(_this5.state.pan,{
velocity:{x:velocity,y:vy},
deceleration:0.98}).
start(_this5._resetState.bind(_this5));
}else{
_reactNative.Animated.spring(_this5.state.pan,{
toValue:{x:0,y:0},
friction:4}).
start();
}
}});
}},{key:"_resetState",value:function _resetState()
{
this.state.pan.setValue({x:0,y:0});
this.state.enter.setValue(0.8);
this.state.fadeAnim.setValue(0.8);
this.setState({
card1Top:!this.state.card1Top,
card2Top:!this.state.card2Top});
if(this.props.onSwiping)this.props.onSwiping(null);
}},{key:"getCardStyles",value:function getCardStyles()
{var _state=
this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=
[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];
var rotate=pan.x.interpolate({
inputRange:[-700,0,700],
outputRange:["-10deg","0deg","10deg"]});
var opacity=pan.x.interpolate({
inputRange:[-320,0,320],
outputRange:[0.9,1,0.9]});
var scale=enter;
var animatedCardStyles={
transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],
opacity:opacity};
var animatedCardStyles2={transform:[{scale:scale}]};
return[animatedCardStyles,animatedCardStyles2];
}},{key:"render",value:function render()
{
if(this.state.disabled){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty())));
}else if(this.state.lastCard){
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),
this.props.renderEmpty&&this.props.renderEmpty()),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[0],
this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),
this.props.renderItem(this.state.selectedItem)))));
}
return(
_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},
this.state.selectedItem===undefined?
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):
_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[
this.getCardStyles()[1],
this.getInitialStyle().topCard,
{opacity:this.state.fadeAnim}]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),
this.props.renderBottom?
this.props.renderBottom(this.state.selectedItem2):
this.props.renderItem(this.state.selectedItem2)),
_react2.default.createElement(_reactNative.Animated.View,_extends({
style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},
this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),
this.props.renderTop?
this.props.renderTop(this.state.selectedItem):
this.props.renderItem(this.state.selectedItem)))));
}}]);return DeckSwiper;}(_react.Component);
DeckSwiper.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
dataSource:_propTypes2.default.array});
var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DeckSwiper",
{},
_mapPropsToStyleNames2.default)(
DeckSwiper);exports.
DeckSwiper=StyledDeckSwiper;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _clamp=require("clamp");var _clamp2=_interopRequireDefault(_clamp);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var SWIPE_THRESHOLD=120;var DeckSwiper=function(_Component){_inherits(DeckSwiper,_Component);function DeckSwiper(props){_classCallCheck(this,DeckSwiper);var _this=_possibleConstructorReturn(this,(DeckSwiper.__proto__||Object.getPrototypeOf(DeckSwiper)).call(this,props));_this.state={pan:new _reactNative.Animated.ValueXY(),pan2:new _reactNative.Animated.ValueXY(),enter:new _reactNative.Animated.Value(0.8),selectedItem:_this.props.dataSource[0],selectedItem2:_this.props.dataSource[1],card1Top:true,card2Top:false,fadeAnim:new _reactNative.Animated.Value(0.8),looping:typeof _this.props.looping==="undefined"?true:_this.props.looping,disabled:_this.props.dataSource.length===0,lastCard:_this.props.dataSource.length===1};return _this;}_createClass(DeckSwiper,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var dataSource=_ref.dataSource;if(dataSource.length!==this.props.dataSource.length){if(dataSource.length<=1){this.setState(_extends({},this.state,{selectedItem:dataSource[0],selectedItem2:undefined,disabled:dataSource.length===0,lastCard:dataSource.length===1}));return;}var visibleIndex=dataSource.indexOf(this.state.selectedItem);var currentIndex=visibleIndex<0?visibleIndex+1:visibleIndex;var nextIndex=currentIndex+1===dataSource.length?0:currentIndex+1;this.setState({selectedItem:dataSource[currentIndex],selectedItem2:dataSource[nextIndex]});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{topCard:{position:"absolute",top:0,right:0,left:0}};}},{key:"findNextIndexes",value:function findNextIndexes(currentIndex){var newIdx=currentIndex+1;var newIdx2=currentIndex+2;if(newIdx2>this.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/ToastContainer.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return ViewNB;}(_react.Component);ViewNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ViewNB",{},_mapPropsToStyleNames2.default)(ViewNB);exports.ViewNB=StyledViewNB; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/View.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
<mask> var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
<mask> var _reactNative=require("react-native");
<mask> var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask>
<mask> ViewNB=function(_Component){_inherits(ViewNB,_Component);function ViewNB(){_classCallCheck(this,ViewNB);return _possibleConstructorReturn(this,(ViewNB.__proto__||Object.getPrototypeOf(ViewNB)).apply(this,arguments));}_createClass(ViewNB,[{key:"render",value:function render()
<mask> {var _this2=this;
<mask> return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
<mask> }}]);return ViewNB;}(_react.Component);
<mask>
<mask>
<mask> ViewNB.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
<mask> style:_propTypes2.default.oneOfType([
<mask> _propTypes2.default.object,
<mask> _propTypes2.default.number,
<mask> _propTypes2.default.array])});
<mask>
<mask>
<mask>
<mask> var StyledViewNB=(0,_nativeBaseShoutemTheme.connectStyle)(
<mask> "NativeBase.ViewNB",
<mask> {},
<mask> _mapPropsToStyleNames2.default)(
<mask> ViewNB);exports.
<mask> ViewNB=StyledViewNB;
<mask> //# sourceMappingURL=View.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Segment;}(_react.Component);
Segment.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Segment",
{},
_mapPropsToStyleNames2.default)(
Segment);exports.
Segment=StyledSegment;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Segment.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Segment=function(_Component){_inherits(Segment,_Component);function Segment(){_classCallCheck(this,Segment);return _possibleConstructorReturn(this,(Segment.__proto__||Object.getPrototypeOf(Segment)).apply(this,arguments));}_createClass(Segment,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Segment;}(_react.Component);Segment.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSegment=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Segment",{},_mapPropsToStyleNames2.default)(Segment);exports.Segment=StyledSegment; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabContainer;}(_react.Component);
TabContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabContainer",
{},
_mapPropsToStyleNames2.default)(
TabContainer);exports.
TabContainer=StyledTabContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabContainer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabContainer=function(_Component){_inherits(TabContainer,_Component);function TabContainer(){_classCallCheck(this,TabContainer);return _possibleConstructorReturn(this,(TabContainer.__proto__||Object.getPrototypeOf(TabContainer)).apply(this,arguments));}_createClass(TabContainer,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabContainer;}(_react.Component);TabContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabContainer",{},_mapPropsToStyleNames2.default)(TabContainer);exports.TabContainer=StyledTabContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return TabHeadingNB;}(_react.Component);
TabHeadingNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.TabHeading",
{},
_mapPropsToStyleNames2.default)(
TabHeadingNB);exports.
TabHeading=StyledTabHeadingNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/TabHeading.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var TabHeadingNB=function(_Component){_inherits(TabHeadingNB,_Component);function TabHeadingNB(){_classCallCheck(this,TabHeadingNB);return _possibleConstructorReturn(this,(TabHeadingNB.__proto__||Object.getPrototypeOf(TabHeadingNB)).apply(this,arguments));}_createClass(TabHeadingNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return TabHeadingNB;}(_react.Component);TabHeadingNB.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledTabHeadingNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.TabHeading",{},_mapPropsToStyleNames2.default)(TabHeadingNB);exports.TabHeading=StyledTabHeadingNB; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));
}}]);return Toast;}(_react.Component);
Toast.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(
Toast);exports.
Toast=StyledToast;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Toast.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Toast=function(_Component){_inherits(Toast,_Component);function Toast(){_classCallCheck(this,Toast);return _possibleConstructorReturn(this,(Toast.__proto__||Object.getPrototypeOf(Toast)).apply(this,arguments));}_createClass(Toast,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:9}}));}}]);return Toast;}(_react.Component);Toast.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToast=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Toast",{},_mapPropsToStyleNames2.default)(Toast);exports.Toast=StyledToast; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render()
{var _this2=this;
return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));
}}]);return Separator;}(_react.Component);
Separator.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Separator",
{},
_mapPropsToStyleNames2.default)(
Separator);exports.
Separator=StyledSeparator;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Separator.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Separator=function(_Component){_inherits(Separator,_Component);function Separator(){_classCallCheck(this,Separator);return _possibleConstructorReturn(this,(Separator.__proto__||Object.getPrototypeOf(Separator)).apply(this,arguments));}_createClass(Separator,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:10}}));}}]);return Separator;}(_react.Component);Separator.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledSeparator=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Separator",{},_mapPropsToStyleNames2.default)(Separator);exports.Separator=StyledSeparator; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/basic/View.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _reactNativeEasyGrid=require("react-native-easy-grid");var _init=require("./init");var _init2=_interopRequireDefault(_init);var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}(0,_init2.default)();exports.getTheme=_components2.default;exports.variables=_platform2.default;exports.StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.Drawer=_Drawer2.default;exports.Button=_Button.Button;exports.DatePicker=_DatePicker.DatePicker;exports.IconNB=_IconNB.IconNB;exports.Icon=_Icon.Icon;exports.Header=_Header.Header;exports.Form=_Form.Form;exports.InputGroup=_InputGroup.InputGroup;exports.Input=_Input.Input;exports.Title=_Title.Title;exports.Fab=_Fab.Fab;exports.Left=_Left.Left;exports.Right=_Right.Right;exports.Body=_Body.Body;exports.Badge=_Badge.Badge;exports.CheckBox=_Checkbox.CheckBox;exports.Radio=_Radio.Radio;exports.Thumbnail=_Thumbnail.Thumbnail;exports.Card=_Card.Card;exports.CardItem=_CardItem.CardItem;exports.H1=_H.H1;exports.H2=_H2.H2;exports.H3=_H3.H3;exports.Spinner=_Spinner.Spinner;exports.Switch=_Switch.Switch;exports.Container=_Container.Container;exports.Content=_Content.Content;exports.Footer=_Footer.Footer;exports.Tab=_Tab.Tab;exports.Tabs=_Tabs2.default;exports.FooterTab=_FooterTab.FooterTab;exports.Picker=_Picker.PickerNB;exports.List=_List.List;exports.ListItem=_ListItem.ListItem;exports.Separator=_Separator.Separator;exports.DeckSwiper=_DeckSwiper.DeckSwiper;exports.Item=_Item.Item;exports.Subtitle=_Subtitle.Subtitle;exports.Label=_Label.Label;exports.Textarea=_Textarea.Textarea;exports.Col=_reactNativeEasyGrid.Col;exports.Row=_reactNativeEasyGrid.Row;exports.Grid=_reactNativeEasyGrid.Grid;exports.Text=_Text.Text;exports.TabContent=_Content.Content;exports.View=_View.ViewNB;exports.Toast=_ToastContainer.ToastContainer;exports.ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.ActionSheet=_Actionsheet.ActionSheetContainer;exports.TabHeading=_TabHeading.TabHeading;exports.TabContainer=_TabContainer.TabContainer;exports.DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.Segment=_Segment.Segment;exports.Root=_Root.Root;exports.SwipeRow=_SwipeRow.SwipeRow;exports.VueNativeBase=_vueNative2.default;exports.Accordion=_Accordion.Accordion;var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.mapPropsToStyleNames=mapPropsToStyleNames; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask> var _lodash=require("lodash");
<mask> var _reactNativeEasyGrid=require("react-native-easy-grid");
<mask>
<mask> var _init=require("./init");var _init2=_interopRequireDefault(_init);
<mask> var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);
<mask> var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
<mask> var _SwipeRow=require("./basic/SwipeRow");
<mask> var _Text=require("./basic/Text");
<mask> var _View=require("./basic/View");
<mask> var _Button=require("./basic/Button");
<mask> var _DatePicker=require("./basic/DatePicker");
<mask> var _TabHeading=require("./basic/TabHeading");
<mask> var _TabContainer=require("./basic/TabContainer");
<mask> var _IconNB=require("./basic/IconNB");
<mask> var _Icon=require("./basic/Icon");
<mask> var _Header=require("./basic/Header");
<mask> var _InputGroup=require("./basic/InputGroup");
<mask> var _Input=require("./basic/Input");
<mask> var _Title=require("./basic/Title");
<mask> var _Fab=require("./basic/Fab");
<mask> var _Left=require("./basic/Left");
<mask> var _Right=require("./basic/Right");
<mask> var _Body=require("./basic/Body");
<mask> var _Badge=require("./basic/Badge");
<mask> var _Checkbox=require("./basic/Checkbox");
<mask> var _Radio=require("./basic/Radio");
<mask> var _Thumbnail=require("./basic/Thumbnail");
<mask> var _Card=require("./basic/Card");
<mask> var _CardItem=require("./basic/CardItem");
<mask> var _H=require("./basic/H1");
<mask> var _H2=require("./basic/H2");
<mask> var _H3=require("./basic/H3");
<mask> var _Spinner=require("./basic/Spinner");
<mask> var _Switch=require("./basic/Switch");
<mask> var _Container=require("./basic/Container");
<mask> var _Root=require("./basic/Root");
<mask> var _Content=require("./basic/Content");
<mask> var _Footer=require("./basic/Footer");
<mask> var _FooterTab=require("./basic/FooterTab");
<mask> var _Form=require("./basic/Form");
<mask> var _ToastContainer=require("./basic/ToastContainer");
<mask> var _Actionsheet=require("./basic/Actionsheet");
<mask> var _Picker=require("./basic/Picker");
<mask> var _List=require("./basic/List");
<mask> var _ListItem=require("./basic/ListItem");
<mask> var _Separator=require("./basic/Separator");
<mask> var _DeckSwiper=require("./basic/DeckSwiper");
<mask> var _Item=require("./basic/Item");
<mask> var _Segment=require("./basic/Segment");
<mask> var _Label=require("./basic/Label");
<mask> var _Textarea=require("./basic/Textarea");
<mask> var _Tab=require("./basic/Tab");
<mask> var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
<mask> var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
<mask> var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
<mask> var _Subtitle=require("./basic/Subtitle");
<mask> var _Accordion=require("./basic/Accordion");
<mask>
<mask> var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask> (0,_init2.default)();exports.
<mask>
<mask>
<mask> getTheme=_components2.default;exports.
<mask> variables=_platform2.default;exports.
<mask> StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.
<mask> connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.
<mask> Drawer=_Drawer2.default;exports.
<mask> Button=_Button.Button;exports.
<mask> DatePicker=_DatePicker.DatePicker;exports.
<mask> IconNB=_IconNB.IconNB;exports.
<mask> Icon=_Icon.Icon;exports.
<mask> Header=_Header.Header;exports.
<mask> Form=_Form.Form;exports.
<mask> InputGroup=_InputGroup.InputGroup;exports.
<mask> Input=_Input.Input;exports.
<mask> Title=_Title.Title;exports.
<mask> Fab=_Fab.Fab;exports.
<mask> Left=_Left.Left;exports.
<mask> Right=_Right.Right;exports.
<mask> Body=_Body.Body;exports.
<mask> Badge=_Badge.Badge;exports.
<mask> CheckBox=_Checkbox.CheckBox;exports.
<mask> Radio=_Radio.Radio;exports.
<mask> Thumbnail=_Thumbnail.Thumbnail;exports.
<mask> Card=_Card.Card;exports.
<mask> CardItem=_CardItem.CardItem;exports.
<mask> H1=_H.H1;exports.
<mask> H2=_H2.H2;exports.
<mask> H3=_H3.H3;exports.
<mask> Spinner=_Spinner.Spinner;exports.
<mask> Switch=_Switch.Switch;exports.
<mask> Container=_Container.Container;exports.
<mask> Content=_Content.Content;exports.
<mask> Footer=_Footer.Footer;exports.
<mask> Tab=_Tab.Tab;exports.
<mask> Tabs=_Tabs2.default;exports.
<mask> FooterTab=_FooterTab.FooterTab;exports.
<mask> Picker=_Picker.PickerNB;exports.
<mask> List=_List.List;exports.
<mask> ListItem=_ListItem.ListItem;exports.
<mask> Separator=_Separator.Separator;exports.
<mask> DeckSwiper=_DeckSwiper.DeckSwiper;exports.
<mask> Item=_Item.Item;exports.
<mask> Subtitle=_Subtitle.Subtitle;exports.
<mask> Label=_Label.Label;exports.
<mask> Textarea=_Textarea.Textarea;exports.
<mask> Col=_reactNativeEasyGrid.Col;exports.
<mask> Row=_reactNativeEasyGrid.Row;exports.
<mask> Grid=_reactNativeEasyGrid.Grid;exports.
<mask> Text=_Text.Text;exports.
<mask> TabContent=_Content.Content;exports.
<mask> View=_View.ViewNB;exports.
<mask> Toast=_ToastContainer.ToastContainer;exports.
<mask> ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.
<mask> ActionSheet=_Actionsheet.ActionSheetContainer;exports.
<mask> TabHeading=_TabHeading.TabHeading;exports.
<mask> TabContainer=_TabContainer.TabContainer;exports.
<mask> DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.
<mask> Segment=_Segment.Segment;exports.
<mask> Root=_Root.Root;exports.
<mask> SwipeRow=_SwipeRow.SwipeRow;exports.
<mask> VueNativeBase=_vueNative2.default;exports.
<mask> Accordion=_Accordion.Accordion;
<mask>
<mask>
<mask> var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.
<mask>
<mask> mapPropsToStyleNames=mapPropsToStyleNames;
<mask> //# sourceMappingURL=index.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _reactNativeEasyGrid=require("react-native-easy-grid");
var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
var _SwipeRow=require("./basic/SwipeRow");
var _Text=require("./basic/Text");
var _View=require("./basic/View");
var _Button=require("./basic/Button");
var _DatePicker=require("./basic/DatePicker");
var _TabHeading=require("./basic/TabHeading");
var _TabContainer=require("./basic/TabContainer");
var _IconNB=require("./basic/IconNB");
var _Icon=require("./basic/Icon");
var _Header=require("./basic/Header");
var _InputGroup=require("./basic/InputGroup");
var _Input=require("./basic/Input");
var _Title=require("./basic/Title");
var _Fab=require("./basic/Fab");
var _Left=require("./basic/Left");
var _Right=require("./basic/Right");
var _Body=require("./basic/Body");
var _Badge=require("./basic/Badge");
var _Checkbox=require("./basic/Checkbox");
var _Radio=require("./basic/Radio");
var _Thumbnail=require("./basic/Thumbnail");
var _Card=require("./basic/Card");
var _CardItem=require("./basic/CardItem");
var _H=require("./basic/H1");
var _H2=require("./basic/H2");
var _H3=require("./basic/H3");
var _Spinner=require("./basic/Spinner");
var _Switch=require("./basic/Switch");
var _Container=require("./basic/Container");
var _Root=require("./basic/Root");
var _Content=require("./basic/Content");
var _Footer=require("./basic/Footer");
var _FooterTab=require("./basic/FooterTab");
var _Form=require("./basic/Form");
var _ToastContainer=require("./basic/ToastContainer");
var _Actionsheet=require("./basic/Actionsheet");
var _Picker=require("./basic/Picker");
var _List=require("./basic/List");
var _ListItem=require("./basic/ListItem");
var _Separator=require("./basic/Separator");
var _DeckSwiper=require("./basic/DeckSwiper");
var _Item=require("./basic/Item");
var _Segment=require("./basic/Segment");
var _Label=require("./basic/Label");
var _Textarea=require("./basic/Textarea");
var _Tab=require("./basic/Tab");
var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
var _Subtitle=require("./basic/Subtitle");
var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var VueNativeBasePlugin={
install:function install(Vue,options){
Vue.component("nb-drawer",_Drawer2.default);
Vue.component("nb-row",_reactNativeEasyGrid.Row);
Vue.component("nb-col",_reactNativeEasyGrid.Col);
Vue.component("nb-grid",_reactNativeEasyGrid.Grid);
Vue.component("nb-swipe-row",_SwipeRow.SwipeRow);
Vue.component("nb-text",_Text.Text);
Vue.component("nb-view",_View.ViewNB);
Vue.component("nb-button",_Button.Button);
Vue.component("nb-date-picker",_DatePicker.DatePicker);
Vue.component("nb-tab-heading",_TabHeading.TabHeading);
Vue.component("nb-tab-container",_TabContainer.TabContainer);
Vue.component("nb-icon-nb",_IconNB.IconNB);
Vue.component("nb-icon",_Icon.Icon);
Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider);
Vue.component("nb-header",_Header.Header);
Vue.component("nb-input-group",_InputGroup.InputGroup);
Vue.component("nb-input",_Input.Input);
Vue.component("nb-title",_Title.Title);
Vue.component("nb-fab",_Fab.Fab);
Vue.component("nb-left",_Left.Left);
Vue.component("nb-right",_Right.Right);
Vue.component("nb-body",_Body.Body);
Vue.component("nb-badge",_Badge.Badge);
Vue.component("nb-checkbox",_Checkbox.CheckBox);
Vue.component("nb-radio",_Radio.Radio);
Vue.component("nb-thumbnail",_Thumbnail.Thumbnail);
Vue.component("nb-card",_Card.Card);
Vue.component("nb-cardItem",_CardItem.CardItem);
Vue.component("nb-h1",_H.H1);
Vue.component("nb-h2",_H2.H2);
Vue.component("nb-h3",_H3.H3);
Vue.component("nb-spinner",_Spinner.Spinner);
Vue.component("nb-switch",_Switch.Switch);
Vue.component("nb-container",_Container.Container);
Vue.component("nb-root",_Root.Root);
Vue.component("nb-content",_Content.Content);
Vue.component("nb-tab-content",_Content.Content);
Vue.component("nb-footer",_Footer.Footer);
Vue.component("nb-footer-tab",_FooterTab.FooterTab);
Vue.component("nb-form",_Form.Form);
Vue.component("nb-toast",_ToastContainer.ToastContainer);
Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer);
Vue.component("nb-picker",_Picker.PickerNB);
Vue.component("nb-list",_List.List);
Vue.component("nb-list-item",_ListItem.ListItem);
Vue.component("nb-separator",_Separator.Separator);
Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper);
Vue.component("nb-item",_Item.Item);
Vue.component("nb-segment",_Segment.Segment);
Vue.component("nb-label",_Label.Label);
Vue.component("nb-textarea",_Textarea.Textarea);
Vue.component("nb-tab",_Tab.Tab);
Vue.component("nb-tabs",_Tabs2.default);
Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar);
Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab);
Vue.component("nb-subtitle",_Subtitle.Subtitle);
Vue.component("nb-accordion",_Accordion.Accordion);
}};exports.default=
VueNativeBasePlugin;
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _reactNativeEasyGrid=require("react-native-easy-grid");var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var VueNativeBasePlugin={install:function install(Vue,options){Vue.component("nb-drawer",_Drawer2.default);Vue.component("nb-row",_reactNativeEasyGrid.Row);Vue.component("nb-col",_reactNativeEasyGrid.Col);Vue.component("nb-grid",_reactNativeEasyGrid.Grid);Vue.component("nb-swipe-row",_SwipeRow.SwipeRow);Vue.component("nb-text",_Text.Text);Vue.component("nb-view",_View.ViewNB);Vue.component("nb-button",_Button.Button);Vue.component("nb-date-picker",_DatePicker.DatePicker);Vue.component("nb-tab-heading",_TabHeading.TabHeading);Vue.component("nb-tab-container",_TabContainer.TabContainer);Vue.component("nb-icon-nb",_IconNB.IconNB);Vue.component("nb-icon",_Icon.Icon);Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider);Vue.component("nb-header",_Header.Header);Vue.component("nb-input-group",_InputGroup.InputGroup);Vue.component("nb-input",_Input.Input);Vue.component("nb-title",_Title.Title);Vue.component("nb-fab",_Fab.Fab);Vue.component("nb-left",_Left.Left);Vue.component("nb-right",_Right.Right);Vue.component("nb-body",_Body.Body);Vue.component("nb-badge",_Badge.Badge);Vue.component("nb-checkbox",_Checkbox.CheckBox);Vue.component("nb-radio",_Radio.Radio);Vue.component("nb-thumbnail",_Thumbnail.Thumbnail);Vue.component("nb-card",_Card.Card);Vue.component("nb-cardItem",_CardItem.CardItem);Vue.component("nb-h1",_H.H1);Vue.component("nb-h2",_H2.H2);Vue.component("nb-h3",_H3.H3);Vue.component("nb-spinner",_Spinner.Spinner);Vue.component("nb-switch",_Switch.Switch);Vue.component("nb-container",_Container.Container);Vue.component("nb-root",_Root.Root);Vue.component("nb-content",_Content.Content);Vue.component("nb-tab-content",_Content.Content);Vue.component("nb-footer",_Footer.Footer);Vue.component("nb-footer-tab",_FooterTab.FooterTab);Vue.component("nb-form",_Form.Form);Vue.component("nb-toast",_ToastContainer.ToastContainer);Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer);Vue.component("nb-picker",_Picker.PickerNB);Vue.component("nb-list",_List.List);Vue.component("nb-list-item",_ListItem.ListItem);Vue.component("nb-separator",_Separator.Separator);Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper);Vue.component("nb-item",_Item.Item);Vue.component("nb-segment",_Segment.Segment);Vue.component("nb-label",_Label.Label);Vue.component("nb-textarea",_Textarea.Textarea);Vue.component("nb-tab",_Tab.Tab);Vue.component("nb-tabs",_Tabs2.default);Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar);Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab);Vue.component("nb-subtitle",_Subtitle.Subtitle);Vue.component("nb-accordion",_Accordion.Accordion);}};exports.default=VueNativeBasePlugin; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var Button=require("./Button");
var ReactNative=require("react-native");var
View=
ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
var WINDOW_WIDTH=Dimensions.get("window").width;
var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
scrollOffset:_propTypes2.default.number,
style:_utils.ViewPropTypes.style,
tabStyle:_utils.ViewPropTypes.style,
tabsContainerStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
onScroll:_propTypes2.default.func},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
scrollOffset:52,
activeTextColor:"navy",
inactiveTextColor:"black",
backgroundColor:_platform2.default.tabDefaultBg,
style:{},
tabStyle:{},
tabsContainerStyle:{},
underlineStyle:{},
tabFontSize:_platform2.default.tabFontSize};
},
getInitialState:function getInitialState(){
this._tabsMeasurements=[];
return{
_leftTabUnderline:new Animated.Value(0),
_widthTabUnderline:new Animated.Value(0),
_containerWidth:null};
},
componentDidMount:function componentDidMount(){
this.props.scrollValue.addListener(this.updateView);
},
updateView:function updateView(offset){
var position=Math.floor(offset.value);
var pageOffset=offset.value%1;
var tabCount=this.props.tabs.length;
var lastTabPosition=tabCount-1;
if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
return;
}
if(
this.necessarilyMeasurementsCompleted(
position,
position===lastTabPosition))
{
this.updateTabPanel(position,pageOffset);
this.updateTabUnderline(position,pageOffset,tabCount);
}
},
necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
return(
this._tabsMeasurements[position]&&(
isLastTab||this._tabsMeasurements[position+1])&&
this._tabContainerMeasurements&&
this._containerMeasurements);
},
updateTabPanel:function updateTabPanel(position,pageOffset){
var containerWidth=this._containerMeasurements.width;
var tabWidth=this._tabsMeasurements[position].width;
var nextTabMeasurements=this._tabsMeasurements[position+1];
var nextTabWidth=
nextTabMeasurements&&nextTabMeasurements.width||0;
var tabOffset=this._tabsMeasurements[position].left;
var absolutePageOffset=pageOffset*tabWidth;
var newScrollX=tabOffset+absolutePageOffset;
newScrollX-=
(containerWidth-
(1-pageOffset)*tabWidth-
pageOffset*nextTabWidth)/
2;
newScrollX=newScrollX>=0?newScrollX:0;
if(Platform.OS==="android"){
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}else{
var rightBoundScroll=
this._tabContainerMeasurements.width-
this._containerMeasurements.width;
newScrollX=
newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}
},
updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
var lineLeft=this._tabsMeasurements[position].left;
var lineRight=this._tabsMeasurements[position].right;
if(position<tabCount-1){
var nextTabLeft=this._tabsMeasurements[position+1].left;
var nextTabRight=this._tabsMeasurements[position+1].right;
var newLineLeft=
pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
var newLineRight=
pageOffset*nextTabRight+(1-pageOffset)*lineRight;
this.state._leftTabUnderline.setValue(newLineLeft);
this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
}else{
this.state._leftTabUnderline.setValue(lineLeft);
this.state._widthTabUnderline.setValue(lineRight-lineLeft);
}
},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
onLayoutHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
key:name+"_"+page,
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
_react2.default.createElement(_index.TabHeading,{
scrollable:true,
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
name))));
}else{
return(
_react2.default.createElement(Button,{
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
headerContent)));
}
},
measureTab:function measureTab(page,event){var _event$nativeEvent$la=
event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
this.updateView({value:this.props.scrollValue._value});
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var tabUnderlineStyle={
position:"absolute",
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var dynamicTabUnderline={
left:this.state._leftTabUnderline,
width:this.state._widthTabUnderline};
return(
_react2.default.createElement(View,{
style:[
styles.container,
{backgroundColor:this.props.backgroundColor},
this.props.style],
onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(ScrollView,{
automaticallyAdjustContentInsets:false,
ref:function ref(scrollView){
_this._scrollView=scrollView;
},
horizontal:true,
showsHorizontalScrollIndicator:false,
showsVerticalScrollIndicator:false,
directionalLockEnabled:true,
onScroll:this.props.onScroll,
bounces:false,
scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
_react2.default.createElement(View,{
style:[
styles.tabs,
{width:this.state._containerWidth},
this.props.tabsContainerStyle],
ref:"tabContainer",
onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
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]);
}),
_react2.default.createElement(Animated.View,{
style:[
tabUnderlineStyle,
dynamicTabUnderline,
this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
},
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
if(
!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
this.state._containerWidth)
{
this.setState({_containerWidth:null});
}
},
onTabContainerLayout:function onTabContainerLayout(e){
this._tabContainerMeasurements=e.nativeEvent.layout;
var width=this._tabContainerMeasurements.width;
if(width<WINDOW_WIDTH){
width=WINDOW_WIDTH;
}
this.setState({_containerWidth:width});
this.updateView({value:this.props.scrollValue._value});
},
onContainerLayout:function onContainerLayout(e){
this._containerMeasurements=e.nativeEvent.layout;
this.updateView({value:this.props.scrollValue._value});
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ScrollableTab",
{},
_mapPropsToStyleNames2.default)(
ScrollableTabBar);exports.
ScrollableTab=StyledTab;
var styles=StyleSheet.create({
tab:{
height:49,
alignItems:"center",
justifyContent:"center",
paddingLeft:20,
paddingRight:20},
container:{
height:50,
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderColor:"#ccc"},
tabs:{
flexDirection:"row",
justifyContent:"space-around"}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){
var keys=_lodash2.default.keys(props);
var values=_lodash2.default.values(props);
_lodash2.default.forEach(keys,function(key,index){
if(values[index]){
styleNames.push(key);
}
});
return styleNames;
};exports.default=
mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){var keys=_lodash2.default.keys(props);var values=_lodash2.default.values(props);_lodash2.default.forEach(keys,function(key,index){if(values[index]){styleNames.push(key);}});return styleNames;};exports.default=mapPropsToStyleNames; </s> remove "use_strict";
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
module.exports=function(incomingProps,defaultProps){
var computedProps={};
incomingProps=_lodash2.default.clone(incomingProps);
delete incomingProps.children;
var incomingPropsStyle=incomingProps.style;
delete incomingProps.style;
if(incomingProps){
_lodash2.default.assign(computedProps,defaultProps,incomingProps);
}else{
computedProps=defaultProps;
}
if(incomingPropsStyle){
var computedPropsStyle={};
computedProps.style={};
if(Array.isArray(incomingPropsStyle)){
_lodash2.default.forEach(incomingPropsStyle,function(style){
if(typeof style==="number"){
_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
}else{
_lodash2.default.merge(computedPropsStyle,style);
}
});
}else if(typeof incomingPropsStyle==="number"){
computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
}else{
computedPropsStyle=incomingPropsStyle;
}
_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
}
return computedProps;
};
</s> add "use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/index.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.default=setDefaultThemeStyle;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function setDefaultThemeStyle(){var theme=(0,_components2.default)();_nativeBaseShoutemTheme.Theme.setDefaultThemeStyle(theme);} | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.default=
<mask>
<mask>
<mask> setDefaultThemeStyle;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function setDefaultThemeStyle(){
<mask> var theme=(0,_components2.default)();
<mask> _nativeBaseShoutemTheme.Theme.setDefaultThemeStyle(theme);
<mask> }
<mask> //# sourceMappingURL=init.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");
var _reactNativeEasyGrid=require("react-native-easy-grid");
var _init=require("./init");var _init2=_interopRequireDefault(_init);
var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);
var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
var _SwipeRow=require("./basic/SwipeRow");
var _Text=require("./basic/Text");
var _View=require("./basic/View");
var _Button=require("./basic/Button");
var _DatePicker=require("./basic/DatePicker");
var _TabHeading=require("./basic/TabHeading");
var _TabContainer=require("./basic/TabContainer");
var _IconNB=require("./basic/IconNB");
var _Icon=require("./basic/Icon");
var _Header=require("./basic/Header");
var _InputGroup=require("./basic/InputGroup");
var _Input=require("./basic/Input");
var _Title=require("./basic/Title");
var _Fab=require("./basic/Fab");
var _Left=require("./basic/Left");
var _Right=require("./basic/Right");
var _Body=require("./basic/Body");
var _Badge=require("./basic/Badge");
var _Checkbox=require("./basic/Checkbox");
var _Radio=require("./basic/Radio");
var _Thumbnail=require("./basic/Thumbnail");
var _Card=require("./basic/Card");
var _CardItem=require("./basic/CardItem");
var _H=require("./basic/H1");
var _H2=require("./basic/H2");
var _H3=require("./basic/H3");
var _Spinner=require("./basic/Spinner");
var _Switch=require("./basic/Switch");
var _Container=require("./basic/Container");
var _Root=require("./basic/Root");
var _Content=require("./basic/Content");
var _Footer=require("./basic/Footer");
var _FooterTab=require("./basic/FooterTab");
var _Form=require("./basic/Form");
var _ToastContainer=require("./basic/ToastContainer");
var _Actionsheet=require("./basic/Actionsheet");
var _Picker=require("./basic/Picker");
var _List=require("./basic/List");
var _ListItem=require("./basic/ListItem");
var _Separator=require("./basic/Separator");
var _DeckSwiper=require("./basic/DeckSwiper");
var _Item=require("./basic/Item");
var _Segment=require("./basic/Segment");
var _Label=require("./basic/Label");
var _Textarea=require("./basic/Textarea");
var _Tab=require("./basic/Tab");
var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
var _Subtitle=require("./basic/Subtitle");
var _Accordion=require("./basic/Accordion");
var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
(0,_init2.default)();exports.
getTheme=_components2.default;exports.
variables=_platform2.default;exports.
StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.
connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.
Drawer=_Drawer2.default;exports.
Button=_Button.Button;exports.
DatePicker=_DatePicker.DatePicker;exports.
IconNB=_IconNB.IconNB;exports.
Icon=_Icon.Icon;exports.
Header=_Header.Header;exports.
Form=_Form.Form;exports.
InputGroup=_InputGroup.InputGroup;exports.
Input=_Input.Input;exports.
Title=_Title.Title;exports.
Fab=_Fab.Fab;exports.
Left=_Left.Left;exports.
Right=_Right.Right;exports.
Body=_Body.Body;exports.
Badge=_Badge.Badge;exports.
CheckBox=_Checkbox.CheckBox;exports.
Radio=_Radio.Radio;exports.
Thumbnail=_Thumbnail.Thumbnail;exports.
Card=_Card.Card;exports.
CardItem=_CardItem.CardItem;exports.
H1=_H.H1;exports.
H2=_H2.H2;exports.
H3=_H3.H3;exports.
Spinner=_Spinner.Spinner;exports.
Switch=_Switch.Switch;exports.
Container=_Container.Container;exports.
Content=_Content.Content;exports.
Footer=_Footer.Footer;exports.
Tab=_Tab.Tab;exports.
Tabs=_Tabs2.default;exports.
FooterTab=_FooterTab.FooterTab;exports.
Picker=_Picker.PickerNB;exports.
List=_List.List;exports.
ListItem=_ListItem.ListItem;exports.
Separator=_Separator.Separator;exports.
DeckSwiper=_DeckSwiper.DeckSwiper;exports.
Item=_Item.Item;exports.
Subtitle=_Subtitle.Subtitle;exports.
Label=_Label.Label;exports.
Textarea=_Textarea.Textarea;exports.
Col=_reactNativeEasyGrid.Col;exports.
Row=_reactNativeEasyGrid.Row;exports.
Grid=_reactNativeEasyGrid.Grid;exports.
Text=_Text.Text;exports.
TabContent=_Content.Content;exports.
View=_View.ViewNB;exports.
Toast=_ToastContainer.ToastContainer;exports.
ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.
ActionSheet=_Actionsheet.ActionSheetContainer;exports.
TabHeading=_TabHeading.TabHeading;exports.
TabContainer=_TabContainer.TabContainer;exports.
DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.
Segment=_Segment.Segment;exports.
Root=_Root.Root;exports.
SwipeRow=_SwipeRow.SwipeRow;exports.
VueNativeBase=_vueNative2.default;exports.
Accordion=_Accordion.Accordion;
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.
mapPropsToStyleNames=mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _reactNativeEasyGrid=require("react-native-easy-grid");var _init=require("./init");var _init2=_interopRequireDefault(_init);var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}(0,_init2.default)();exports.getTheme=_components2.default;exports.variables=_platform2.default;exports.StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.Drawer=_Drawer2.default;exports.Button=_Button.Button;exports.DatePicker=_DatePicker.DatePicker;exports.IconNB=_IconNB.IconNB;exports.Icon=_Icon.Icon;exports.Header=_Header.Header;exports.Form=_Form.Form;exports.InputGroup=_InputGroup.InputGroup;exports.Input=_Input.Input;exports.Title=_Title.Title;exports.Fab=_Fab.Fab;exports.Left=_Left.Left;exports.Right=_Right.Right;exports.Body=_Body.Body;exports.Badge=_Badge.Badge;exports.CheckBox=_Checkbox.CheckBox;exports.Radio=_Radio.Radio;exports.Thumbnail=_Thumbnail.Thumbnail;exports.Card=_Card.Card;exports.CardItem=_CardItem.CardItem;exports.H1=_H.H1;exports.H2=_H2.H2;exports.H3=_H3.H3;exports.Spinner=_Spinner.Spinner;exports.Switch=_Switch.Switch;exports.Container=_Container.Container;exports.Content=_Content.Content;exports.Footer=_Footer.Footer;exports.Tab=_Tab.Tab;exports.Tabs=_Tabs2.default;exports.FooterTab=_FooterTab.FooterTab;exports.Picker=_Picker.PickerNB;exports.List=_List.List;exports.ListItem=_ListItem.ListItem;exports.Separator=_Separator.Separator;exports.DeckSwiper=_DeckSwiper.DeckSwiper;exports.Item=_Item.Item;exports.Subtitle=_Subtitle.Subtitle;exports.Label=_Label.Label;exports.Textarea=_Textarea.Textarea;exports.Col=_reactNativeEasyGrid.Col;exports.Row=_reactNativeEasyGrid.Row;exports.Grid=_reactNativeEasyGrid.Grid;exports.Text=_Text.Text;exports.TabContent=_Content.Content;exports.View=_View.ViewNB;exports.Toast=_ToastContainer.ToastContainer;exports.ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.ActionSheet=_Actionsheet.ActionSheetContainer;exports.TabHeading=_TabHeading.TabHeading;exports.TabContainer=_TabContainer.TabContainer;exports.DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.Segment=_Segment.Segment;exports.Root=_Root.Root;exports.SwipeRow=_SwipeRow.SwipeRow;exports.VueNativeBase=_vueNative2.default;exports.Accordion=_Accordion.Accordion;var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.mapPropsToStyleNames=mapPropsToStyleNames; </s> remove "use_strict";
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
module.exports=function(incomingProps,defaultProps){
var computedProps={};
incomingProps=_lodash2.default.clone(incomingProps);
delete incomingProps.children;
var incomingPropsStyle=incomingProps.style;
delete incomingProps.style;
if(incomingProps){
_lodash2.default.assign(computedProps,defaultProps,incomingProps);
}else{
computedProps=defaultProps;
}
if(incomingPropsStyle){
var computedPropsStyle={};
computedProps.style={};
if(Array.isArray(incomingPropsStyle)){
_lodash2.default.forEach(incomingPropsStyle,function(style){
if(typeof style==="number"){
_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
}else{
_lodash2.default.merge(computedPropsStyle,style);
}
});
}else if(typeof incomingPropsStyle==="number"){
computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
}else{
computedPropsStyle=incomingPropsStyle;
}
_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
}
return computedProps;
};
</s> add "use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){
var keys=_lodash2.default.keys(props);
var values=_lodash2.default.values(props);
_lodash2.default.forEach(keys,function(key,index){
if(values[index]){
styleNames.push(key);
}
});
return styleNames;
};exports.default=
mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){var keys=_lodash2.default.keys(props);var values=_lodash2.default.values(props);_lodash2.default.forEach(keys,function(key,index){if(values[index]){styleNames.push(key);}});return styleNames;};exports.default=mapPropsToStyleNames; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/init.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var badgeTheme={".primary":{backgroundColor:variables.btnPrimaryBg},".warning":{backgroundColor:variables.btnWarningBg},".info":{backgroundColor:variables.btnInfoBg},".success":{backgroundColor:variables.btnSuccessBg},".danger":{backgroundColor:variables.btnDangerBg},"NativeBase.Text":{color:variables.badgeColor,fontSize:variables.fontSizeBase,lineHeight:variables.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:variables.badgeBg,padding:variables.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:variables.platform==="ios"?"center":undefined,borderRadius:13.5,height:27};return badgeTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var badgeTheme={
<mask> ".primary":{
<mask> backgroundColor:variables.btnPrimaryBg},
<mask>
<mask> ".warning":{
<mask> backgroundColor:variables.btnWarningBg},
<mask>
<mask> ".info":{
<mask> backgroundColor:variables.btnInfoBg},
<mask>
<mask> ".success":{
<mask> backgroundColor:variables.btnSuccessBg},
<mask>
<mask> ".danger":{
<mask> backgroundColor:variables.btnDangerBg},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.badgeColor,
<mask> fontSize:variables.fontSizeBase,
<mask> lineHeight:variables.lineHeight-1,
<mask> textAlign:"center",
<mask> paddingHorizontal:3},
<mask>
<mask> backgroundColor:variables.badgeBg,
<mask> padding:variables.badgePadding,
<mask> paddingHorizontal:6,
<mask> alignSelf:"flex-start",
<mask> justifyContent:variables.platform==="ios"?"center":undefined,
<mask> borderRadius:13.5,
<mask> height:27};
<mask>
<mask> return badgeTheme;
<mask> };
<mask> //# sourceMappingURL=Badge.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var titleTheme={
fontSize:variables.titleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.titleFontColor,
fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,
paddingTop:1};
return titleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var titleTheme={fontSize:variables.titleFontSize,fontFamily:variables.titleFontfamily,color:variables.titleFontColor,fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,paddingTop:1};return titleTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var tabHeadingTheme={
flexDirection:"row",
backgroundColor:variables.tabDefaultBg,
flex:1,
alignItems:"center",
justifyContent:"center",
".scrollable":{
paddingHorizontal:20,
flex:platform==="android"?0:1,
minWidth:platform==="android"?undefined:60},
"NativeBase.Text":{
color:variables.topTabBarTextColor,
marginHorizontal:7},
"NativeBase.Icon":{
color:variables.topTabBarTextColor,
fontSize:platform==="ios"?26:undefined},
".active":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.topTabBarActiveTextColor}}};
return tabHeadingTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Badge.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var bodyTheme={
<mask> flex:1,
<mask> alignItems:'center',
<mask> alignSelf:'center'};
<mask>
<mask>
<mask> return bodyTheme;
<mask> };
<mask> //# sourceMappingURL=Body.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var leftTheme={
flex:1,
alignSelf:'center',
alignItems:'flex-start'};
return leftTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var rightTheme={
'NativeBase.Button':{
alignSelf:null},
flex:1,
alignSelf:'center',
alignItems:'flex-end'};
return rightTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputTheme={
'.multiline':{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize};
return inputTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
'.group':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12,
'.bordered':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12}},
'.bordered':{
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:35,
paddingTop:variables.listItemPadding+2,
paddingBottom:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderTopWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
'NativeBase.Text':{
fontSize:variables.tabBarTextSize-2,
color:'#777'},
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:38,
backgroundColor:'#F0EFF5',
flex:1,
justifyContent:'center',
paddingLeft:variables.listItemPadding+5};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var thumbnailTheme={
'.square':{
borderRadius:0,
'.small':{
width:36,
height:36,
borderRadius:0},
'.large':{
width:80,
height:80,
borderRadius:0}},
'.small':{
width:36,
height:36,
borderRadius:18,
'.square':{
borderRadius:0}},
'.large':{
width:80,
height:80,
borderRadius:40,
'.square':{
borderRadius:0}},
width:56,
height:56,
borderRadius:28};
return thumbnailTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var thumbnailTheme={'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28};return thumbnailTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Body.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask> var darkCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.brandDark},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.brandDark},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.brandDark}};
<mask>
<mask>
<mask> var lightCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.brandLight},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.brandLight},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.brandLight}};
<mask>
<mask>
<mask> var primaryCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.btnPrimaryBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnPrimaryBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnPrimaryBg}};
<mask>
<mask>
<mask> var successCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.btnSuccessBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnSuccessBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnSuccessBg}};
<mask>
<mask>
<mask> var infoCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.btnInfoBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnInfoBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnInfoBg}};
<mask>
<mask>
<mask> var warningCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.btnWarningBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnWarningBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnWarningBg}};
<mask>
<mask>
<mask> var dangerCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.btnDangerBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnDangerBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnDangerBg}};
<mask>
<mask>
<mask> var buttonTheme={
<mask> ".disabled":{
<mask> ".transparent":{
<mask> backgroundColor:null,
<mask> "NativeBase.Text":{
<mask> color:variables.btnDisabledBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnDisabledBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnDisabledBg}},
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.brandLight},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.brandLight},
<mask>
<mask> backgroundColor:variables.btnDisabledBg},
<mask>
<mask> ".bordered":_extends({
<mask> ".dark":_extends({},
<mask> darkCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.brandDark,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".light":_extends({},
<mask> lightCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.brandLight,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".primary":_extends({},
<mask> primaryCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnPrimaryBg,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".success":_extends({},
<mask> successCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnSuccessBg,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".info":_extends({},
<mask> infoCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnInfoBg,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".warning":_extends({},
<mask> warningCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnWarningBg,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".danger":_extends({},
<mask> dangerCommon,{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnDangerBg,
<mask> borderWidth:variables.borderWidth*2}),
<mask>
<mask> ".disabled":{
<mask> backgroundColor:null,
<mask> borderColor:variables.btnDisabledBg,
<mask> borderWidth:variables.borderWidth*2,
<mask> "NativeBase.Text":{
<mask> color:variables.btnDisabledBg}}},
<mask>
<mask>
<mask> primaryCommon,{
<mask> borderWidth:variables.borderWidth*2,
<mask> elevation:null,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowOpacity:null,
<mask> shadowRadius:null,
<mask> backgroundColor:"transparent"}),
<mask>
<mask>
<mask> ".dark":{
<mask> ".bordered":_extends({},
<mask> darkCommon),
<mask>
<mask> backgroundColor:variables.brandDark},
<mask>
<mask> ".light":_extends({
<mask> ".transparent":_extends({},
<mask> lightCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".bordered":_extends({},
<mask> lightCommon)},
<mask>
<mask> darkCommon,{
<mask> backgroundColor:variables.brandLight}),
<mask>
<mask>
<mask> ".primary":{
<mask> ".bordered":_extends({},
<mask> primaryCommon),
<mask>
<mask> backgroundColor:variables.btnPrimaryBg},
<mask>
<mask>
<mask> ".success":{
<mask> ".bordered":_extends({},
<mask> successCommon),
<mask>
<mask> backgroundColor:variables.btnSuccessBg},
<mask>
<mask>
<mask> ".info":{
<mask> ".bordered":_extends({},
<mask> infoCommon),
<mask>
<mask> backgroundColor:variables.btnInfoBg},
<mask>
<mask>
<mask> ".warning":{
<mask> ".bordered":_extends({},
<mask> warningCommon),
<mask>
<mask> backgroundColor:variables.btnWarningBg},
<mask>
<mask>
<mask> ".danger":{
<mask> ".bordered":_extends({},
<mask> dangerCommon),
<mask>
<mask> backgroundColor:variables.btnDangerBg},
<mask>
<mask>
<mask> ".block":{
<mask> justifyContent:"center",
<mask> alignSelf:"stretch"},
<mask>
<mask>
<mask> ".full":{
<mask> justifyContent:"center",
<mask> alignSelf:"stretch",
<mask> borderRadius:0},
<mask>
<mask>
<mask> ".rounded":{
<mask>
<mask> borderRadius:variables.borderRadiusLarge},
<mask>
<mask>
<mask> ".transparent":_extends({
<mask> backgroundColor:"transparent",
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask> primaryCommon,{
<mask> ".dark":_extends({},
<mask> darkCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".danger":_extends({},
<mask> dangerCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".warning":_extends({},
<mask> warningCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".info":_extends({},
<mask> infoCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".primary":_extends({},
<mask> primaryCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".success":_extends({},
<mask> successCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".light":_extends({},
<mask> lightCommon,{
<mask> backgroundColor:null}),
<mask>
<mask> ".disabled":{
<mask> backgroundColor:"transparent",
<mask> borderColor:variables.btnDisabledBg,
<mask> borderWidth:variables.borderWidth*2,
<mask> "NativeBase.Text":{
<mask> color:variables.btnDisabledBg},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.btnDisabledBg},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.btnDisabledBg}}}),
<mask>
<mask>
<mask>
<mask>
<mask> ".small":{
<mask> height:30,
<mask> "NativeBase.Text":{
<mask> fontSize:14},
<mask>
<mask> "NativeBase.Icon":{
<mask> fontSize:20,
<mask> paddingTop:0},
<mask>
<mask> "NativeBase.IconNB":{
<mask> fontSize:20,
<mask> paddingTop:0}},
<mask>
<mask>
<mask>
<mask> ".large":{
<mask> height:60,
<mask> "NativeBase.Text":{
<mask> fontSize:22}},
<mask>
<mask>
<mask>
<mask> ".capitalize":{},
<mask>
<mask> ".vertical":{
<mask> flexDirection:"column",
<mask> height:null},
<mask>
<mask>
<mask> "NativeBase.Text":{
<mask> fontFamily:variables.btnFontFamily,
<mask> marginLeft:0,
<mask> marginRight:0,
<mask> color:variables.inverseTextColor,
<mask> fontSize:variables.btnTextSize,
<mask> paddingHorizontal:16,
<mask> backgroundColor:"transparent"},
<mask>
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.inverseTextColor,
<mask> fontSize:24,
<mask> marginHorizontal:16,
<mask> paddingTop:platform==="ios"?2:undefined},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.inverseTextColor,
<mask> fontSize:24,
<mask> marginHorizontal:16,
<mask> paddingTop:platform==="ios"?2:undefined},
<mask>
<mask>
<mask> ".iconLeft":{
<mask> "NativeBase.Text":{
<mask> marginLeft:0},
<mask>
<mask> "NativeBase.IconNB":{
<mask> marginRight:0,
<mask> marginLeft:16},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginRight:0,
<mask> marginLeft:16}},
<mask>
<mask>
<mask> ".iconRight":{
<mask> "NativeBase.Text":{
<mask> marginRight:0},
<mask>
<mask> "NativeBase.IconNB":{
<mask> marginLeft:0,
<mask> marginRight:16},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginLeft:0,
<mask> marginRight:16}},
<mask>
<mask>
<mask> ".picker":{
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> fontSize:16,
<mask> lineHeight:null}}},
<mask>
<mask>
<mask>
<mask>
<mask> paddingVertical:variables.buttonPadding,
<mask>
<mask> backgroundColor:variables.btnPrimaryBg,
<mask> borderRadius:variables.borderRadiusBase,
<mask> borderColor:variables.btnPrimaryBg,
<mask> borderWidth:null,
<mask> height:45,
<mask> alignSelf:"flex-start",
<mask> flexDirection:"row",
<mask> elevation:2,
<mask> shadowColor:platformStyle==="material"?variables.brandDark:undefined,
<mask> shadowOffset:
<mask> platformStyle==="material"?{width:0,height:2}:undefined,
<mask> shadowOpacity:platformStyle==="material"?0.2:undefined,
<mask> shadowRadius:platformStyle==="material"?1.2:undefined,
<mask> alignItems:"center",
<mask> justifyContent:"space-between"};
<mask>
<mask> return buttonTheme;
<mask> };
<mask> //# sourceMappingURL=Button.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Button.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var cardTheme={".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,flex:1,borderWidth:variables.borderWidth,borderRadius:variables.cardBorderRadius,borderColor:variables.cardBorderColor,flexWrap:"nowrap",backgroundColor:variables.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.1,shadowRadius:1.5,elevation:3};return cardTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var cardTheme={
<mask> ".transparent":{
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowOpacity:null,
<mask> shadowRadius:null,
<mask> elevation:null,
<mask> backgroundColor:"transparent",
<mask> borderWidth:0},
<mask>
<mask> ".noShadow":{
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowOpacity:null,
<mask> elevation:null},
<mask>
<mask> marginVertical:5,
<mask> marginHorizontal:2,
<mask> flex:1,
<mask> borderWidth:variables.borderWidth,
<mask> borderRadius:variables.cardBorderRadius,
<mask> borderColor:variables.cardBorderColor,
<mask> flexWrap:"nowrap",
<mask> backgroundColor:variables.cardDefaultBg,
<mask> shadowColor:"#000",
<mask> shadowOffset:{width:0,height:2},
<mask> shadowOpacity:0.1,
<mask> shadowRadius:1.5,
<mask> elevation:3};
<mask>
<mask>
<mask> return cardTheme;
<mask> };
<mask> //# sourceMappingURL=Card.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Card.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask> var transparentBtnCommon={
<mask> "NativeBase.Text":{
<mask> fontSize:variables.DefaultFontSize-3,
<mask> color:variables.sTabBarActiveTextColor},
<mask>
<mask> "NativeBase.Icon":{
<mask> fontSize:variables.iconFontSize-10,
<mask> color:variables.sTabBarActiveTextColor,
<mask> marginHorizontal:null},
<mask>
<mask> "NativeBase.IconNB":{
<mask> fontSize:variables.iconFontSize-10,
<mask> color:variables.sTabBarActiveTextColor},
<mask>
<mask> paddingVertical:null,
<mask> paddingHorizontal:null};
<mask>
<mask>
<mask> var cardItemTheme={
<mask> "NativeBase.Left":{
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"400",
<mask> marginRight:20}},
<mask>
<mask>
<mask> flex:1,
<mask> marginLeft:10,
<mask> alignItems:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> fontSize:variables.iconFontSize},
<mask>
<mask> "NativeBase.IconNB":{
<mask> fontSize:variables.iconFontSize},
<mask>
<mask> "NativeBase.Text":{
<mask> marginLeft:10,
<mask> alignSelf:"center"},
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":_extends({},
<mask> transparentBtnCommon,{
<mask> paddingRight:variables.cardItemPadding+5})},
<mask>
<mask>
<mask> flex:1,
<mask> flexDirection:"row",
<mask> alignItems:"center"},
<mask>
<mask> ".content":{
<mask> "NativeBase.Text":{
<mask> color:platform==="ios"?"#555":"#222",
<mask> fontSize:variables.DefaultFontSize-2}},
<mask>
<mask>
<mask> ".cardBody":{
<mask> padding:-5,
<mask> "NativeBase.Text":{
<mask> marginTop:5}},
<mask>
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200",
<mask> marginRight:20}},
<mask>
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":_extends({},
<mask> transparentBtnCommon,{
<mask> paddingRight:variables.cardItemPadding+5,
<mask> alignSelf:"stretch"})},
<mask>
<mask>
<mask> flex:1,
<mask> alignSelf:"stretch",
<mask> alignItems:"flex-start"},
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Badge":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":_extends({},
<mask> transparentBtnCommon),
<mask>
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> alignSelf:null,
<mask> fontSize:variables.iconFontSize-8,
<mask> color:variables.cardBorderColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> alignSelf:null,
<mask> fontSize:variables.iconFontSize-8,
<mask> color:variables.cardBorderColor},
<mask>
<mask> "NativeBase.Text":{
<mask> fontSize:variables.DefaultFontSize-1,
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Thumbnail":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Image":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Radio":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Checkbox":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Switch":{
<mask> alignSelf:null},
<mask>
<mask> flex:0.8},
<mask>
<mask> ".header":{
<mask> "NativeBase.Text":{
<mask> fontSize:16,
<mask> fontWeight:platform==="ios"?"600":"500"},
<mask>
<mask> ".bordered":{
<mask> "NativeBase.Text":{
<mask> color:variables.brandPrimary,
<mask> fontWeight:platform==="ios"?"600":"500"},
<mask>
<mask> borderBottomWidth:variables.borderWidth},
<mask>
<mask> borderBottomWidth:null,
<mask> paddingVertical:variables.cardItemPadding+5},
<mask>
<mask> ".footer":{
<mask> "NativeBase.Text":{
<mask> fontSize:16,
<mask> fontWeight:platform==="ios"?"600":"500"},
<mask>
<mask> ".bordered":{
<mask> "NativeBase.Text":{
<mask> color:variables.brandPrimary,
<mask> fontWeight:platform==="ios"?"600":"500"},
<mask>
<mask> borderTopWidth:variables.borderWidth},
<mask>
<mask> borderBottomWidth:null},
<mask>
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200"}},
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> width:variables.iconFontSize+5,
<mask> fontSize:variables.iconFontSize-2},
<mask>
<mask> "NativeBase.IconNB":{
<mask> width:variables.iconFontSize+5,
<mask> fontSize:variables.iconFontSize-2},
<mask>
<mask> ".bordered":{
<mask> borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
<mask> borderColor:variables.cardBorderColor},
<mask>
<mask> ".first":{
<mask> borderTopLeftRadius:variables.cardBorderRadius,
<mask> borderTopRightRadius:variables.cardBorderRadius},
<mask>
<mask> ".last":{
<mask> borderBottomLeftRadius:variables.cardBorderRadius,
<mask> borderBottomRightRadius:variables.cardBorderRadius},
<mask>
<mask> flexDirection:"row",
<mask> alignItems:"center",
<mask> borderRadius:2,
<mask> padding:variables.cardItemPadding+5,
<mask> paddingVertical:variables.cardItemPadding,
<mask> backgroundColor:variables.cardDefaultBg};
<mask>
<mask>
<mask> return cardItemTheme;
<mask> };
<mask> //# sourceMappingURL=CardItem.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/CardItem.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var checkBoxTheme={".checked":{"NativeBase.Icon":{color:variables.checkboxTickColor},"NativeBase.IconNB":{color:variables.checkboxTickColor}},"NativeBase.Icon":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},"NativeBase.IconNB":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},borderRadius:variables.CheckboxRadius,overflow:"hidden",width:variables.checkboxSize,height:variables.checkboxSize,borderWidth:variables.CheckboxBorderWidth,paddingLeft:variables.CheckboxPaddingLeft-1,paddingBottom:variables.CheckboxPaddingBottom,left:10};return checkBoxTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var checkBoxTheme={
<mask> ".checked":{
<mask> "NativeBase.Icon":{
<mask> color:variables.checkboxTickColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.checkboxTickColor}},
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> color:"transparent",
<mask> lineHeight:variables.CheckboxIconSize,
<mask> marginTop:variables.CheckboxIconMarginTop,
<mask> fontSize:variables.CheckboxFontSize},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:"transparent",
<mask> lineHeight:variables.CheckboxIconSize,
<mask> marginTop:variables.CheckboxIconMarginTop,
<mask> fontSize:variables.CheckboxFontSize},
<mask>
<mask> borderRadius:variables.CheckboxRadius,
<mask> overflow:"hidden",
<mask> width:variables.checkboxSize,
<mask> height:variables.checkboxSize,
<mask> borderWidth:variables.CheckboxBorderWidth,
<mask> paddingLeft:variables.CheckboxPaddingLeft-1,
<mask> paddingBottom:variables.CheckboxPaddingBottom,
<mask> left:10};
<mask>
<mask>
<mask> return checkBoxTheme;
<mask> };
<mask> //# sourceMappingURL=CheckBox.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var fabTheme={
"NativeBase.Button":{
alignItems:"center",
padding:null,
justifyContent:"center",
"NativeBase.Icon":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0},
"NativeBase.IconNB":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0}}};
return fabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var itemTheme={
".floatingLabel":{
"NativeBase.Input":{
height:50,
top:8,
paddingTop:3,
paddingBottom:7,
".multiline":{
minHeight:variables.inputHeightBase,
paddingTop:_reactNative.Platform.OS==="ios"?10:3,
paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
"NativeBase.Label":{
top:8},
"NativeBase.Icon":{
top:6,
paddingTop:8},
"NativeBase.IconNB":{
top:6,
paddingTop:8}},
".fixedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
flex:1,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
flex:2,
fontSize:variables.inputFontSize}},
".stackedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingTop:5,
alignSelf:"flex-start",
fontSize:variables.inputFontSize-2},
"NativeBase.Icon":{
marginTop:36},
"NativeBase.Input":{
alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
flex:1,
width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight-6,
".secureTextEntry":{
fontSize:variables.inputFontSize-4},
".multiline":{
paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
flexDirection:null,
minHeight:variables.inputHeightBase+15},
".inlineLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingRight:20,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
paddingLeft:5,
fontSize:variables.inputFontSize},
flexDirection:"row"},
"NativeBase.Label":{
fontSize:variables.inputFontSize,
color:variables.inputColorPlaceholder,
paddingRight:5},
"NativeBase.Icon":{
fontSize:24,
paddingRight:8},
"NativeBase.IconNB":{
fontSize:24,
paddingRight:8},
"NativeBase.Input":{
".multiline":{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
flex:1,
top:_reactNative.Platform.OS==="ios"?1.5:undefined,
fontSize:variables.inputFontSize},
".underline":{
"NativeBase.Input":{
paddingLeft:15},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderColor:variables.inputBorderColor},
".rounded":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderRadius:30,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
".picker":{
marginLeft:0},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center",
marginLeft:2};
return itemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/CheckBox.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask> var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var theme={
<mask> flex:1,
<mask> height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};
<mask>
<mask>
<mask> return theme;
<mask> };
<mask> //# sourceMappingURL=Container.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
'.group':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12,
'.bordered':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12}},
'.bordered':{
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:35,
paddingTop:variables.listItemPadding+2,
paddingBottom:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderTopWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
'NativeBase.Text':{
fontSize:variables.tabBarTextSize-2,
color:'#777'},
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:38,
backgroundColor:'#F0EFF5',
flex:1,
justifyContent:'center',
paddingLeft:variables.listItemPadding+5};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var theme={
"NativeBase.Item":{
".fixedLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".inlineLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".placeholderLabel":{
"NativeBase.Input":{}},
".stackedLabel":{
"NativeBase.Label":{
top:5,
paddingLeft:null},
"NativeBase.Input":{
paddingLeft:null,
marginLeft:null},
"NativeBase.Icon":{
marginTop:36},
marginLeft:15},
".floatingLabel":{
"NativeBase.Input":{
paddingLeft:null,
top:10,
marginLeft:null},
"NativeBase.Label":{
left:0,
top:6},
"NativeBase.Icon":{
top:6},
marginTop:15,
marginLeft:15},
".regular":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".rounded":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".underline":{
"NativeBase.Label":{
left:0,
top:0,
position:"relative"},
"NativeBase.Input":{
left:-15},
marginLeft:15},
".last":{
marginLeft:0,
paddingLeft:15},
"NativeBase.Label":{
paddingRight:5},
marginLeft:15}};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var theme={"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var contentTheme={
flex:1,
backgroundColor:"transparent",
"NativeBase.Segment":{
borderWidth:0,
backgroundColor:"transparent"}};
return contentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var contentTheme={flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}};return contentTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var tabHeadingTheme={
flexDirection:"row",
backgroundColor:variables.tabDefaultBg,
flex:1,
alignItems:"center",
justifyContent:"center",
".scrollable":{
paddingHorizontal:20,
flex:platform==="android"?0:1,
minWidth:platform==="android"?undefined:60},
"NativeBase.Text":{
color:variables.topTabBarTextColor,
marginHorizontal:7},
"NativeBase.Icon":{
color:variables.topTabBarTextColor,
fontSize:platform==="ios"?26:undefined},
".active":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.topTabBarActiveTextColor}}};
return tabHeadingTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Container.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var contentTheme={flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}};return contentTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var contentTheme={
<mask> flex:1,
<mask> backgroundColor:"transparent",
<mask> "NativeBase.Segment":{
<mask> borderWidth:0,
<mask> backgroundColor:"transparent"}};
<mask>
<mask>
<mask>
<mask> return contentTheme;
<mask> };
<mask> //# sourceMappingURL=Content.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var cardTheme={
".transparent":{
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
elevation:null,
backgroundColor:"transparent",
borderWidth:0},
".noShadow":{
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
elevation:null},
marginVertical:5,
marginHorizontal:2,
flex:1,
borderWidth:variables.borderWidth,
borderRadius:variables.cardBorderRadius,
borderColor:variables.cardBorderColor,
flexWrap:"nowrap",
backgroundColor:variables.cardDefaultBg,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.1,
shadowRadius:1.5,
elevation:3};
return cardTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var cardTheme={".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,flex:1,borderWidth:variables.borderWidth,borderRadius:variables.cardBorderRadius,borderColor:variables.cardBorderColor,flexWrap:"nowrap",backgroundColor:variables.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.1,shadowRadius:1.5,elevation:3};return cardTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Content.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask>
<mask> var fabTheme={
<mask> "NativeBase.Button":{
<mask> alignItems:"center",
<mask> padding:null,
<mask> justifyContent:"center",
<mask> "NativeBase.Icon":{
<mask> alignSelf:"center",
<mask> fontSize:20,
<mask> marginLeft:0,
<mask> marginRight:0},
<mask>
<mask> "NativeBase.IconNB":{
<mask> alignSelf:"center",
<mask> fontSize:20,
<mask> marginLeft:0,
<mask> marginRight:0}}};
<mask>
<mask>
<mask>
<mask>
<mask> return fabTheme;
<mask> };
<mask> //# sourceMappingURL=Fab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var segmentTheme={
height:45,
borderColor:variables.segmentBorderColorMain,
flexDirection:"row",
justifyContent:"center",
backgroundColor:variables.segmentBackgroundColor,
"NativeBase.Button":{
alignSelf:"center",
borderRadius:0,
paddingTop:3,
paddingBottom:3,
height:30,
backgroundColor:"transparent",
borderWidth:1,
borderLeftWidth:0,
borderColor:variables.segmentBorderColor,
elevation:0,
".active":{
backgroundColor:variables.segmentActiveBackgroundColor,
"NativeBase.Text":{
color:variables.segmentActiveTextColor},
"NativeBase.Icon":{
color:variables.segmentActiveTextColor}},
".first":{
borderTopLeftRadius:platform==="ios"?5:undefined,
borderBottomLeftRadius:platform==="ios"?5:undefined,
borderLeftWidth:1},
".last":{
borderTopRightRadius:platform==="ios"?5:undefined,
borderBottomRightRadius:platform==="ios"?5:undefined},
"NativeBase.Text":{
color:variables.segmentTextColor,
fontSize:14},
"NativeBase.Icon":{
fontSize:22,
paddingTop:0,
color:variables.segmentTextColor}}};
return segmentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Fab.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask>
<mask> var iconCommon={
<mask> "NativeBase.Icon":{
<mask> color:variables.tabBarActiveTextColor}};
<mask>
<mask>
<mask> var iconNBCommon={
<mask> "NativeBase.IconNB":{
<mask> color:variables.tabBarActiveTextColor}};
<mask>
<mask>
<mask> var textCommon={
<mask> "NativeBase.Text":{
<mask> color:variables.tabBarActiveTextColor}};
<mask>
<mask>
<mask> var footerTheme={
<mask> "NativeBase.Left":{
<mask> "NativeBase.Button":_extends({
<mask> ".transparent":_extends({
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask> iconCommon,
<mask> iconNBCommon,
<mask> textCommon),
<mask>
<mask> alignSelf:null},
<mask> iconCommon,
<mask> iconNBCommon),
<mask>
<mask>
<mask> flex:1,
<mask> alignSelf:"center",
<mask> alignItems:"flex-start"},
<mask>
<mask> "NativeBase.Body":{
<mask> flex:1,
<mask> alignItems:"center",
<mask> alignSelf:"center",
<mask> flexDirection:"row",
<mask> "NativeBase.Button":_extends({
<mask> alignSelf:"center",
<mask> ".transparent":_extends({
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask> iconCommon,
<mask> iconNBCommon,
<mask> textCommon),
<mask>
<mask> ".full":{
<mask> height:variables.footerHeight,
<mask> paddingBottom:variables.footerPaddingBottom,
<mask> flex:1}},
<mask>
<mask> iconCommon,
<mask> iconNBCommon)},
<mask>
<mask>
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Button":_extends({
<mask> ".transparent":_extends({
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask> iconCommon,
<mask> iconNBCommon,
<mask> textCommon),
<mask>
<mask> alignSelf:null},
<mask> iconCommon,
<mask> iconNBCommon),
<mask>
<mask>
<mask> flex:1,
<mask> alignSelf:"center",
<mask> alignItems:"flex-end"},
<mask>
<mask> backgroundColor:variables.footerDefaultBg,
<mask> flexDirection:"row",
<mask> justifyContent:"center",
<mask> borderTopWidth:
<mask> platform==="ios"&&platformStyle!=="material"?
<mask> variables.borderWidth:
<mask> undefined,
<mask> borderColor:
<mask> platform==="ios"&&platformStyle!=="material"?
<mask> "#cbcbcb":
<mask> undefined,
<mask> height:variables.footerHeight,
<mask> paddingBottom:variables.footerPaddingBottom,
<mask> elevation:3,
<mask> left:0,
<mask> right:0};
<mask>
<mask> return footerTheme;
<mask> };
<mask> //# sourceMappingURL=Footer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Footer.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask>
<mask> var footerTabTheme={
<mask> "NativeBase.Button":{
<mask> ".active":{
<mask> "NativeBase.Text":{
<mask> color:variables.tabBarActiveTextColor,
<mask> fontSize:variables.tabBarTextSize,
<mask> lineHeight:16},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.tabBarActiveTextColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.tabBarActiveTextColor},
<mask>
<mask> backgroundColor:variables.tabActiveBgColor},
<mask>
<mask> flexDirection:null,
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null,
<mask> alignSelf:"center",
<mask> flex:1,
<mask> height:variables.footerHeight,
<mask> justifyContent:"center",
<mask> ".badge":{
<mask> "NativeBase.Badge":{
<mask> "NativeBase.Text":{
<mask> fontSize:11,
<mask> fontWeight:platform==="ios"?"600":undefined,
<mask> lineHeight:14},
<mask>
<mask> top:-3,
<mask> alignSelf:"center",
<mask> left:10,
<mask> zIndex:99,
<mask> height:18,
<mask> padding:1.7,
<mask> paddingHorizontal:3},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginTop:-18}},
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.tabBarTextColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.tabBarTextColor},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.tabBarTextColor,
<mask> fontSize:variables.tabBarTextSize,
<mask> lineHeight:16}},
<mask>
<mask>
<mask> backgroundColor:_reactNative.Platform.OS==="android"?
<mask> variables.footerDefaultBg:
<mask> undefined,
<mask> flexDirection:"row",
<mask> justifyContent:"space-between",
<mask> flex:1,
<mask> alignSelf:"stretch"};
<mask>
<mask>
<mask> return footerTabTheme;
<mask> };
<mask> //# sourceMappingURL=FooterTab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var segmentTheme={
height:45,
borderColor:variables.segmentBorderColorMain,
flexDirection:"row",
justifyContent:"center",
backgroundColor:variables.segmentBackgroundColor,
"NativeBase.Button":{
alignSelf:"center",
borderRadius:0,
paddingTop:3,
paddingBottom:3,
height:30,
backgroundColor:"transparent",
borderWidth:1,
borderLeftWidth:0,
borderColor:variables.segmentBorderColor,
elevation:0,
".active":{
backgroundColor:variables.segmentActiveBackgroundColor,
"NativeBase.Text":{
color:variables.segmentActiveTextColor},
"NativeBase.Icon":{
color:variables.segmentActiveTextColor}},
".first":{
borderTopLeftRadius:platform==="ios"?5:undefined,
borderBottomLeftRadius:platform==="ios"?5:undefined,
borderLeftWidth:1},
".last":{
borderTopRightRadius:platform==="ios"?5:undefined,
borderBottomRightRadius:platform==="ios"?5:undefined},
"NativeBase.Text":{
color:variables.segmentTextColor,
fontSize:14},
"NativeBase.Icon":{
fontSize:22,
paddingTop:0,
color:variables.segmentTextColor}}};
return segmentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/FooterTab.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var theme={"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}};return theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask>
<mask> var theme={
<mask> "NativeBase.Item":{
<mask> ".fixedLabel":{
<mask> "NativeBase.Label":{
<mask> paddingLeft:null},
<mask>
<mask> marginLeft:15},
<mask>
<mask> ".inlineLabel":{
<mask> "NativeBase.Label":{
<mask> paddingLeft:null},
<mask>
<mask> marginLeft:15},
<mask>
<mask> ".placeholderLabel":{
<mask> "NativeBase.Input":{}},
<mask>
<mask> ".stackedLabel":{
<mask> "NativeBase.Label":{
<mask> top:5,
<mask> paddingLeft:null},
<mask>
<mask> "NativeBase.Input":{
<mask> paddingLeft:null,
<mask> marginLeft:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginTop:36},
<mask>
<mask> marginLeft:15},
<mask>
<mask> ".floatingLabel":{
<mask> "NativeBase.Input":{
<mask> paddingLeft:null,
<mask> top:10,
<mask> marginLeft:null},
<mask>
<mask> "NativeBase.Label":{
<mask> left:0,
<mask> top:6},
<mask>
<mask> "NativeBase.Icon":{
<mask> top:6},
<mask>
<mask> marginTop:15,
<mask> marginLeft:15},
<mask>
<mask> ".regular":{
<mask> "NativeBase.Label":{
<mask> left:0},
<mask>
<mask> marginLeft:0},
<mask>
<mask> ".rounded":{
<mask> "NativeBase.Label":{
<mask> left:0},
<mask>
<mask> marginLeft:0},
<mask>
<mask> ".underline":{
<mask> "NativeBase.Label":{
<mask> left:0,
<mask> top:0,
<mask> position:"relative"},
<mask>
<mask> "NativeBase.Input":{
<mask> left:-15},
<mask>
<mask> marginLeft:15},
<mask>
<mask> ".last":{
<mask> marginLeft:0,
<mask> paddingLeft:15},
<mask>
<mask> "NativeBase.Label":{
<mask> paddingRight:5},
<mask>
<mask> marginLeft:15}};
<mask>
<mask>
<mask>
<mask> return theme;
<mask> };
<mask> //# sourceMappingURL=Form.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var itemTheme={
".floatingLabel":{
"NativeBase.Input":{
height:50,
top:8,
paddingTop:3,
paddingBottom:7,
".multiline":{
minHeight:variables.inputHeightBase,
paddingTop:_reactNative.Platform.OS==="ios"?10:3,
paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
"NativeBase.Label":{
top:8},
"NativeBase.Icon":{
top:6,
paddingTop:8},
"NativeBase.IconNB":{
top:6,
paddingTop:8}},
".fixedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
flex:1,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
flex:2,
fontSize:variables.inputFontSize}},
".stackedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingTop:5,
alignSelf:"flex-start",
fontSize:variables.inputFontSize-2},
"NativeBase.Icon":{
marginTop:36},
"NativeBase.Input":{
alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
flex:1,
width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight-6,
".secureTextEntry":{
fontSize:variables.inputFontSize-4},
".multiline":{
paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
flexDirection:null,
minHeight:variables.inputHeightBase+15},
".inlineLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingRight:20,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
paddingLeft:5,
fontSize:variables.inputFontSize},
flexDirection:"row"},
"NativeBase.Label":{
fontSize:variables.inputFontSize,
color:variables.inputColorPlaceholder,
paddingRight:5},
"NativeBase.Icon":{
fontSize:24,
paddingRight:8},
"NativeBase.IconNB":{
fontSize:24,
paddingRight:8},
"NativeBase.Input":{
".multiline":{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
flex:1,
top:_reactNative.Platform.OS==="ios"?1.5:undefined,
fontSize:variables.inputFontSize},
".underline":{
"NativeBase.Input":{
paddingLeft:15},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderColor:variables.inputBorderColor},
".rounded":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderRadius:30,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
".picker":{
marginLeft:0},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center",
marginLeft:2};
return itemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var fabTheme={
"NativeBase.Button":{
alignItems:"center",
padding:null,
justifyContent:"center",
"NativeBase.Icon":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0},
"NativeBase.IconNB":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0}}};
return fabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Form.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var h1Theme={
<mask> color:variables.textColor,
<mask> fontSize:variables.fontSizeH1,
<mask> lineHeight:variables.lineHeightH1};
<mask>
<mask>
<mask> return h1Theme;
<mask> };
<mask> //# sourceMappingURL=H1.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h3Theme={
color:variables.textColor,
fontSize:variables.fontSizeH3,
lineHeight:variables.lineHeightH3};
return h3Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h2Theme={
color:variables.textColor,
fontSize:variables.fontSizeH2,
lineHeight:variables.lineHeightH2};
return h2Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textTheme={
fontSize:variables.DefaultFontSize,
fontFamily:variables.fontFamily,
color:variables.textColor,
".note":{
color:"#a7a7a7",
fontSize:variables.noteFontSize}};
return textTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textAreaTheme={
".underline":{
borderBottomWidth:variables.borderWidth,
marginTop:5,
borderColor:variables.inputBorderColor},
".bordered":{
borderWidth:1,
marginTop:5,
borderColor:variables.inputBorderColor},
color:variables.textColor,
paddingLeft:10,
paddingRight:5,
fontSize:15,
textAlignVertical:"top"};
return textAreaTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textAreaTheme={".underline":{borderBottomWidth:variables.borderWidth,marginTop:5,borderColor:variables.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:variables.inputBorderColor},color:variables.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"};return textAreaTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/H1.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var h2Theme={
<mask> color:variables.textColor,
<mask> fontSize:variables.fontSizeH2,
<mask> lineHeight:variables.lineHeightH2};
<mask>
<mask>
<mask> return h2Theme;
<mask> };
<mask> //# sourceMappingURL=H2.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h1Theme={
color:variables.textColor,
fontSize:variables.fontSizeH1,
lineHeight:variables.lineHeightH1};
return h1Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h3Theme={
color:variables.textColor,
fontSize:variables.fontSizeH3,
lineHeight:variables.lineHeightH3};
return h3Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textTheme={
fontSize:variables.DefaultFontSize,
fontFamily:variables.fontFamily,
color:variables.textColor,
".note":{
color:"#a7a7a7",
fontSize:variables.noteFontSize}};
return textTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textAreaTheme={
".underline":{
borderBottomWidth:variables.borderWidth,
marginTop:5,
borderColor:variables.inputBorderColor},
".bordered":{
borderWidth:1,
marginTop:5,
borderColor:variables.inputBorderColor},
color:variables.textColor,
paddingLeft:10,
paddingRight:5,
fontSize:15,
textAlignVertical:"top"};
return textAreaTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textAreaTheme={".underline":{borderBottomWidth:variables.borderWidth,marginTop:5,borderColor:variables.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:variables.inputBorderColor},color:variables.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"};return textAreaTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/H2.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var h3Theme={
<mask> color:variables.textColor,
<mask> fontSize:variables.fontSizeH3,
<mask> lineHeight:variables.lineHeightH3};
<mask>
<mask>
<mask> return h3Theme;
<mask> };
<mask> //# sourceMappingURL=H3.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h1Theme={
color:variables.textColor,
fontSize:variables.fontSizeH1,
lineHeight:variables.lineHeightH1};
return h1Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h2Theme={
color:variables.textColor,
fontSize:variables.fontSizeH2,
lineHeight:variables.lineHeightH2};
return h2Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textTheme={
fontSize:variables.DefaultFontSize,
fontFamily:variables.fontFamily,
color:variables.textColor,
".note":{
color:"#a7a7a7",
fontSize:variables.noteFontSize}};
return textTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textAreaTheme={
".underline":{
borderBottomWidth:variables.borderWidth,
marginTop:5,
borderColor:variables.inputBorderColor},
".bordered":{
borderWidth:1,
marginTop:5,
borderColor:variables.inputBorderColor},
color:variables.textColor,
paddingLeft:10,
paddingRight:5,
fontSize:15,
textAlignVertical:"top"};
return textAreaTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textAreaTheme={".underline":{borderBottomWidth:variables.borderWidth,marginTop:5,borderColor:variables.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:variables.inputBorderColor},color:variables.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"};return textAreaTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/H3.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask>
<mask> var headerTheme={
<mask> ".span":{
<mask> height:128,
<mask> "NativeBase.Left":{
<mask> alignSelf:"flex-start"},
<mask>
<mask> "NativeBase.Body":{
<mask> alignSelf:"flex-end",
<mask> alignItems:"flex-start",
<mask> justifyContent:"center",
<mask> paddingBottom:26},
<mask>
<mask> "NativeBase.Right":{
<mask> alignSelf:"flex-start"}},
<mask>
<mask>
<mask> ".hasSubtitle":{
<mask> "NativeBase.Body":{
<mask> "NativeBase.Title":{
<mask> fontSize:variables.titleFontSize-2,
<mask> fontFamily:variables.titleFontfamily,
<mask> textAlign:"center",
<mask> fontWeight:"500",
<mask> paddingBottom:3},
<mask>
<mask> "NativeBase.Subtitle":{
<mask> fontSize:variables.subTitleFontSize,
<mask> fontFamily:variables.titleFontfamily,
<mask> color:variables.subtitleColor,
<mask> textAlign:"center"}}},
<mask>
<mask>
<mask>
<mask> ".transparent":{
<mask> backgroundColor:"transparent",
<mask> borderBottomColor:"transparent",
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null,
<mask> paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
<mask> height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
<mask>
<mask> ".noShadow":{
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask>
<mask> ".hasTabs":{
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null,
<mask> borderBottomWidth:null},
<mask>
<mask> ".hasSegment":{
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null,
<mask> borderBottomWidth:null,
<mask> "NativeBase.Left":{
<mask> flex:0.3},
<mask>
<mask> "NativeBase.Right":{
<mask> flex:0.3},
<mask>
<mask> "NativeBase.Body":{
<mask> flex:1,
<mask> "NativeBase.Segment":{
<mask> marginRight:0,
<mask> alignSelf:"center",
<mask> "NativeBase.Button":{
<mask> paddingLeft:0,
<mask> paddingRight:0}}}},
<mask>
<mask>
<mask>
<mask>
<mask> ".noLeft":{
<mask> "NativeBase.Left":{
<mask> width:platform==="ios"?undefined:0,
<mask> flex:platform==="ios"?1:0},
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Title":{
<mask> paddingLeft:platform==="ios"?undefined:10},
<mask>
<mask> "NativeBase.Subtitle":{
<mask> paddingLeft:platform==="ios"?undefined:10}}},
<mask>
<mask>
<mask>
<mask> "NativeBase.Button":{
<mask> justifyContent:"center",
<mask> alignSelf:"center",
<mask> alignItems:"center",
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> color:variables.toolbarBtnTextColor,
<mask> fontWeight:"600"},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> paddingHorizontal:variables.buttonPadding},
<mask>
<mask> paddingHorizontal:15},
<mask>
<mask> ".searchBar":{
<mask> "NativeBase.Item":{
<mask> "NativeBase.Icon":{
<mask> backgroundColor:"transparent",
<mask> color:variables.dropdownLinkColor,
<mask> fontSize:variables.toolbarSearchIconSize,
<mask> alignItems:"center",
<mask> marginTop:2,
<mask> paddingRight:10,
<mask> paddingLeft:10},
<mask>
<mask> "NativeBase.IconNB":{
<mask> backgroundColor:"transparent",
<mask> color:null,
<mask> alignSelf:"center"},
<mask>
<mask> "NativeBase.Input":{
<mask> alignSelf:"center",
<mask> lineHeight:null,
<mask> height:variables.searchBarInputHeight},
<mask>
<mask> alignSelf:"center",
<mask> alignItems:"center",
<mask> justifyContent:"flex-start",
<mask> flex:1,
<mask> height:variables.searchBarHeight,
<mask> borderColor:"transparent",
<mask> backgroundColor:variables.toolbarInputColor},
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> fontWeight:"500"},
<mask>
<mask> paddingHorizontal:null,
<mask> paddingLeft:platform==="ios"?10:null},
<mask>
<mask> paddingHorizontal:platform==="ios"?undefined:null,
<mask> width:platform==="ios"?undefined:0,
<mask> height:platform==="ios"?undefined:0}},
<mask>
<mask>
<mask> ".rounded":{
<mask> "NativeBase.Item":{
<mask> borderRadius:
<mask> platform==="ios"&&platformStyle!=="material"?25:3}},
<mask>
<mask>
<mask> "NativeBase.Left":{
<mask> "NativeBase.Button":{
<mask> ".hasText":{
<mask> marginLeft:-10,
<mask> height:30,
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:variables.iconHeaderSize,
<mask> marginTop:2,
<mask> marginRight:5,
<mask> marginLeft:2},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.toolbarBtnTextColor,
<mask> fontSize:platform==="ios"?17:0,
<mask> marginLeft:7,
<mask> lineHeight:19.5},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:variables.iconHeaderSize,
<mask> marginTop:2,
<mask> marginRight:5,
<mask> marginLeft:2}},
<mask>
<mask>
<mask> ".transparent":{
<mask> marginLeft:
<mask> platform==="ios"&&platformStyle!=="material"?-3:0,
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:
<mask> platform==="ios"&&variables.platformStyle!=="material"?
<mask> variables.iconHeaderSize+1:
<mask> variables.iconHeaderSize,
<mask> marginTop:0,
<mask> marginRight:2,
<mask> marginLeft:1,
<mask> paddingTop:1},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:
<mask> platform==="ios"&&variables.platformStyle!=="material"?
<mask> variables.iconHeaderSize+1:
<mask> variables.iconHeaderSize-2,
<mask> marginTop:0,
<mask> marginRight:2,
<mask> marginLeft:1,
<mask> paddingTop:1},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.toolbarBtnTextColor,
<mask> fontSize:platform==="ios"?17:0,
<mask> top:platform==="ios"?1:-1.5,
<mask> paddingLeft:
<mask> platform==="ios"&&platformStyle!=="material"?2:5,
<mask> paddingRight:
<mask> platform==="ios"&&platformStyle!=="material"?
<mask> undefined:
<mask> 10},
<mask>
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> alignSelf:null,
<mask> paddingRight:variables.buttonPadding,
<mask> paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
<mask>
<mask> flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
<mask> alignSelf:"center",
<mask> alignItems:"flex-start"},
<mask>
<mask> "NativeBase.Body":{
<mask> flex:1,
<mask> alignItems:
<mask> platform==="ios"&&platformStyle!=="material"?
<mask> "center":
<mask> "flex-start",
<mask> alignSelf:"center",
<mask> "NativeBase.Segment":{
<mask> borderWidth:0,
<mask> alignSelf:"flex-end",
<mask> marginRight:platform==="ios"?-40:-55},
<mask>
<mask> "NativeBase.Button":{
<mask> alignSelf:"center",
<mask> ".transparent":{
<mask> backgroundColor:"transparent"},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.inverseTextColor,
<mask> backgroundColor:"transparent"}}},
<mask>
<mask>
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Button":{
<mask> ".hasText":{
<mask> height:30,
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:variables.iconHeaderSize-2,
<mask> marginTop:2,
<mask> marginRight:2,
<mask> marginLeft:5},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.toolbarBtnTextColor,
<mask> fontSize:platform==="ios"?17:14,
<mask> lineHeight:19.5},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:variables.iconHeaderSize-2,
<mask> marginTop:2,
<mask> marginRight:2,
<mask> marginLeft:5}},
<mask>
<mask>
<mask> ".transparent":{
<mask> marginRight:platform==="ios"?-9:-5,
<mask> paddingLeft:15,
<mask> paddingRight:12,
<mask> paddingHorizontal:15,
<mask> borderRadius:50,
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:
<mask> platform==="ios"&&variables.platformStyle!=="material"?
<mask> variables.iconHeaderSize-9:
<mask> variables.iconHeaderSize-2,
<mask> marginTop:0,
<mask> marginLeft:2,
<mask> marginRight:0},
<mask>
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor,
<mask> fontSize:
<mask> platform==="ios"&&variables.platformStyle!=="material"?
<mask> variables.iconHeaderSize-9:
<mask> variables.iconHeaderSize-2,
<mask> marginTop:0,
<mask> marginLeft:2,
<mask> marginRight:0},
<mask>
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.toolbarBtnTextColor,
<mask> fontSize:platform==="ios"?17:14,
<mask> top:platform==="ios"?1:-1.5,
<mask> paddingRight:
<mask> platform==="ios"&&variables.platformStyle!=="material"?
<mask> 0:
<mask> undefined},
<mask>
<mask> backgroundColor:"transparent",
<mask> borderColor:null,
<mask> elevation:0,
<mask> shadowColor:null,
<mask> shadowOffset:null,
<mask> shadowRadius:null,
<mask> shadowOpacity:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.toolbarBtnColor},
<mask>
<mask> alignSelf:null,
<mask> paddingHorizontal:variables.buttonPadding},
<mask>
<mask> flex:1,
<mask> alignSelf:"center",
<mask> alignItems:"flex-end",
<mask> flexDirection:"row",
<mask> justifyContent:"flex-end"},
<mask>
<mask> backgroundColor:variables.toolbarDefaultBg,
<mask> flexDirection:"row",
<mask>
<mask> paddingLeft:
<mask> platform==="ios"&&variables.platformStyle!=="material"?6:10,
<mask> paddingRight:10,
<mask> justifyContent:"center",
<mask> paddingTop:platform==="ios"?18:0,
<mask> borderBottomWidth:
<mask> platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
<mask> borderBottomColor:variables.toolbarDefaultBorder,
<mask> height:
<mask> variables.platform==="ios"&&variables.platformStyle==="material"?
<mask> variables.toolbarHeight+_reactNative.StatusBar.height:
<mask> variables.toolbarHeight,
<mask> elevation:3,
<mask> shadowColor:platformStyle==="material"?"#000":undefined,
<mask> shadowOffset:
<mask> platformStyle==="material"?{width:0,height:2}:undefined,
<mask> shadowOpacity:platformStyle==="material"?0.2:undefined,
<mask> shadowRadius:platformStyle==="material"?1.2:undefined,
<mask> top:0,
<mask> left:0,
<mask> right:0};
<mask>
<mask>
<mask> return headerTheme;
<mask> };
<mask> //# sourceMappingURL=Header.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Header.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var iconTheme={fontSize:variables.iconFontSize,color:"#000"};return iconTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var iconTheme={
<mask> fontSize:variables.iconFontSize,
<mask> color:"#000"};
<mask>
<mask>
<mask> return iconTheme;
<mask> };
<mask> //# sourceMappingURL=Icon.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var switchTheme={
marginVertical:-5};
return switchTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Icon.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var inputTheme={
<mask> '.multiline':{
<mask> height:null},
<mask>
<mask> height:variables.inputHeightBase,
<mask> color:variables.inputColor,
<mask> paddingLeft:5,
<mask> paddingRight:5,
<mask> flex:1,
<mask> fontSize:variables.inputFontSize};
<mask>
<mask>
<mask> return inputTheme;
<mask> };
<mask> //# sourceMappingURL=Input.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var itemTheme={
".floatingLabel":{
"NativeBase.Input":{
height:50,
top:8,
paddingTop:3,
paddingBottom:7,
".multiline":{
minHeight:variables.inputHeightBase,
paddingTop:_reactNative.Platform.OS==="ios"?10:3,
paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
"NativeBase.Label":{
top:8},
"NativeBase.Icon":{
top:6,
paddingTop:8},
"NativeBase.IconNB":{
top:6,
paddingTop:8}},
".fixedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
flex:1,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
flex:2,
fontSize:variables.inputFontSize}},
".stackedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingTop:5,
alignSelf:"flex-start",
fontSize:variables.inputFontSize-2},
"NativeBase.Icon":{
marginTop:36},
"NativeBase.Input":{
alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
flex:1,
width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight-6,
".secureTextEntry":{
fontSize:variables.inputFontSize-4},
".multiline":{
paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
flexDirection:null,
minHeight:variables.inputHeightBase+15},
".inlineLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingRight:20,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
paddingLeft:5,
fontSize:variables.inputFontSize},
flexDirection:"row"},
"NativeBase.Label":{
fontSize:variables.inputFontSize,
color:variables.inputColorPlaceholder,
paddingRight:5},
"NativeBase.Icon":{
fontSize:24,
paddingRight:8},
"NativeBase.IconNB":{
fontSize:24,
paddingRight:8},
"NativeBase.Input":{
".multiline":{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
flex:1,
top:_reactNative.Platform.OS==="ios"?1.5:undefined,
fontSize:variables.inputFontSize},
".underline":{
"NativeBase.Input":{
paddingLeft:15},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderColor:variables.inputBorderColor},
".rounded":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderRadius:30,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
".picker":{
marginLeft:0},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center",
marginLeft:2};
return itemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var bodyTheme={
flex:1,
alignItems:'center',
alignSelf:'center'};
return bodyTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var leftTheme={
flex:1,
alignSelf:'center',
alignItems:'flex-start'};
return leftTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var rightTheme={
'NativeBase.Button':{
alignSelf:null},
flex:1,
alignSelf:'center',
alignItems:'flex-end'};
return rightTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Input.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var inputGroupTheme={
<mask> "NativeBase.Icon":{
<mask> fontSize:24,
<mask> color:variables.sTabBarActiveTextColor,
<mask> paddingHorizontal:5},
<mask>
<mask> "NativeBase.IconNB":{
<mask> fontSize:24,
<mask> color:variables.sTabBarActiveTextColor,
<mask> paddingHorizontal:5},
<mask>
<mask> "NativeBase.Input":{
<mask> height:variables.inputHeightBase,
<mask> color:variables.inputColor,
<mask> paddingLeft:5,
<mask> paddingRight:5,
<mask> flex:1,
<mask> fontSize:variables.inputFontSize,
<mask> lineHeight:variables.inputLineHeight},
<mask>
<mask> ".underline":{
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> paddingLeft:5,
<mask> borderWidth:variables.borderWidth,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> ".regular":{
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> paddingLeft:5,
<mask> borderWidth:variables.borderWidth,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> ".rounded":{
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> paddingLeft:5,
<mask> borderWidth:variables.borderWidth,
<mask> borderRadius:variables.inputGroupRoundedBorderRadius,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask>
<mask> ".success":{
<mask> "NativeBase.Icon":{
<mask> color:variables.inputSuccessBorderColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.inputSuccessBorderColor},
<mask>
<mask> ".rounded":{
<mask> borderRadius:30,
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".regular":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".underline":{
<mask> borderWidth:variables.borderWidth,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask>
<mask> ".error":{
<mask> "NativeBase.Icon":{
<mask> color:variables.inputErrorBorderColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.inputErrorBorderColor},
<mask>
<mask> ".rounded":{
<mask> borderRadius:30,
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".regular":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".underline":{
<mask> borderWidth:variables.borderWidth,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".disabled":{
<mask> "NativeBase.Icon":{
<mask> color:"#384850"},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:"#384850"}},
<mask>
<mask>
<mask>
<mask> paddingLeft:5,
<mask> borderWidth:variables.borderWidth,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputBorderColor,
<mask> backgroundColor:"transparent",
<mask> flexDirection:"row",
<mask> alignItems:"center"};
<mask>
<mask>
<mask> return inputGroupTheme;
<mask> };
<mask> //# sourceMappingURL=InputGroup.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var itemTheme={
".floatingLabel":{
"NativeBase.Input":{
height:50,
top:8,
paddingTop:3,
paddingBottom:7,
".multiline":{
minHeight:variables.inputHeightBase,
paddingTop:_reactNative.Platform.OS==="ios"?10:3,
paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
"NativeBase.Label":{
top:8},
"NativeBase.Icon":{
top:6,
paddingTop:8},
"NativeBase.IconNB":{
top:6,
paddingTop:8}},
".fixedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
flex:1,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
flex:2,
fontSize:variables.inputFontSize}},
".stackedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingTop:5,
alignSelf:"flex-start",
fontSize:variables.inputFontSize-2},
"NativeBase.Icon":{
marginTop:36},
"NativeBase.Input":{
alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
flex:1,
width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight-6,
".secureTextEntry":{
fontSize:variables.inputFontSize-4},
".multiline":{
paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
flexDirection:null,
minHeight:variables.inputHeightBase+15},
".inlineLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingRight:20,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
paddingLeft:5,
fontSize:variables.inputFontSize},
flexDirection:"row"},
"NativeBase.Label":{
fontSize:variables.inputFontSize,
color:variables.inputColorPlaceholder,
paddingRight:5},
"NativeBase.Icon":{
fontSize:24,
paddingRight:8},
"NativeBase.IconNB":{
fontSize:24,
paddingRight:8},
"NativeBase.Input":{
".multiline":{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
flex:1,
top:_reactNative.Platform.OS==="ios"?1.5:undefined,
fontSize:variables.inputFontSize},
".underline":{
"NativeBase.Input":{
paddingLeft:15},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderColor:variables.inputBorderColor},
".rounded":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderRadius:30,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
".picker":{
marginLeft:0},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center",
marginLeft:2};
return itemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var theme={
"NativeBase.Item":{
".fixedLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".inlineLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".placeholderLabel":{
"NativeBase.Input":{}},
".stackedLabel":{
"NativeBase.Label":{
top:5,
paddingLeft:null},
"NativeBase.Input":{
paddingLeft:null,
marginLeft:null},
"NativeBase.Icon":{
marginTop:36},
marginLeft:15},
".floatingLabel":{
"NativeBase.Input":{
paddingLeft:null,
top:10,
marginLeft:null},
"NativeBase.Label":{
left:0,
top:6},
"NativeBase.Icon":{
top:6},
marginTop:15,
marginLeft:15},
".regular":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".rounded":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".underline":{
"NativeBase.Label":{
left:0,
top:0,
position:"relative"},
"NativeBase.Input":{
left:-15},
marginLeft:15},
".last":{
marginLeft:0,
paddingLeft:15},
"NativeBase.Label":{
paddingRight:5},
marginLeft:15}};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var theme={"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputTheme={
'.multiline':{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize};
return inputTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/InputGroup.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var itemTheme={
<mask> ".floatingLabel":{
<mask> "NativeBase.Input":{
<mask> height:50,
<mask> top:8,
<mask> paddingTop:3,
<mask> paddingBottom:7,
<mask> ".multiline":{
<mask> minHeight:variables.inputHeightBase,
<mask> paddingTop:_reactNative.Platform.OS==="ios"?10:3,
<mask> paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
<mask>
<mask>
<mask> "NativeBase.Label":{
<mask> top:8},
<mask>
<mask> "NativeBase.Icon":{
<mask> top:6,
<mask> paddingTop:8},
<mask>
<mask> "NativeBase.IconNB":{
<mask> top:6,
<mask> paddingTop:8}},
<mask>
<mask>
<mask> ".fixedLabel":{
<mask> "NativeBase.Label":{
<mask> position:null,
<mask> top:null,
<mask> left:null,
<mask> right:null,
<mask> flex:1,
<mask> height:null,
<mask> width:null,
<mask> fontSize:variables.inputFontSize},
<mask>
<mask> "NativeBase.Input":{
<mask> flex:2,
<mask> fontSize:variables.inputFontSize}},
<mask>
<mask>
<mask> ".stackedLabel":{
<mask> "NativeBase.Label":{
<mask> position:null,
<mask> top:null,
<mask> left:null,
<mask> right:null,
<mask> paddingTop:5,
<mask> alignSelf:"flex-start",
<mask> fontSize:variables.inputFontSize-2},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginTop:36},
<mask>
<mask> "NativeBase.Input":{
<mask> alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
<mask> flex:1,
<mask> width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
<mask> fontSize:variables.inputFontSize,
<mask> lineHeight:variables.inputLineHeight-6,
<mask> ".secureTextEntry":{
<mask> fontSize:variables.inputFontSize-4},
<mask>
<mask> ".multiline":{
<mask> paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
<mask> paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
<mask>
<mask>
<mask> flexDirection:null,
<mask> minHeight:variables.inputHeightBase+15},
<mask>
<mask> ".inlineLabel":{
<mask> "NativeBase.Label":{
<mask> position:null,
<mask> top:null,
<mask> left:null,
<mask> right:null,
<mask> paddingRight:20,
<mask> height:null,
<mask> width:null,
<mask> fontSize:variables.inputFontSize},
<mask>
<mask> "NativeBase.Input":{
<mask> paddingLeft:5,
<mask> fontSize:variables.inputFontSize},
<mask>
<mask> flexDirection:"row"},
<mask>
<mask> "NativeBase.Label":{
<mask> fontSize:variables.inputFontSize,
<mask> color:variables.inputColorPlaceholder,
<mask> paddingRight:5},
<mask>
<mask> "NativeBase.Icon":{
<mask> fontSize:24,
<mask> paddingRight:8},
<mask>
<mask> "NativeBase.IconNB":{
<mask> fontSize:24,
<mask> paddingRight:8},
<mask>
<mask> "NativeBase.Input":{
<mask> ".multiline":{
<mask> height:null},
<mask>
<mask> height:variables.inputHeightBase,
<mask> color:variables.inputColor,
<mask> flex:1,
<mask> top:_reactNative.Platform.OS==="ios"?1.5:undefined,
<mask> fontSize:variables.inputFontSize},
<mask>
<mask> ".underline":{
<mask> "NativeBase.Input":{
<mask> paddingLeft:15},
<mask>
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> borderWidth:variables.borderWidth*2,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> ".regular":{
<mask> "NativeBase.Input":{
<mask> paddingLeft:8},
<mask>
<mask> "NativeBase.Icon":{
<mask> paddingLeft:10},
<mask>
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> borderWidth:variables.borderWidth*2,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> ".rounded":{
<mask> "NativeBase.Input":{
<mask> paddingLeft:8},
<mask>
<mask> "NativeBase.Icon":{
<mask> paddingLeft:10},
<mask>
<mask> ".success":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".error":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> borderWidth:variables.borderWidth*2,
<mask> borderRadius:30,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask>
<mask> ".success":{
<mask> "NativeBase.Icon":{
<mask> color:variables.inputSuccessBorderColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.inputSuccessBorderColor},
<mask>
<mask> ".rounded":{
<mask> borderRadius:30,
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".regular":{
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> ".underline":{
<mask> borderWidth:variables.borderWidth*2,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask> borderColor:variables.inputSuccessBorderColor},
<mask>
<mask>
<mask> ".error":{
<mask> "NativeBase.Icon":{
<mask> color:variables.inputErrorBorderColor},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.inputErrorBorderColor},
<mask>
<mask> ".rounded":{
<mask> borderRadius:30,
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".regular":{
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".underline":{
<mask> borderWidth:variables.borderWidth*2,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> borderColor:variables.inputErrorBorderColor},
<mask>
<mask> ".disabled":{
<mask> "NativeBase.Icon":{
<mask> color:"#384850"},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:"#384850"}},
<mask>
<mask>
<mask> ".picker":{
<mask> marginLeft:0},
<mask>
<mask>
<mask> borderWidth:variables.borderWidth*2,
<mask> borderTopWidth:0,
<mask> borderRightWidth:0,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.inputBorderColor,
<mask> backgroundColor:"transparent",
<mask> flexDirection:"row",
<mask> alignItems:"center",
<mask> marginLeft:2};
<mask>
<mask>
<mask> return itemTheme;
<mask> };
<mask> //# sourceMappingURL=Item.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var theme={
"NativeBase.Item":{
".fixedLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".inlineLabel":{
"NativeBase.Label":{
paddingLeft:null},
marginLeft:15},
".placeholderLabel":{
"NativeBase.Input":{}},
".stackedLabel":{
"NativeBase.Label":{
top:5,
paddingLeft:null},
"NativeBase.Input":{
paddingLeft:null,
marginLeft:null},
"NativeBase.Icon":{
marginTop:36},
marginLeft:15},
".floatingLabel":{
"NativeBase.Input":{
paddingLeft:null,
top:10,
marginLeft:null},
"NativeBase.Label":{
left:0,
top:6},
"NativeBase.Icon":{
top:6},
marginTop:15,
marginLeft:15},
".regular":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".rounded":{
"NativeBase.Label":{
left:0},
marginLeft:0},
".underline":{
"NativeBase.Label":{
left:0,
top:0,
position:"relative"},
"NativeBase.Input":{
left:-15},
marginLeft:15},
".last":{
marginLeft:0,
paddingLeft:15},
"NativeBase.Label":{
paddingRight:5},
marginLeft:15}};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var theme={"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Item.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var labelTheme={".focused":{width:0},fontSize:17};return labelTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var labelTheme={
<mask> ".focused":{
<mask> width:0},
<mask>
<mask> fontSize:17};
<mask>
<mask>
<mask> return labelTheme;
<mask> };
<mask> //# sourceMappingURL=Label.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var switchTheme={
marginVertical:-5};
return switchTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var iconTheme={
fontSize:variables.iconFontSize,
color:"#000"};
return iconTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var iconTheme={fontSize:variables.iconFontSize,color:"#000"};return iconTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Label.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var leftTheme={
<mask> flex:1,
<mask> alignSelf:'center',
<mask> alignItems:'flex-start'};
<mask>
<mask>
<mask> return leftTheme;
<mask> };
<mask> //# sourceMappingURL=Left.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var rightTheme={
'NativeBase.Button':{
alignSelf:null},
flex:1,
alignSelf:'center',
alignItems:'flex-end'};
return rightTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var bodyTheme={
flex:1,
alignItems:'center',
alignSelf:'center'};
return bodyTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputTheme={
'.multiline':{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize};
return inputTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
'.group':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12,
'.bordered':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12}},
'.bordered':{
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:35,
paddingTop:variables.listItemPadding+2,
paddingBottom:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderTopWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
'NativeBase.Text':{
fontSize:variables.tabBarTextSize-2,
color:'#777'},
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:38,
backgroundColor:'#F0EFF5',
flex:1,
justifyContent:'center',
paddingLeft:variables.listItemPadding+5};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var thumbnailTheme={
'.square':{
borderRadius:0,
'.small':{
width:36,
height:36,
borderRadius:0},
'.large':{
width:80,
height:80,
borderRadius:0}},
'.small':{
width:36,
height:36,
borderRadius:18,
'.square':{
borderRadius:0}},
'.large':{
width:80,
height:80,
borderRadius:40,
'.square':{
borderRadius:0}},
width:56,
height:56,
borderRadius:28};
return thumbnailTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var thumbnailTheme={'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28};return thumbnailTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Left.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
<mask>
<mask> var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask> var selectedStyle={
<mask> "NativeBase.Text":{
<mask> color:variables.listItemSelected},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.listItemSelected}};
<mask>
<mask>
<mask>
<mask> var listItemTheme={
<mask> "NativeBase.InputGroup":{
<mask> "NativeBase.Icon":{
<mask> paddingRight:5},
<mask>
<mask> "NativeBase.IconNB":{
<mask> paddingRight:5},
<mask>
<mask> "NativeBase.Input":{
<mask> paddingHorizontal:5},
<mask>
<mask> flex:1,
<mask> borderWidth:null,
<mask> margin:-10,
<mask> borderBottomColor:"transparent"},
<mask>
<mask> ".searchBar":{
<mask> "NativeBase.Item":{
<mask> "NativeBase.Icon":{
<mask> backgroundColor:"transparent",
<mask> color:variables.dropdownLinkColor,
<mask> fontSize:
<mask> platform==="ios"?
<mask> variables.iconFontSize-10:
<mask> variables.iconFontSize-5,
<mask> alignItems:"center",
<mask> marginTop:2,
<mask> paddingRight:8},
<mask>
<mask> "NativeBase.IconNB":{
<mask> backgroundColor:"transparent",
<mask> color:null,
<mask> alignSelf:"center"},
<mask>
<mask> "NativeBase.Input":{
<mask> alignSelf:"center"},
<mask>
<mask> alignSelf:"center",
<mask> alignItems:"center",
<mask> justifyContent:"flex-start",
<mask> flex:1,
<mask> height:platform==="ios"?30:40,
<mask> borderColor:"transparent",
<mask> backgroundColor:"#fff",
<mask> borderRadius:5},
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> fontWeight:"500"},
<mask>
<mask> paddingHorizontal:null,
<mask> paddingLeft:platform==="ios"?10:null},
<mask>
<mask> paddingHorizontal:platform==="ios"?undefined:null,
<mask> width:platform==="ios"?undefined:0,
<mask> height:platform==="ios"?undefined:0},
<mask>
<mask> backgroundColor:variables.toolbarInputColor,
<mask> padding:10,
<mask> marginLeft:null},
<mask>
<mask> "NativeBase.CheckBox":{
<mask> marginLeft:-10,
<mask> marginRight:10},
<mask>
<mask> ".first":{
<mask> ".itemHeader":{
<mask> paddingTop:variables.listItemPadding+3}},
<mask>
<mask>
<mask> ".itemHeader":{
<mask> ".first":{
<mask> paddingTop:variables.listItemPadding+3},
<mask>
<mask> borderBottomWidth:platform==="ios"?variables.borderWidth:null,
<mask> marginLeft:null,
<mask> padding:variables.listItemPadding,
<mask> paddingLeft:variables.listItemPadding+5,
<mask> paddingTop:
<mask> platform==="ios"?variables.listItemPadding+25:undefined,
<mask> paddingBottom:
<mask> platform==="android"?variables.listItemPadding+20:undefined,
<mask> flexDirection:"row",
<mask> borderColor:variables.listBorderColor,
<mask> "NativeBase.Text":{
<mask> fontSize:14,
<mask> color:platform==="ios"?undefined:variables.listNoteColor}},
<mask>
<mask>
<mask> ".itemDivider":{
<mask> borderBottomWidth:null,
<mask> marginLeft:null,
<mask> padding:variables.listItemPadding,
<mask> paddingLeft:variables.listItemPadding+5,
<mask> backgroundColor:variables.listDividerBg,
<mask> flexDirection:"row",
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> ".selected":_extends({
<mask> "NativeBase.Left":_extends({},
<mask> selectedStyle),
<mask>
<mask> "NativeBase.Body":_extends({},
<mask> selectedStyle),
<mask>
<mask> "NativeBase.Right":_extends({},
<mask> selectedStyle)},
<mask>
<mask> selectedStyle),
<mask>
<mask> "NativeBase.Left":{
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200"},
<mask>
<mask> fontWeight:"600"},
<mask>
<mask> marginLeft:10,
<mask> alignItems:null,
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Icon":{
<mask> width:variables.iconFontSize-10,
<mask> fontSize:variables.iconFontSize-10},
<mask>
<mask> "NativeBase.IconNB":{
<mask> width:variables.iconFontSize-10,
<mask> fontSize:variables.iconFontSize-10},
<mask>
<mask> "NativeBase.Text":{
<mask> alignSelf:"center"},
<mask>
<mask> flexDirection:"row"},
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> marginHorizontal:variables.listItemPadding,
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200"}},
<mask>
<mask>
<mask> alignSelf:null,
<mask> alignItems:null},
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Badge":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.PickerNB":{
<mask> "NativeBase.Button":{
<mask> marginRight:-15,
<mask> "NativeBase.Text":{
<mask> color:variables.topTabBarActiveTextColor}}},
<mask>
<mask>
<mask>
<mask> "NativeBase.Button":{
<mask> alignSelf:null,
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> color:variables.topTabBarActiveTextColor}}},
<mask>
<mask>
<mask>
<mask> "NativeBase.Icon":{
<mask> alignSelf:null,
<mask> fontSize:variables.iconFontSize-8,
<mask> color:"#c9c8cd"},
<mask>
<mask> "NativeBase.IconNB":{
<mask> alignSelf:null,
<mask> fontSize:variables.iconFontSize-8,
<mask> color:"#c9c8cd"},
<mask>
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200"},
<mask>
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Thumbnail":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Image":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Radio":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Checkbox":{
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.Switch":{
<mask> alignSelf:null},
<mask>
<mask> padding:null,
<mask> flex:0.28},
<mask>
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> color:variables.listNoteColor,
<mask> fontWeight:"200"},
<mask>
<mask> alignSelf:"center"},
<mask>
<mask> ".last":{
<mask> marginLeft:-(variables.listItemPadding+5),
<mask> paddingLeft:(variables.listItemPadding+5)*2,
<mask> top:1},
<mask>
<mask> ".avatar":{
<mask> "NativeBase.Left":{
<mask> flex:0},
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> marginLeft:null},
<mask>
<mask> flex:1,
<mask> paddingVertical:variables.listItemPadding,
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor,
<mask> marginLeft:variables.listItemPadding+5},
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Text":{
<mask> ".note":{
<mask> fontSize:variables.noteFontSize-2}},
<mask>
<mask>
<mask> flex:0,
<mask> paddingRight:variables.listItemPadding+5,
<mask> alignSelf:"stretch",
<mask> paddingVertical:variables.listItemPadding,
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> ".noBorder":{
<mask> "NativeBase.Body":{
<mask> borderBottomWidth:null},
<mask>
<mask> "NativeBase.Right":{
<mask> borderBottomWidth:null}},
<mask>
<mask>
<mask> borderBottomWidth:null,
<mask> paddingVertical:null,
<mask> paddingRight:null},
<mask>
<mask> ".thumbnail":{
<mask> "NativeBase.Left":{
<mask> flex:0},
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> marginLeft:null},
<mask>
<mask> flex:1,
<mask> paddingVertical:variables.listItemPadding+5,
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor,
<mask> marginLeft:variables.listItemPadding+5},
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Button":{
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> fontSize:variables.listNoteSize,
<mask> color:variables.sTabBarActiveTextColor}},
<mask>
<mask>
<mask> height:null},
<mask>
<mask> flex:0,
<mask> justifyContent:"center",
<mask> alignSelf:"stretch",
<mask> paddingRight:variables.listItemPadding+5,
<mask> paddingVertical:variables.listItemPadding+5,
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> ".noBorder":{
<mask> "NativeBase.Body":{
<mask> borderBottomWidth:null},
<mask>
<mask> "NativeBase.Right":{
<mask> borderBottomWidth:null}},
<mask>
<mask>
<mask> borderBottomWidth:null,
<mask> paddingVertical:null,
<mask> paddingRight:null},
<mask>
<mask> ".icon":{
<mask> ".last":{
<mask> "NativeBase.Body":{
<mask> borderBottomWidth:null},
<mask>
<mask> "NativeBase.Right":{
<mask> borderBottomWidth:null},
<mask>
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> "NativeBase.Left":{
<mask> "NativeBase.Button":{
<mask> "NativeBase.IconNB":{
<mask> marginHorizontal:null,
<mask> fontSize:variables.iconFontSize-5},
<mask>
<mask> "NativeBase.Icon":{
<mask> marginHorizontal:null,
<mask> fontSize:variables.iconFontSize-8},
<mask>
<mask> alignSelf:"center",
<mask> height:29,
<mask> width:29,
<mask> borderRadius:6,
<mask> paddingVertical:null,
<mask> paddingHorizontal:null,
<mask> alignItems:"center",
<mask> justifyContent:"center"},
<mask>
<mask> "NativeBase.Icon":{
<mask> width:variables.iconFontSize-5,
<mask> fontSize:variables.iconFontSize-2},
<mask>
<mask> "NativeBase.IconNB":{
<mask> width:variables.iconFontSize-5,
<mask> fontSize:variables.iconFontSize-2},
<mask>
<mask> paddingRight:variables.listItemPadding+5,
<mask> flex:0,
<mask> height:44,
<mask> justifyContent:"center",
<mask> alignItems:"center"},
<mask>
<mask> "NativeBase.Body":{
<mask> "NativeBase.Text":{
<mask> marginLeft:null,
<mask> fontSize:17},
<mask>
<mask> flex:1,
<mask> height:44,
<mask> justifyContent:"center",
<mask> borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> "NativeBase.Right":{
<mask> "NativeBase.Text":{
<mask> textAlign:"center",
<mask> color:"#8F8E95",
<mask> fontSize:17},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:"#C8C7CC",
<mask> fontSize:variables.iconFontSize-10,
<mask> alignSelf:"center",
<mask> paddingLeft:10,
<mask> paddingTop:3},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:"#C8C7CC",
<mask> fontSize:variables.iconFontSize-10,
<mask> alignSelf:"center",
<mask> paddingLeft:10,
<mask> paddingTop:3},
<mask>
<mask> "NativeBase.Switch":{
<mask> marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
<mask> alignSelf:null},
<mask>
<mask> "NativeBase.PickerNB":_extends({},
<mask> (0,_Picker2.default)()),
<mask>
<mask> flexDirection:"row",
<mask> alignItems:"center",
<mask> flex:0,
<mask> alignSelf:"stretch",
<mask> height:44,
<mask> justifyContent:"flex-end",
<mask> borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
<mask> borderColor:variables.listBorderColor,
<mask> paddingRight:variables.listItemPadding+5},
<mask>
<mask> ".noBorder":{
<mask> "NativeBase.Body":{
<mask> borderBottomWidth:null},
<mask>
<mask> "NativeBase.Right":{
<mask> borderBottomWidth:null}},
<mask>
<mask>
<mask> borderBottomWidth:null,
<mask> paddingVertical:null,
<mask> paddingRight:null,
<mask> height:44,
<mask> justifyContent:"center"},
<mask>
<mask> ".noBorder":{
<mask> borderBottomWidth:null},
<mask>
<mask> ".noIndent":{
<mask> marginLeft:null,
<mask> padding:variables.listItemPadding,
<mask> paddingLeft:variables.listItemPadding+6},
<mask>
<mask> alignItems:"center",
<mask> flexDirection:"row",
<mask> paddingRight:variables.listItemPadding+6,
<mask> paddingVertical:variables.listItemPadding+3,
<mask> marginLeft:variables.listItemPadding+6,
<mask> borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
<mask> backgroundColor:variables.listBg,
<mask> borderColor:variables.listBorderColor};
<mask>
<mask>
<mask> return listItemTheme;
<mask> };
<mask> //# sourceMappingURL=ListItem.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/ListItem.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var pickerTheme={
<mask> ".note":{
<mask> color:"#8F8E95"},
<mask>
<mask>
<mask> marginRight:-4,
<mask> flexGrow:1};
<mask>
<mask>
<mask> return pickerTheme;
<mask> };
<mask> //# sourceMappingURL=Picker.android.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textTheme={
fontSize:variables.DefaultFontSize,
fontFamily:variables.fontFamily,
color:variables.textColor,
".note":{
color:"#a7a7a7",
fontSize:variables.noteFontSize}};
return textTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Picker.android.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var pickerTheme={};
<mask>
<mask> return pickerTheme;
<mask> };
<mask> //# sourceMappingURL=Picker.ios.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var switchTheme={
marginVertical:-5};
return switchTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Picker.ios.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var pickerTheme={
<mask> ".note":{
<mask> color:"#8F8E95"},
<mask>
<mask>
<mask> marginRight:-4,
<mask> flexGrow:1};
<mask>
<mask>
<mask> return pickerTheme;
<mask> };
<mask> //# sourceMappingURL=Picker.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var textTheme={
fontSize:variables.DefaultFontSize,
fontFamily:variables.fontFamily,
color:variables.textColor,
".note":{
color:"#a7a7a7",
fontSize:variables.noteFontSize}};
return textTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Picker.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var radioTheme={".selected":{"NativeBase.IconNB":{color:_reactNative.Platform.OS==="ios"?variables.radioColor:variables.radioSelectedColorAndroid,lineHeight:_reactNative.Platform.OS==="ios"?25:variables.radioBtnLineHeight,height:_reactNative.Platform.OS==="ios"?20:undefined}},"NativeBase.IconNB":{color:_reactNative.Platform.OS==="ios"?"transparent":undefined,lineHeight:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnLineHeight,fontSize:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnSize}};return radioTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var radioTheme={
<mask> ".selected":{
<mask> "NativeBase.IconNB":{
<mask> color:_reactNative.Platform.OS==="ios"?
<mask> variables.radioColor:
<mask> variables.radioSelectedColorAndroid,
<mask> lineHeight:_reactNative.Platform.OS==="ios"?25:variables.radioBtnLineHeight,
<mask> height:_reactNative.Platform.OS==="ios"?20:undefined}},
<mask>
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:_reactNative.Platform.OS==="ios"?"transparent":undefined,
<mask> lineHeight:_reactNative.Platform.OS==="ios"?
<mask> undefined:
<mask> variables.radioBtnLineHeight,
<mask> fontSize:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnSize}};
<mask>
<mask>
<mask>
<mask> return radioTheme;
<mask> };
<mask> //# sourceMappingURL=Radio.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var checkBoxTheme={
".checked":{
"NativeBase.Icon":{
color:variables.checkboxTickColor},
"NativeBase.IconNB":{
color:variables.checkboxTickColor}},
"NativeBase.Icon":{
color:"transparent",
lineHeight:variables.CheckboxIconSize,
marginTop:variables.CheckboxIconMarginTop,
fontSize:variables.CheckboxFontSize},
"NativeBase.IconNB":{
color:"transparent",
lineHeight:variables.CheckboxIconSize,
marginTop:variables.CheckboxIconMarginTop,
fontSize:variables.CheckboxFontSize},
borderRadius:variables.CheckboxRadius,
overflow:"hidden",
width:variables.checkboxSize,
height:variables.checkboxSize,
borderWidth:variables.CheckboxBorderWidth,
paddingLeft:variables.CheckboxPaddingLeft-1,
paddingBottom:variables.CheckboxPaddingBottom,
left:10};
return checkBoxTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var checkBoxTheme={".checked":{"NativeBase.Icon":{color:variables.checkboxTickColor},"NativeBase.IconNB":{color:variables.checkboxTickColor}},"NativeBase.Icon":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},"NativeBase.IconNB":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},borderRadius:variables.CheckboxRadius,overflow:"hidden",width:variables.checkboxSize,height:variables.checkboxSize,borderWidth:variables.CheckboxBorderWidth,paddingLeft:variables.CheckboxPaddingLeft-1,paddingBottom:variables.CheckboxPaddingBottom,left:10};return checkBoxTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var fabTheme={
"NativeBase.Button":{
alignItems:"center",
padding:null,
justifyContent:"center",
"NativeBase.Icon":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0},
"NativeBase.IconNB":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0}}};
return fabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Radio.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var rightTheme={
<mask> 'NativeBase.Button':{
<mask> alignSelf:null},
<mask>
<mask> flex:1,
<mask> alignSelf:'center',
<mask> alignItems:'flex-end'};
<mask>
<mask>
<mask> return rightTheme;
<mask> };
<mask> //# sourceMappingURL=Right.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var leftTheme={
flex:1,
alignSelf:'center',
alignItems:'flex-start'};
return leftTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var bodyTheme={
flex:1,
alignItems:'center',
alignSelf:'center'};
return bodyTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputTheme={
'.multiline':{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize};
return inputTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
'.group':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12,
'.bordered':{
height:50,
paddingVertical:variables.listItemPadding-8,
paddingTop:variables.listItemPadding+12}},
'.bordered':{
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:35,
paddingTop:variables.listItemPadding+2,
paddingBottom:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderTopWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
'NativeBase.Text':{
fontSize:variables.tabBarTextSize-2,
color:'#777'},
'.noTopBorder':{
borderTopWidth:0},
'.noBottomBorder':{
borderBottomWidth:0},
height:38,
backgroundColor:'#F0EFF5',
flex:1,
justifyContent:'center',
paddingLeft:variables.listItemPadding+5};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Right.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask>
<mask> var segmentTheme={
<mask> height:45,
<mask> borderColor:variables.segmentBorderColorMain,
<mask> flexDirection:"row",
<mask> justifyContent:"center",
<mask> backgroundColor:variables.segmentBackgroundColor,
<mask> "NativeBase.Button":{
<mask> alignSelf:"center",
<mask> borderRadius:0,
<mask> paddingTop:3,
<mask> paddingBottom:3,
<mask> height:30,
<mask> backgroundColor:"transparent",
<mask> borderWidth:1,
<mask> borderLeftWidth:0,
<mask> borderColor:variables.segmentBorderColor,
<mask> elevation:0,
<mask> ".active":{
<mask> backgroundColor:variables.segmentActiveBackgroundColor,
<mask> "NativeBase.Text":{
<mask> color:variables.segmentActiveTextColor},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.segmentActiveTextColor}},
<mask>
<mask>
<mask> ".first":{
<mask> borderTopLeftRadius:platform==="ios"?5:undefined,
<mask> borderBottomLeftRadius:platform==="ios"?5:undefined,
<mask> borderLeftWidth:1},
<mask>
<mask> ".last":{
<mask> borderTopRightRadius:platform==="ios"?5:undefined,
<mask> borderBottomRightRadius:platform==="ios"?5:undefined},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.segmentTextColor,
<mask> fontSize:14},
<mask>
<mask> "NativeBase.Icon":{
<mask> fontSize:22,
<mask> paddingTop:0,
<mask> color:variables.segmentTextColor}}};
<mask>
<mask>
<mask>
<mask>
<mask> return segmentTheme;
<mask> };
<mask> //# sourceMappingURL=Segment.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var darkCommon={
"NativeBase.Text":{
color:variables.brandDark},
"NativeBase.Icon":{
color:variables.brandDark},
"NativeBase.IconNB":{
color:variables.brandDark}};
var lightCommon={
"NativeBase.Text":{
color:variables.brandLight},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight}};
var primaryCommon={
"NativeBase.Text":{
color:variables.btnPrimaryBg},
"NativeBase.Icon":{
color:variables.btnPrimaryBg},
"NativeBase.IconNB":{
color:variables.btnPrimaryBg}};
var successCommon={
"NativeBase.Text":{
color:variables.btnSuccessBg},
"NativeBase.Icon":{
color:variables.btnSuccessBg},
"NativeBase.IconNB":{
color:variables.btnSuccessBg}};
var infoCommon={
"NativeBase.Text":{
color:variables.btnInfoBg},
"NativeBase.Icon":{
color:variables.btnInfoBg},
"NativeBase.IconNB":{
color:variables.btnInfoBg}};
var warningCommon={
"NativeBase.Text":{
color:variables.btnWarningBg},
"NativeBase.Icon":{
color:variables.btnWarningBg},
"NativeBase.IconNB":{
color:variables.btnWarningBg}};
var dangerCommon={
"NativeBase.Text":{
color:variables.btnDangerBg},
"NativeBase.Icon":{
color:variables.btnDangerBg},
"NativeBase.IconNB":{
color:variables.btnDangerBg}};
var buttonTheme={
".disabled":{
".transparent":{
backgroundColor:null,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}},
"NativeBase.Icon":{
color:variables.brandLight},
"NativeBase.IconNB":{
color:variables.brandLight},
backgroundColor:variables.btnDisabledBg},
".bordered":_extends({
".dark":_extends({},
darkCommon,{
backgroundColor:"transparent",
borderColor:variables.brandDark,
borderWidth:variables.borderWidth*2}),
".light":_extends({},
lightCommon,{
backgroundColor:"transparent",
borderColor:variables.brandLight,
borderWidth:variables.borderWidth*2}),
".primary":_extends({},
primaryCommon,{
backgroundColor:"transparent",
borderColor:variables.btnPrimaryBg,
borderWidth:variables.borderWidth*2}),
".success":_extends({},
successCommon,{
backgroundColor:"transparent",
borderColor:variables.btnSuccessBg,
borderWidth:variables.borderWidth*2}),
".info":_extends({},
infoCommon,{
backgroundColor:"transparent",
borderColor:variables.btnInfoBg,
borderWidth:variables.borderWidth*2}),
".warning":_extends({},
warningCommon,{
backgroundColor:"transparent",
borderColor:variables.btnWarningBg,
borderWidth:variables.borderWidth*2}),
".danger":_extends({},
dangerCommon,{
backgroundColor:"transparent",
borderColor:variables.btnDangerBg,
borderWidth:variables.borderWidth*2}),
".disabled":{
backgroundColor:null,
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg}}},
primaryCommon,{
borderWidth:variables.borderWidth*2,
elevation:null,
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
backgroundColor:"transparent"}),
".dark":{
".bordered":_extends({},
darkCommon),
backgroundColor:variables.brandDark},
".light":_extends({
".transparent":_extends({},
lightCommon,{
backgroundColor:null}),
".bordered":_extends({},
lightCommon)},
darkCommon,{
backgroundColor:variables.brandLight}),
".primary":{
".bordered":_extends({},
primaryCommon),
backgroundColor:variables.btnPrimaryBg},
".success":{
".bordered":_extends({},
successCommon),
backgroundColor:variables.btnSuccessBg},
".info":{
".bordered":_extends({},
infoCommon),
backgroundColor:variables.btnInfoBg},
".warning":{
".bordered":_extends({},
warningCommon),
backgroundColor:variables.btnWarningBg},
".danger":{
".bordered":_extends({},
dangerCommon),
backgroundColor:variables.btnDangerBg},
".block":{
justifyContent:"center",
alignSelf:"stretch"},
".full":{
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0},
".rounded":{
borderRadius:variables.borderRadiusLarge},
".transparent":_extends({
backgroundColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
primaryCommon,{
".dark":_extends({},
darkCommon,{
backgroundColor:null}),
".danger":_extends({},
dangerCommon,{
backgroundColor:null}),
".warning":_extends({},
warningCommon,{
backgroundColor:null}),
".info":_extends({},
infoCommon,{
backgroundColor:null}),
".primary":_extends({},
primaryCommon,{
backgroundColor:null}),
".success":_extends({},
successCommon,{
backgroundColor:null}),
".light":_extends({},
lightCommon,{
backgroundColor:null}),
".disabled":{
backgroundColor:"transparent",
borderColor:variables.btnDisabledBg,
borderWidth:variables.borderWidth*2,
"NativeBase.Text":{
color:variables.btnDisabledBg},
"NativeBase.Icon":{
color:variables.btnDisabledBg},
"NativeBase.IconNB":{
color:variables.btnDisabledBg}}}),
".small":{
height:30,
"NativeBase.Text":{
fontSize:14},
"NativeBase.Icon":{
fontSize:20,
paddingTop:0},
"NativeBase.IconNB":{
fontSize:20,
paddingTop:0}},
".large":{
height:60,
"NativeBase.Text":{
fontSize:22}},
".capitalize":{},
".vertical":{
flexDirection:"column",
height:null},
"NativeBase.Text":{
fontFamily:variables.btnFontFamily,
marginLeft:0,
marginRight:0,
color:variables.inverseTextColor,
fontSize:variables.btnTextSize,
paddingHorizontal:16,
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
"NativeBase.IconNB":{
color:variables.inverseTextColor,
fontSize:24,
marginHorizontal:16,
paddingTop:platform==="ios"?2:undefined},
".iconLeft":{
"NativeBase.Text":{
marginLeft:0},
"NativeBase.IconNB":{
marginRight:0,
marginLeft:16},
"NativeBase.Icon":{
marginRight:0,
marginLeft:16}},
".iconRight":{
"NativeBase.Text":{
marginRight:0},
"NativeBase.IconNB":{
marginLeft:0,
marginRight:16},
"NativeBase.Icon":{
marginLeft:0,
marginRight:16}},
".picker":{
"NativeBase.Text":{
".note":{
fontSize:16,
lineHeight:null}}},
paddingVertical:variables.buttonPadding,
backgroundColor:variables.btnPrimaryBg,
borderRadius:variables.borderRadiusBase,
borderColor:variables.btnPrimaryBg,
borderWidth:null,
height:45,
alignSelf:"flex-start",
flexDirection:"row",
elevation:2,
shadowColor:platformStyle==="material"?variables.brandDark:undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
alignItems:"center",
justifyContent:"space-between"};
return buttonTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Segment.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var theme={
<mask> '.group':{
<mask> height:50,
<mask> paddingVertical:variables.listItemPadding-8,
<mask> paddingTop:variables.listItemPadding+12,
<mask> '.bordered':{
<mask> height:50,
<mask> paddingVertical:variables.listItemPadding-8,
<mask> paddingTop:variables.listItemPadding+12}},
<mask>
<mask>
<mask> '.bordered':{
<mask> '.noTopBorder':{
<mask> borderTopWidth:0},
<mask>
<mask> '.noBottomBorder':{
<mask> borderBottomWidth:0},
<mask>
<mask> height:35,
<mask> paddingTop:variables.listItemPadding+2,
<mask> paddingBottom:variables.listItemPadding,
<mask> borderBottomWidth:variables.borderWidth,
<mask> borderTopWidth:variables.borderWidth,
<mask> borderColor:variables.listBorderColor},
<mask>
<mask> 'NativeBase.Text':{
<mask> fontSize:variables.tabBarTextSize-2,
<mask> color:'#777'},
<mask>
<mask> '.noTopBorder':{
<mask> borderTopWidth:0},
<mask>
<mask> '.noBottomBorder':{
<mask> borderBottomWidth:0},
<mask>
<mask> height:38,
<mask> backgroundColor:'#F0EFF5',
<mask> flex:1,
<mask> justifyContent:'center',
<mask> paddingLeft:variables.listItemPadding+5};
<mask>
<mask>
<mask> return theme;
<mask> };
<mask> //# sourceMappingURL=Separator.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
flex:1,
height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);
var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var tabContainerTheme={
elevation:3,
height:50,
flexDirection:"row",
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:platformStyle==="material"?
{width:0,height:2}:
undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
justifyContent:"space-around",
borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,
borderColor:variables.topTabBarBorderColor};
return tabContainerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var tabContainerTheme={elevation:3,height:50,flexDirection:"row",shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,justifyContent:"space-around",borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,borderColor:variables.topTabBarBorderColor};return tabContainerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var bodyTheme={
flex:1,
alignItems:'center',
alignSelf:'center'};
return bodyTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var leftTheme={
flex:1,
alignSelf:'center',
alignItems:'flex-start'};
return leftTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var rightTheme={
'NativeBase.Button':{
alignSelf:null},
flex:1,
alignSelf:'center',
alignItems:'flex-end'};
return rightTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Separator.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var spinnerTheme={
<mask> height:80};
<mask>
<mask>
<mask> return spinnerTheme;
<mask> };
<mask> //# sourceMappingURL=Spinner.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var switchTheme={
marginVertical:-5};
return switchTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var iconTheme={
fontSize:variables.iconFontSize,
color:"#000"};
return iconTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var iconTheme={fontSize:variables.iconFontSize,color:"#000"};return iconTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Spinner.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var subtitleTheme={
<mask> fontSize:variables.subTitleFontSize,
<mask> fontFamily:variables.titleFontfamily,
<mask> color:variables.subtitleColor,
<mask> textAlign:"center",
<mask> paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
<mask> marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
<mask>
<mask>
<mask> return subtitleTheme;
<mask> };
<mask> //# sourceMappingURL=Subtitle.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var titleTheme={
fontSize:variables.titleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.titleFontColor,
fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,
paddingTop:1};
return titleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var titleTheme={fontSize:variables.titleFontSize,fontFamily:variables.titleFontfamily,color:variables.titleFontColor,fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,paddingTop:1};return titleTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var badgeTheme={
".primary":{
backgroundColor:variables.btnPrimaryBg},
".warning":{
backgroundColor:variables.btnWarningBg},
".info":{
backgroundColor:variables.btnInfoBg},
".success":{
backgroundColor:variables.btnSuccessBg},
".danger":{
backgroundColor:variables.btnDangerBg},
"NativeBase.Text":{
color:variables.badgeColor,
fontSize:variables.fontSizeBase,
lineHeight:variables.lineHeight-1,
textAlign:"center",
paddingHorizontal:3},
backgroundColor:variables.badgeBg,
padding:variables.badgePadding,
paddingHorizontal:6,
alignSelf:"flex-start",
justifyContent:variables.platform==="ios"?"center":undefined,
borderRadius:13.5,
height:27};
return badgeTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var badgeTheme={".primary":{backgroundColor:variables.btnPrimaryBg},".warning":{backgroundColor:variables.btnWarningBg},".info":{backgroundColor:variables.btnInfoBg},".success":{backgroundColor:variables.btnSuccessBg},".danger":{backgroundColor:variables.btnDangerBg},"NativeBase.Text":{color:variables.badgeColor,fontSize:variables.fontSizeBase,lineHeight:variables.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:variables.badgeBg,padding:variables.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:variables.platform==="ios"?"center":undefined,borderRadius:13.5,height:27};return badgeTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Subtitle.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var swipeRowTheme={"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}};return swipeRowTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var swipeRowTheme={
<mask> "NativeBase.ListItem":{
<mask> ".list":{
<mask> backgroundColor:"#FFF"},
<mask>
<mask> marginLeft:0},
<mask>
<mask> "NativeBase.Left":{
<mask> flex:0,
<mask> alignSelf:null,
<mask> alignItems:null,
<mask> "NativeBase.Button":{
<mask> flex:1,
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> alignSelf:"stretch",
<mask> borderRadius:0}},
<mask>
<mask>
<mask> "NativeBase.Right":{
<mask> flex:0,
<mask> alignSelf:null,
<mask> alignItems:null,
<mask> "NativeBase.Button":{
<mask> flex:1,
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> alignSelf:"stretch",
<mask> borderRadius:0}},
<mask>
<mask>
<mask> "NativeBase.Button":{
<mask> flex:1,
<mask> height:null,
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> alignSelf:"stretch",
<mask> borderRadius:0}};
<mask>
<mask>
<mask>
<mask> return swipeRowTheme;
<mask> };
<mask> //# sourceMappingURL=SwipeRow.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var fabTheme={
"NativeBase.Button":{
alignItems:"center",
padding:null,
justifyContent:"center",
"NativeBase.Icon":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0},
"NativeBase.IconNB":{
alignSelf:"center",
fontSize:20,
marginLeft:0,
marginRight:0}}};
return fabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/SwipeRow.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var switchTheme={
<mask> marginVertical:-5};
<mask>
<mask>
<mask> return switchTheme;
<mask> };
<mask> //# sourceMappingURL=Switch.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabTheme={
flex:1,
backgroundColor:"#FFF"};
return tabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var iconTheme={
fontSize:variables.iconFontSize,
color:"#000"};
return iconTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var iconTheme={fontSize:variables.iconFontSize,color:"#000"};return iconTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Switch.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var tabTheme={
<mask> flex:1,
<mask> backgroundColor:"#FFF"};
<mask>
<mask>
<mask> return tabTheme;
<mask> };
<mask> //# sourceMappingURL=Tab.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var contentTheme={
flex:1,
backgroundColor:"transparent",
"NativeBase.Segment":{
borderWidth:0,
backgroundColor:"transparent"}};
return contentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var contentTheme={flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}};return contentTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var swipeRowTheme={
"NativeBase.ListItem":{
".list":{
backgroundColor:"#FFF"},
marginLeft:0},
"NativeBase.Left":{
flex:0,
alignSelf:null,
alignItems:null,
"NativeBase.Button":{
flex:1,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}},
"NativeBase.Right":{
flex:0,
alignSelf:null,
alignItems:null,
"NativeBase.Button":{
flex:1,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}},
"NativeBase.Button":{
flex:1,
height:null,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}};
return swipeRowTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var swipeRowTheme={"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}};return swipeRowTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
flex:1,
height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var tabHeadingTheme={
flexDirection:"row",
backgroundColor:variables.tabDefaultBg,
flex:1,
alignItems:"center",
justifyContent:"center",
".scrollable":{
paddingHorizontal:20,
flex:platform==="android"?0:1,
minWidth:platform==="android"?undefined:60},
"NativeBase.Text":{
color:variables.topTabBarTextColor,
marginHorizontal:7},
"NativeBase.Icon":{
color:variables.topTabBarTextColor,
fontSize:platform==="ios"?26:undefined},
".active":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.topTabBarActiveTextColor}}};
return tabHeadingTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var cardTheme={
".transparent":{
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
shadowRadius:null,
elevation:null,
backgroundColor:"transparent",
borderWidth:0},
".noShadow":{
shadowColor:null,
shadowOffset:null,
shadowOpacity:null,
elevation:null},
marginVertical:5,
marginHorizontal:2,
flex:1,
borderWidth:variables.borderWidth,
borderRadius:variables.cardBorderRadius,
borderColor:variables.cardBorderColor,
flexWrap:"nowrap",
backgroundColor:variables.cardDefaultBg,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.1,
shadowRadius:1.5,
elevation:3};
return cardTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var cardTheme={".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,flex:1,borderWidth:variables.borderWidth,borderRadius:variables.cardBorderRadius,borderColor:variables.cardBorderColor,flexWrap:"nowrap",backgroundColor:variables.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.1,shadowRadius:1.5,elevation:3};return cardTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Tab.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var tabBarTheme={
<mask> ".tabIcon":{
<mask> height:undefined},
<mask>
<mask> ".vertical":{
<mask> height:60},
<mask>
<mask> "NativeBase.Button":{
<mask> ".transparent":{
<mask> "NativeBase.Text":{
<mask> fontSize:variables.tabFontSize,
<mask> color:variables.sTabBarActiveTextColor,
<mask> fontWeight:"400"},
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.sTabBarActiveTextColor}},
<mask>
<mask>
<mask> "NativeBase.IconNB":{
<mask> color:variables.sTabBarActiveTextColor},
<mask>
<mask> "NativeBase.Text":{
<mask> fontSize:variables.tabFontSize,
<mask> color:variables.sTabBarActiveTextColor,
<mask> fontWeight:"400"},
<mask>
<mask> ".isTabActive":{
<mask> "NativeBase.Text":{
<mask> fontWeight:"900"}},
<mask>
<mask>
<mask> flex:1,
<mask> alignSelf:"stretch",
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> borderRadius:null,
<mask> borderBottomColor:"transparent",
<mask> backgroundColor:variables.tabBgColor},
<mask>
<mask> height:45,
<mask> flexDirection:"row",
<mask> justifyContent:"space-around",
<mask> borderWidth:1,
<mask> borderTopWidth:0,
<mask> borderLeftWidth:0,
<mask> borderRightWidth:0,
<mask> borderBottomColor:"#ccc",
<mask> backgroundColor:variables.tabBgColor};
<mask>
<mask>
<mask> return tabBarTheme;
<mask> };
<mask> //# sourceMappingURL=TabBar.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var segmentTheme={
height:45,
borderColor:variables.segmentBorderColorMain,
flexDirection:"row",
justifyContent:"center",
backgroundColor:variables.segmentBackgroundColor,
"NativeBase.Button":{
alignSelf:"center",
borderRadius:0,
paddingTop:3,
paddingBottom:3,
height:30,
backgroundColor:"transparent",
borderWidth:1,
borderLeftWidth:0,
borderColor:variables.segmentBorderColor,
elevation:0,
".active":{
backgroundColor:variables.segmentActiveBackgroundColor,
"NativeBase.Text":{
color:variables.segmentActiveTextColor},
"NativeBase.Icon":{
color:variables.segmentActiveTextColor}},
".first":{
borderTopLeftRadius:platform==="ios"?5:undefined,
borderBottomLeftRadius:platform==="ios"?5:undefined,
borderLeftWidth:1},
".last":{
borderTopRightRadius:platform==="ios"?5:undefined,
borderBottomRightRadius:platform==="ios"?5:undefined},
"NativeBase.Text":{
color:variables.segmentTextColor,
fontSize:14},
"NativeBase.Icon":{
fontSize:22,
paddingTop:0,
color:variables.segmentTextColor}}};
return segmentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/TabBar.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var tabContainerTheme={elevation:3,height:50,flexDirection:"row",shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,justifyContent:"space-around",borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,borderColor:variables.topTabBarBorderColor};return tabContainerTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);
<mask> var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platformStyle=variables.platformStyle;
<mask> var platform=variables.platform;
<mask>
<mask> var tabContainerTheme={
<mask> elevation:3,
<mask> height:50,
<mask> flexDirection:"row",
<mask> shadowColor:platformStyle==="material"?"#000":undefined,
<mask> shadowOffset:platformStyle==="material"?
<mask> {width:0,height:2}:
<mask> undefined,
<mask> shadowOpacity:platformStyle==="material"?0.2:undefined,
<mask> shadowRadius:platformStyle==="material"?1.2:undefined,
<mask> justifyContent:"space-around",
<mask> borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,
<mask> borderColor:variables.topTabBarBorderColor};
<mask>
<mask>
<mask> return tabContainerTheme;
<mask> };
<mask> //# sourceMappingURL=TabContainer.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var iconCommon={
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor}};
var iconNBCommon={
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor}};
var textCommon={
"NativeBase.Text":{
color:variables.tabBarActiveTextColor}};
var footerTheme={
"NativeBase.Left":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:"center",
alignSelf:"center",
flexDirection:"row",
"NativeBase.Button":_extends({
alignSelf:"center",
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
".full":{
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
flex:1}},
iconCommon,
iconNBCommon)},
"NativeBase.Right":{
"NativeBase.Button":_extends({
".transparent":_extends({
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
iconCommon,
iconNBCommon,
textCommon),
alignSelf:null},
iconCommon,
iconNBCommon),
flex:1,
alignSelf:"center",
alignItems:"flex-end"},
backgroundColor:variables.footerDefaultBg,
flexDirection:"row",
justifyContent:"center",
borderTopWidth:
platform==="ios"&&platformStyle!=="material"?
variables.borderWidth:
undefined,
borderColor:
platform==="ios"&&platformStyle!=="material"?
"#cbcbcb":
undefined,
height:variables.footerHeight,
paddingBottom:variables.footerPaddingBottom,
elevation:3,
left:0,
right:0};
return footerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var tabHeadingTheme={
flexDirection:"row",
backgroundColor:variables.tabDefaultBg,
flex:1,
alignItems:"center",
justifyContent:"center",
".scrollable":{
paddingHorizontal:20,
flex:platform==="android"?0:1,
minWidth:platform==="android"?undefined:60},
"NativeBase.Text":{
color:variables.topTabBarTextColor,
marginHorizontal:7},
"NativeBase.Icon":{
color:variables.topTabBarTextColor,
fontSize:platform==="ios"?26:undefined},
".active":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.topTabBarActiveTextColor}}};
return tabHeadingTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var tabBarTheme={
".tabIcon":{
height:undefined},
".vertical":{
height:60},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor}},
"NativeBase.IconNB":{
color:variables.sTabBarActiveTextColor},
"NativeBase.Text":{
fontSize:variables.tabFontSize,
color:variables.sTabBarActiveTextColor,
fontWeight:"400"},
".isTabActive":{
"NativeBase.Text":{
fontWeight:"900"}},
flex:1,
alignSelf:"stretch",
alignItems:"center",
justifyContent:"center",
borderRadius:null,
borderBottomColor:"transparent",
backgroundColor:variables.tabBgColor},
height:45,
flexDirection:"row",
justifyContent:"space-around",
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderBottomColor:"#ccc",
backgroundColor:variables.tabBgColor};
return tabBarTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/TabContainer.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var platform=variables.platform;
<mask>
<mask> var tabHeadingTheme={
<mask> flexDirection:"row",
<mask> backgroundColor:variables.tabDefaultBg,
<mask> flex:1,
<mask> alignItems:"center",
<mask> justifyContent:"center",
<mask> ".scrollable":{
<mask> paddingHorizontal:20,
<mask> flex:platform==="android"?0:1,
<mask> minWidth:platform==="android"?undefined:60},
<mask>
<mask> "NativeBase.Text":{
<mask> color:variables.topTabBarTextColor,
<mask> marginHorizontal:7},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.topTabBarTextColor,
<mask> fontSize:platform==="ios"?26:undefined},
<mask>
<mask> ".active":{
<mask> "NativeBase.Text":{
<mask> color:variables.topTabBarActiveTextColor,
<mask> fontWeight:"600"},
<mask>
<mask> "NativeBase.Icon":{
<mask> color:variables.topTabBarActiveTextColor}}};
<mask>
<mask>
<mask>
<mask>
<mask> return tabHeadingTheme;
<mask> };
<mask> //# sourceMappingURL=TabHeading.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var footerTabTheme={
"NativeBase.Button":{
".active":{
"NativeBase.Text":{
color:variables.tabBarActiveTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16},
"NativeBase.Icon":{
color:variables.tabBarActiveTextColor},
"NativeBase.IconNB":{
color:variables.tabBarActiveTextColor},
backgroundColor:variables.tabActiveBgColor},
flexDirection:null,
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
alignSelf:"center",
flex:1,
height:variables.footerHeight,
justifyContent:"center",
".badge":{
"NativeBase.Badge":{
"NativeBase.Text":{
fontSize:11,
fontWeight:platform==="ios"?"600":undefined,
lineHeight:14},
top:-3,
alignSelf:"center",
left:10,
zIndex:99,
height:18,
padding:1.7,
paddingHorizontal:3},
"NativeBase.Icon":{
marginTop:-18}},
"NativeBase.Icon":{
color:variables.tabBarTextColor},
"NativeBase.IconNB":{
color:variables.tabBarTextColor},
"NativeBase.Text":{
color:variables.tabBarTextColor,
fontSize:variables.tabBarTextSize,
lineHeight:16}},
backgroundColor:_reactNative.Platform.OS==="android"?
variables.footerDefaultBg:
undefined,
flexDirection:"row",
justifyContent:"space-between",
flex:1,
alignSelf:"stretch"};
return footerTabTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var segmentTheme={
height:45,
borderColor:variables.segmentBorderColorMain,
flexDirection:"row",
justifyContent:"center",
backgroundColor:variables.segmentBackgroundColor,
"NativeBase.Button":{
alignSelf:"center",
borderRadius:0,
paddingTop:3,
paddingBottom:3,
height:30,
backgroundColor:"transparent",
borderWidth:1,
borderLeftWidth:0,
borderColor:variables.segmentBorderColor,
elevation:0,
".active":{
backgroundColor:variables.segmentActiveBackgroundColor,
"NativeBase.Text":{
color:variables.segmentActiveTextColor},
"NativeBase.Icon":{
color:variables.segmentActiveTextColor}},
".first":{
borderTopLeftRadius:platform==="ios"?5:undefined,
borderBottomLeftRadius:platform==="ios"?5:undefined,
borderLeftWidth:1},
".last":{
borderTopRightRadius:platform==="ios"?5:undefined,
borderBottomRightRadius:platform==="ios"?5:undefined},
"NativeBase.Text":{
color:variables.segmentTextColor,
fontSize:14},
"NativeBase.Icon":{
fontSize:22,
paddingTop:0,
color:variables.segmentTextColor}}};
return segmentTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var selectedStyle={
"NativeBase.Text":{
color:variables.listItemSelected},
"NativeBase.Icon":{
color:variables.listItemSelected}};
var listItemTheme={
"NativeBase.InputGroup":{
"NativeBase.Icon":{
paddingRight:5},
"NativeBase.IconNB":{
paddingRight:5},
"NativeBase.Input":{
paddingHorizontal:5},
flex:1,
borderWidth:null,
margin:-10,
borderBottomColor:"transparent"},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:
platform==="ios"?
variables.iconFontSize-10:
variables.iconFontSize-5,
alignItems:"center",
marginTop:2,
paddingRight:8},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center"},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:platform==="ios"?30:40,
borderColor:"transparent",
backgroundColor:"#fff",
borderRadius:5},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0},
backgroundColor:variables.toolbarInputColor,
padding:10,
marginLeft:null},
"NativeBase.CheckBox":{
marginLeft:-10,
marginRight:10},
".first":{
".itemHeader":{
paddingTop:variables.listItemPadding+3}},
".itemHeader":{
".first":{
paddingTop:variables.listItemPadding+3},
borderBottomWidth:platform==="ios"?variables.borderWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
paddingTop:
platform==="ios"?variables.listItemPadding+25:undefined,
paddingBottom:
platform==="android"?variables.listItemPadding+20:undefined,
flexDirection:"row",
borderColor:variables.listBorderColor,
"NativeBase.Text":{
fontSize:14,
color:platform==="ios"?undefined:variables.listNoteColor}},
".itemDivider":{
borderBottomWidth:null,
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+5,
backgroundColor:variables.listDividerBg,
flexDirection:"row",
borderColor:variables.listBorderColor},
".selected":_extends({
"NativeBase.Left":_extends({},
selectedStyle),
"NativeBase.Body":_extends({},
selectedStyle),
"NativeBase.Right":_extends({},
selectedStyle)},
selectedStyle),
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
fontWeight:"600"},
marginLeft:10,
alignItems:null,
alignSelf:null},
"NativeBase.Icon":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.IconNB":{
width:variables.iconFontSize-10,
fontSize:variables.iconFontSize-10},
"NativeBase.Text":{
alignSelf:"center"},
flexDirection:"row"},
"NativeBase.Body":{
"NativeBase.Text":{
marginHorizontal:variables.listItemPadding,
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
alignSelf:null,
alignItems:null},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.PickerNB":{
"NativeBase.Button":{
marginRight:-15,
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Button":{
alignSelf:null,
".transparent":{
"NativeBase.Text":{
color:variables.topTabBarActiveTextColor}}},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:"#c9c8cd"},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
padding:null,
flex:0.28},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"},
alignSelf:"center"},
".last":{
marginLeft:-(variables.listItemPadding+5),
paddingLeft:(variables.listItemPadding+5)*2,
top:1},
".avatar":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Text":{
".note":{
fontSize:variables.noteFontSize-2}},
flex:0,
paddingRight:variables.listItemPadding+5,
alignSelf:"stretch",
paddingVertical:variables.listItemPadding,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".thumbnail":{
"NativeBase.Left":{
flex:0},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null},
flex:1,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor,
marginLeft:variables.listItemPadding+5},
"NativeBase.Right":{
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontSize:variables.listNoteSize,
color:variables.sTabBarActiveTextColor}},
height:null},
flex:0,
justifyContent:"center",
alignSelf:"stretch",
paddingRight:variables.listItemPadding+5,
paddingVertical:variables.listItemPadding+5,
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null},
".icon":{
".last":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null},
borderBottomWidth:variables.borderWidth,
borderColor:variables.listBorderColor},
"NativeBase.Left":{
"NativeBase.Button":{
"NativeBase.IconNB":{
marginHorizontal:null,
fontSize:variables.iconFontSize-5},
"NativeBase.Icon":{
marginHorizontal:null,
fontSize:variables.iconFontSize-8},
alignSelf:"center",
height:29,
width:29,
borderRadius:6,
paddingVertical:null,
paddingHorizontal:null,
alignItems:"center",
justifyContent:"center"},
"NativeBase.Icon":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize-5,
fontSize:variables.iconFontSize-2},
paddingRight:variables.listItemPadding+5,
flex:0,
height:44,
justifyContent:"center",
alignItems:"center"},
"NativeBase.Body":{
"NativeBase.Text":{
marginLeft:null,
fontSize:17},
flex:1,
height:44,
justifyContent:"center",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor},
"NativeBase.Right":{
"NativeBase.Text":{
textAlign:"center",
color:"#8F8E95",
fontSize:17},
"NativeBase.IconNB":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Icon":{
color:"#C8C7CC",
fontSize:variables.iconFontSize-10,
alignSelf:"center",
paddingLeft:10,
paddingTop:3},
"NativeBase.Switch":{
marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,
alignSelf:null},
"NativeBase.PickerNB":_extends({},
(0,_Picker2.default)()),
flexDirection:"row",
alignItems:"center",
flex:0,
alignSelf:"stretch",
height:44,
justifyContent:"flex-end",
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
borderColor:variables.listBorderColor,
paddingRight:variables.listItemPadding+5},
".noBorder":{
"NativeBase.Body":{
borderBottomWidth:null},
"NativeBase.Right":{
borderBottomWidth:null}},
borderBottomWidth:null,
paddingVertical:null,
paddingRight:null,
height:44,
justifyContent:"center"},
".noBorder":{
borderBottomWidth:null},
".noIndent":{
marginLeft:null,
padding:variables.listItemPadding,
paddingLeft:variables.listItemPadding+6},
alignItems:"center",
flexDirection:"row",
paddingRight:variables.listItemPadding+6,
paddingVertical:variables.listItemPadding+3,
marginLeft:variables.listItemPadding+6,
borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
backgroundColor:variables.listBg,
borderColor:variables.listBorderColor};
return listItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _Picker=require("./Picker");var _Picker2=_interopRequireDefault(_Picker);var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var headerTheme={
".span":{
height:128,
"NativeBase.Left":{
alignSelf:"flex-start"},
"NativeBase.Body":{
alignSelf:"flex-end",
alignItems:"flex-start",
justifyContent:"center",
paddingBottom:26},
"NativeBase.Right":{
alignSelf:"flex-start"}},
".hasSubtitle":{
"NativeBase.Body":{
"NativeBase.Title":{
fontSize:variables.titleFontSize-2,
fontFamily:variables.titleFontfamily,
textAlign:"center",
fontWeight:"500",
paddingBottom:3},
"NativeBase.Subtitle":{
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center"}}},
".transparent":{
backgroundColor:"transparent",
borderBottomColor:"transparent",
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,
height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},
".noShadow":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
".hasTabs":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null},
".hasSegment":{
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null,
borderBottomWidth:null,
"NativeBase.Left":{
flex:0.3},
"NativeBase.Right":{
flex:0.3},
"NativeBase.Body":{
flex:1,
"NativeBase.Segment":{
marginRight:0,
alignSelf:"center",
"NativeBase.Button":{
paddingLeft:0,
paddingRight:0}}}},
".noLeft":{
"NativeBase.Left":{
width:platform==="ios"?undefined:0,
flex:platform==="ios"?1:0},
"NativeBase.Body":{
"NativeBase.Title":{
paddingLeft:platform==="ios"?undefined:10},
"NativeBase.Subtitle":{
paddingLeft:platform==="ios"?undefined:10}}},
"NativeBase.Button":{
justifyContent:"center",
alignSelf:"center",
alignItems:"center",
".transparent":{
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontWeight:"600"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
paddingHorizontal:variables.buttonPadding},
paddingHorizontal:15},
".searchBar":{
"NativeBase.Item":{
"NativeBase.Icon":{
backgroundColor:"transparent",
color:variables.dropdownLinkColor,
fontSize:variables.toolbarSearchIconSize,
alignItems:"center",
marginTop:2,
paddingRight:10,
paddingLeft:10},
"NativeBase.IconNB":{
backgroundColor:"transparent",
color:null,
alignSelf:"center"},
"NativeBase.Input":{
alignSelf:"center",
lineHeight:null,
height:variables.searchBarInputHeight},
alignSelf:"center",
alignItems:"center",
justifyContent:"flex-start",
flex:1,
height:variables.searchBarHeight,
borderColor:"transparent",
backgroundColor:variables.toolbarInputColor},
"NativeBase.Button":{
".transparent":{
"NativeBase.Text":{
fontWeight:"500"},
paddingHorizontal:null,
paddingLeft:platform==="ios"?10:null},
paddingHorizontal:platform==="ios"?undefined:null,
width:platform==="ios"?undefined:0,
height:platform==="ios"?undefined:0}},
".rounded":{
"NativeBase.Item":{
borderRadius:
platform==="ios"&&platformStyle!=="material"?25:3}},
"NativeBase.Left":{
"NativeBase.Button":{
".hasText":{
marginLeft:-10,
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
marginLeft:7,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize,
marginTop:2,
marginRight:5,
marginLeft:2}},
".transparent":{
marginLeft:
platform==="ios"&&platformStyle!=="material"?-3:0,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize+1:
variables.iconHeaderSize-2,
marginTop:0,
marginRight:2,
marginLeft:1,
paddingTop:1},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:0,
top:platform==="ios"?1:-1.5,
paddingLeft:
platform==="ios"&&platformStyle!=="material"?2:5,
paddingRight:
platform==="ios"&&platformStyle!=="material"?
undefined:
10},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingRight:variables.buttonPadding,
paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},
flex:platform==="ios"&&platformStyle!=="material"?1:0.4,
alignSelf:"center",
alignItems:"flex-start"},
"NativeBase.Body":{
flex:1,
alignItems:
platform==="ios"&&platformStyle!=="material"?
"center":
"flex-start",
alignSelf:"center",
"NativeBase.Segment":{
borderWidth:0,
alignSelf:"flex-end",
marginRight:platform==="ios"?-40:-55},
"NativeBase.Button":{
alignSelf:"center",
".transparent":{
backgroundColor:"transparent"},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
"NativeBase.Text":{
color:variables.inverseTextColor,
backgroundColor:"transparent"}}},
"NativeBase.Right":{
"NativeBase.Button":{
".hasText":{
height:30,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
lineHeight:19.5},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:variables.iconHeaderSize-2,
marginTop:2,
marginRight:2,
marginLeft:5}},
".transparent":{
marginRight:platform==="ios"?-9:-5,
paddingLeft:15,
paddingRight:12,
paddingHorizontal:15,
borderRadius:50,
"NativeBase.Icon":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor,
fontSize:
platform==="ios"&&variables.platformStyle!=="material"?
variables.iconHeaderSize-9:
variables.iconHeaderSize-2,
marginTop:0,
marginLeft:2,
marginRight:0},
"NativeBase.Text":{
color:variables.toolbarBtnTextColor,
fontSize:platform==="ios"?17:14,
top:platform==="ios"?1:-1.5,
paddingRight:
platform==="ios"&&variables.platformStyle!=="material"?
0:
undefined},
backgroundColor:"transparent",
borderColor:null,
elevation:0,
shadowColor:null,
shadowOffset:null,
shadowRadius:null,
shadowOpacity:null},
"NativeBase.Icon":{
color:variables.toolbarBtnColor},
"NativeBase.IconNB":{
color:variables.toolbarBtnColor},
alignSelf:null,
paddingHorizontal:variables.buttonPadding},
flex:1,
alignSelf:"center",
alignItems:"flex-end",
flexDirection:"row",
justifyContent:"flex-end"},
backgroundColor:variables.toolbarDefaultBg,
flexDirection:"row",
paddingLeft:
platform==="ios"&&variables.platformStyle!=="material"?6:10,
paddingRight:10,
justifyContent:"center",
paddingTop:platform==="ios"?18:0,
borderBottomWidth:
platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,
borderBottomColor:variables.toolbarDefaultBorder,
height:
variables.platform==="ios"&&variables.platformStyle==="material"?
variables.toolbarHeight+_reactNative.StatusBar.height:
variables.toolbarHeight,
elevation:3,
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:
platformStyle==="material"?{width:0,height:2}:undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
top:0,
left:0,
right:0};
return headerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platform=variables.platform;
var transparentBtnCommon={
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-3,
color:variables.sTabBarActiveTextColor},
"NativeBase.Icon":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor,
marginHorizontal:null},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize-10,
color:variables.sTabBarActiveTextColor},
paddingVertical:null,
paddingHorizontal:null};
var cardItemTheme={
"NativeBase.Left":{
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"400",
marginRight:20}},
flex:1,
marginLeft:10,
alignItems:null},
"NativeBase.Icon":{
fontSize:variables.iconFontSize},
"NativeBase.IconNB":{
fontSize:variables.iconFontSize},
"NativeBase.Text":{
marginLeft:10,
alignSelf:"center"},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5})},
flex:1,
flexDirection:"row",
alignItems:"center"},
".content":{
"NativeBase.Text":{
color:platform==="ios"?"#555":"#222",
fontSize:variables.DefaultFontSize-2}},
".cardBody":{
padding:-5,
"NativeBase.Text":{
marginTop:5}},
"NativeBase.Body":{
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200",
marginRight:20}},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon,{
paddingRight:variables.cardItemPadding+5,
alignSelf:"stretch"})},
flex:1,
alignSelf:"stretch",
alignItems:"flex-start"},
"NativeBase.Right":{
"NativeBase.Badge":{
alignSelf:null},
"NativeBase.Button":{
".transparent":_extends({},
transparentBtnCommon),
alignSelf:null},
"NativeBase.Icon":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.IconNB":{
alignSelf:null,
fontSize:variables.iconFontSize-8,
color:variables.cardBorderColor},
"NativeBase.Text":{
fontSize:variables.DefaultFontSize-1,
alignSelf:null},
"NativeBase.Thumbnail":{
alignSelf:null},
"NativeBase.Image":{
alignSelf:null},
"NativeBase.Radio":{
alignSelf:null},
"NativeBase.Checkbox":{
alignSelf:null},
"NativeBase.Switch":{
alignSelf:null},
flex:0.8},
".header":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderBottomWidth:variables.borderWidth},
borderBottomWidth:null,
paddingVertical:variables.cardItemPadding+5},
".footer":{
"NativeBase.Text":{
fontSize:16,
fontWeight:platform==="ios"?"600":"500"},
".bordered":{
"NativeBase.Text":{
color:variables.brandPrimary,
fontWeight:platform==="ios"?"600":"500"},
borderTopWidth:variables.borderWidth},
borderBottomWidth:null},
"NativeBase.Text":{
".note":{
color:variables.listNoteColor,
fontWeight:"200"}},
"NativeBase.Icon":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
"NativeBase.IconNB":{
width:variables.iconFontSize+5,
fontSize:variables.iconFontSize-2},
".bordered":{
borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,
borderColor:variables.cardBorderColor},
".first":{
borderTopLeftRadius:variables.cardBorderRadius,
borderTopRightRadius:variables.cardBorderRadius},
".last":{
borderBottomLeftRadius:variables.cardBorderRadius,
borderBottomRightRadius:variables.cardBorderRadius},
flexDirection:"row",
alignItems:"center",
borderRadius:2,
padding:variables.cardItemPadding+5,
paddingVertical:variables.cardItemPadding,
backgroundColor:variables.cardDefaultBg};
return cardItemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/TabHeading.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var textTheme={
<mask> fontSize:variables.DefaultFontSize,
<mask> fontFamily:variables.fontFamily,
<mask> color:variables.textColor,
<mask> ".note":{
<mask> color:"#a7a7a7",
<mask> fontSize:variables.noteFontSize}};
<mask>
<mask>
<mask>
<mask> return textTheme;
<mask> };
<mask> //# sourceMappingURL=Text.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h3Theme={
color:variables.textColor,
fontSize:variables.fontSizeH3,
lineHeight:variables.lineHeightH3};
return h3Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h1Theme={
color:variables.textColor,
fontSize:variables.fontSizeH1,
lineHeight:variables.lineHeightH1};
return h1Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h2Theme={
color:variables.textColor,
fontSize:variables.fontSizeH2,
lineHeight:variables.lineHeightH2};
return h2Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={
".note":{
color:"#8F8E95"},
marginRight:-4,
flexGrow:1};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Text.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textAreaTheme={".underline":{borderBottomWidth:variables.borderWidth,marginTop:5,borderColor:variables.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:variables.inputBorderColor},color:variables.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"};return textAreaTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var textAreaTheme={
<mask> ".underline":{
<mask> borderBottomWidth:variables.borderWidth,
<mask> marginTop:5,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> ".bordered":{
<mask> borderWidth:1,
<mask> marginTop:5,
<mask> borderColor:variables.inputBorderColor},
<mask>
<mask> color:variables.textColor,
<mask> paddingLeft:10,
<mask> paddingRight:5,
<mask> fontSize:15,
<mask> textAlignVertical:"top"};
<mask>
<mask>
<mask> return textAreaTheme;
<mask> };
<mask> //# sourceMappingURL=Textarea.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputGroupTheme={
"NativeBase.Icon":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.IconNB":{
fontSize:24,
color:variables.sTabBarActiveTextColor,
paddingHorizontal:5},
"NativeBase.Input":{
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight},
".underline":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderColor:variables.inputBorderColor},
".rounded":{
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderRadius:variables.inputGroupRoundedBorderRadius,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
paddingLeft:5,
borderWidth:variables.borderWidth,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center"};
return inputGroupTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var itemTheme={
".floatingLabel":{
"NativeBase.Input":{
height:50,
top:8,
paddingTop:3,
paddingBottom:7,
".multiline":{
minHeight:variables.inputHeightBase,
paddingTop:_reactNative.Platform.OS==="ios"?10:3,
paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},
"NativeBase.Label":{
top:8},
"NativeBase.Icon":{
top:6,
paddingTop:8},
"NativeBase.IconNB":{
top:6,
paddingTop:8}},
".fixedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
flex:1,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
flex:2,
fontSize:variables.inputFontSize}},
".stackedLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingTop:5,
alignSelf:"flex-start",
fontSize:variables.inputFontSize-2},
"NativeBase.Icon":{
marginTop:36},
"NativeBase.Input":{
alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",
flex:1,
width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,
fontSize:variables.inputFontSize,
lineHeight:variables.inputLineHeight-6,
".secureTextEntry":{
fontSize:variables.inputFontSize-4},
".multiline":{
paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},
flexDirection:null,
minHeight:variables.inputHeightBase+15},
".inlineLabel":{
"NativeBase.Label":{
position:null,
top:null,
left:null,
right:null,
paddingRight:20,
height:null,
width:null,
fontSize:variables.inputFontSize},
"NativeBase.Input":{
paddingLeft:5,
fontSize:variables.inputFontSize},
flexDirection:"row"},
"NativeBase.Label":{
fontSize:variables.inputFontSize,
color:variables.inputColorPlaceholder,
paddingRight:5},
"NativeBase.Icon":{
fontSize:24,
paddingRight:8},
"NativeBase.IconNB":{
fontSize:24,
paddingRight:8},
"NativeBase.Input":{
".multiline":{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
flex:1,
top:_reactNative.Platform.OS==="ios"?1.5:undefined,
fontSize:variables.inputFontSize},
".underline":{
"NativeBase.Input":{
paddingLeft:15},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor},
".regular":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderColor:variables.inputBorderColor},
".rounded":{
"NativeBase.Input":{
paddingLeft:8},
"NativeBase.Icon":{
paddingLeft:10},
".success":{
borderColor:variables.inputSuccessBorderColor},
".error":{
borderColor:variables.inputErrorBorderColor},
borderWidth:variables.borderWidth*2,
borderRadius:30,
borderColor:variables.inputBorderColor},
".success":{
"NativeBase.Icon":{
color:variables.inputSuccessBorderColor},
"NativeBase.IconNB":{
color:variables.inputSuccessBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputSuccessBorderColor},
".regular":{
borderColor:variables.inputSuccessBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputSuccessBorderColor},
borderColor:variables.inputSuccessBorderColor},
".error":{
"NativeBase.Icon":{
color:variables.inputErrorBorderColor},
"NativeBase.IconNB":{
color:variables.inputErrorBorderColor},
".rounded":{
borderRadius:30,
borderColor:variables.inputErrorBorderColor},
".regular":{
borderColor:variables.inputErrorBorderColor},
".underline":{
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputErrorBorderColor},
borderColor:variables.inputErrorBorderColor},
".disabled":{
"NativeBase.Icon":{
color:"#384850"},
"NativeBase.IconNB":{
color:"#384850"}},
".picker":{
marginLeft:0},
borderWidth:variables.borderWidth*2,
borderTopWidth:0,
borderRightWidth:0,
borderLeftWidth:0,
borderColor:variables.inputBorderColor,
backgroundColor:"transparent",
flexDirection:"row",
alignItems:"center",
marginLeft:2};
return itemTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h1Theme={
color:variables.textColor,
fontSize:variables.fontSizeH1,
lineHeight:variables.lineHeightH1};
return h1Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h2Theme={
color:variables.textColor,
fontSize:variables.fontSizeH2,
lineHeight:variables.lineHeightH2};
return h2Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var h3Theme={
color:variables.textColor,
fontSize:variables.fontSizeH3,
lineHeight:variables.lineHeightH3};
return h3Theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Textarea.js |
Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var thumbnailTheme={'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28};return thumbnailTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var thumbnailTheme={
<mask> '.square':{
<mask> borderRadius:0,
<mask> '.small':{
<mask> width:36,
<mask> height:36,
<mask> borderRadius:0},
<mask>
<mask> '.large':{
<mask> width:80,
<mask> height:80,
<mask> borderRadius:0}},
<mask>
<mask>
<mask> '.small':{
<mask> width:36,
<mask> height:36,
<mask> borderRadius:18,
<mask> '.square':{
<mask> borderRadius:0}},
<mask>
<mask>
<mask> '.large':{
<mask> width:80,
<mask> height:80,
<mask> borderRadius:40,
<mask> '.square':{
<mask> borderRadius:0}},
<mask>
<mask>
<mask> width:56,
<mask> height:56,
<mask> borderRadius:28};
<mask>
<mask>
<mask> return thumbnailTheme;
<mask> };
<mask> //# sourceMappingURL=Thumbnail.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var swipeRowTheme={
"NativeBase.ListItem":{
".list":{
backgroundColor:"#FFF"},
marginLeft:0},
"NativeBase.Left":{
flex:0,
alignSelf:null,
alignItems:null,
"NativeBase.Button":{
flex:1,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}},
"NativeBase.Right":{
flex:0,
alignSelf:null,
alignItems:null,
"NativeBase.Button":{
flex:1,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}},
"NativeBase.Button":{
flex:1,
height:null,
alignItems:"center",
justifyContent:"center",
alignSelf:"stretch",
borderRadius:0}};
return swipeRowTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var swipeRowTheme={"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}};return swipeRowTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var leftTheme={
flex:1,
alignSelf:'center',
alignItems:'flex-start'};
return leftTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var bodyTheme={
flex:1,
alignItems:'center',
alignSelf:'center'};
return bodyTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var rightTheme={
'NativeBase.Button':{
alignSelf:null},
flex:1,
alignSelf:'center',
alignItems:'flex-end'};
return rightTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var inputTheme={
'.multiline':{
height:null},
height:variables.inputHeightBase,
color:variables.inputColor,
paddingLeft:5,
paddingRight:5,
flex:1,
fontSize:variables.inputFontSize};
return inputTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Thumbnail.js |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var titleTheme={fontSize:variables.titleFontSize,fontFamily:variables.titleFontfamily,color:variables.titleFontColor,fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,paddingTop:1};return titleTheme;}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
<mask>
<mask> var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
<mask>
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
<mask> var titleTheme={
<mask> fontSize:variables.titleFontSize,
<mask> fontFamily:variables.titleFontfamily,
<mask> color:variables.titleFontColor,
<mask> fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,
<mask> textAlign:"center",
<mask> paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
<mask> marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,
<mask> paddingTop:1};
<mask>
<mask>
<mask> return titleTheme;
<mask> };
<mask> //# sourceMappingURL=Title.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var badgeTheme={
".primary":{
backgroundColor:variables.btnPrimaryBg},
".warning":{
backgroundColor:variables.btnWarningBg},
".info":{
backgroundColor:variables.btnInfoBg},
".success":{
backgroundColor:variables.btnSuccessBg},
".danger":{
backgroundColor:variables.btnDangerBg},
"NativeBase.Text":{
color:variables.badgeColor,
fontSize:variables.fontSizeBase,
lineHeight:variables.lineHeight-1,
textAlign:"center",
paddingHorizontal:3},
backgroundColor:variables.badgeBg,
padding:variables.badgePadding,
paddingHorizontal:6,
alignSelf:"flex-start",
justifyContent:variables.platform==="ios"?"center":undefined,
borderRadius:13.5,
height:27};
return badgeTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var badgeTheme={".primary":{backgroundColor:variables.btnPrimaryBg},".warning":{backgroundColor:variables.btnWarningBg},".info":{backgroundColor:variables.btnInfoBg},".success":{backgroundColor:variables.btnSuccessBg},".danger":{backgroundColor:variables.btnDangerBg},"NativeBase.Text":{color:variables.badgeColor,fontSize:variables.fontSizeBase,lineHeight:variables.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:variables.badgeBg,padding:variables.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:variables.platform==="ios"?"center":undefined,borderRadius:13.5,height:27};return badgeTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var pickerTheme={};
return pickerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var spinnerTheme={
height:80};
return spinnerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var switchTheme={
marginVertical:-5};
return switchTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/components/Title.js |
Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;var deviceWidth=_reactNative.Dimensions.get("window").width;var platform=_reactNative.Platform.OS;var platformStyle=undefined;var isIphoneX=platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default={platformStyle:platformStyle,platform:platform,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:true,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:true,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:platform==="ios"?3:0,btnFontFamily:platform==="ios"?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary;},get btnPrimaryColor(){return this.inverseTextColor;},get btnInfoBg(){return this.brandInfo;},get btnInfoColor(){return this.inverseTextColor;},get btnSuccessBg(){return this.brandSuccess;},get btnSuccessColor(){return this.inverseTextColor;},get btnDangerBg(){return this.brandDanger;},get btnDangerColor(){return this.inverseTextColor;},get btnWarningBg(){return this.brandWarning;},get btnWarningColor(){return this.inverseTextColor;},get btnTextSize(){return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;},get btnTextSizeLarge(){return this.fontSizeBase*1.5;},get btnTextSizeSmall(){return this.fontSizeBase*0.8;},get borderRadiusLarge(){return this.fontSizeBase*3.8;},get iconSizeLarge(){return this.iconFontSize*1.5;},get iconSizeSmall(){return this.iconFontSize*0.6;},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:platform==="ios"?10:12,CheckboxRadius:platform==="ios"?13:0,CheckboxBorderWidth:platform==="ios"?1:2,CheckboxPaddingLeft:platform==="ios"?4:2,CheckboxPaddingBottom:platform==="ios"?0:5,CheckboxIconSize:platform==="ios"?21:16,CheckboxIconMarginTop:platform==="ios"?undefined:1,CheckboxFontSize:platform==="ios"?23/0.9:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:platform==="ios"?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:platform==="ios"?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return this.fontSizeBase*1.8;},get fontSizeH2(){return this.fontSizeBase*1.6;},get fontSizeH3(){return this.fontSizeBase*1.4;},footerHeight:55,footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",tabBarTextSize:platform==="ios"?14:11,activeTab:platform==="ios"?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",toolbarBtnColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",toolbarHeight:platform==="ios"?64:56,toolbarSearchIconSize:platform==="ios"?20:23,toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",searchBarHeight:platform==="ios"?30:40,searchBarInputHeight:platform==="ios"?30:50,toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",iosStatusbar:platform==="ios"?"dark-content":"light-content",get statusBarColor(){return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();},get darkenHeader(){return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();},iconFamily:"Ionicons",iconFontSize:platform==="ios"?30:28,iconHeaderSize:platform==="ios"?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor;},get inputColorPlaceholder(){return"#575757";},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:platform==="ios"?20:24,listItemSelected:platform==="ios"?"#007aff":"#3F51B5",listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:platform==="ios"?10:12,listNoteColor:"#808080",listNoteSize:13,defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:platform==="ios"?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:platform==="ios"?29:24,get radioColor(){return this.brandPrimary;},segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",segmentTextColor:platform==="ios"?"#007aff":"#fff",segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",segmentBorderColor:platform==="ios"?"#007aff":"#fff",segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor;},titleFontfamily:platform==="ios"?"System":"Roboto_medium",titleFontSize:platform==="ios"?17:19,subTitleFontSize:platform==="ios"?11:14,subtitleColor:platform==="ios"?"#8e8e93":"#FFF",titleFontColor:platform==="ios"?"#000":"#FFF",borderRadiusBase:platform==="ios"?5:2,borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:deviceWidth,deviceHeight:deviceHeight,isIphoneX:isIphoneX,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);
<mask>
<mask> var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask> var deviceHeight=_reactNative.Dimensions.get("window").height;
<mask> var deviceWidth=_reactNative.Dimensions.get("window").width;
<mask> var platform=_reactNative.Platform.OS;
<mask> var platformStyle=undefined;
<mask> var isIphoneX=
<mask> platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default=
<mask>
<mask> {
<mask> platformStyle:platformStyle,
<mask> platform:platform,
<mask>
<mask>
<mask> headerStyle:"#edebed",
<mask> iconStyle:"#000",
<mask> contentStyle:"#f5f4f5",
<mask> expandedIconStyle:"#000",
<mask> accordionBorderColor:"#d3d3d3",
<mask>
<mask>
<mask> androidRipple:true,
<mask> androidRippleColor:"rgba(256, 256, 256, 0.3)",
<mask> androidRippleColorDark:"rgba(0, 0, 0, 0.15)",
<mask> btnUppercaseAndroidText:true,
<mask>
<mask>
<mask> badgeBg:"#ED1727",
<mask> badgeColor:"#fff",
<mask> badgePadding:platform==="ios"?3:0,
<mask>
<mask>
<mask> btnFontFamily:platform==="ios"?"System":"Roboto_medium",
<mask> btnDisabledBg:"#b5b5b5",
<mask> buttonPadding:6,
<mask> get btnPrimaryBg(){
<mask> return this.brandPrimary;
<mask> },
<mask> get btnPrimaryColor(){
<mask> return this.inverseTextColor;
<mask> },
<mask> get btnInfoBg(){
<mask> return this.brandInfo;
<mask> },
<mask> get btnInfoColor(){
<mask> return this.inverseTextColor;
<mask> },
<mask> get btnSuccessBg(){
<mask> return this.brandSuccess;
<mask> },
<mask> get btnSuccessColor(){
<mask> return this.inverseTextColor;
<mask> },
<mask> get btnDangerBg(){
<mask> return this.brandDanger;
<mask> },
<mask> get btnDangerColor(){
<mask> return this.inverseTextColor;
<mask> },
<mask> get btnWarningBg(){
<mask> return this.brandWarning;
<mask> },
<mask> get btnWarningColor(){
<mask> return this.inverseTextColor;
<mask> },
<mask> get btnTextSize(){
<mask> return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;
<mask> },
<mask> get btnTextSizeLarge(){
<mask> return this.fontSizeBase*1.5;
<mask> },
<mask> get btnTextSizeSmall(){
<mask> return this.fontSizeBase*0.8;
<mask> },
<mask> get borderRadiusLarge(){
<mask> return this.fontSizeBase*3.8;
<mask> },
<mask> get iconSizeLarge(){
<mask> return this.iconFontSize*1.5;
<mask> },
<mask> get iconSizeSmall(){
<mask> return this.iconFontSize*0.6;
<mask> },
<mask>
<mask>
<mask> cardDefaultBg:"#fff",
<mask> cardBorderColor:"#ccc",
<mask> cardBorderRadius:2,
<mask> cardItemPadding:platform==="ios"?10:12,
<mask>
<mask>
<mask> CheckboxRadius:platform==="ios"?13:0,
<mask> CheckboxBorderWidth:platform==="ios"?1:2,
<mask> CheckboxPaddingLeft:platform==="ios"?4:2,
<mask> CheckboxPaddingBottom:platform==="ios"?0:5,
<mask> CheckboxIconSize:platform==="ios"?21:16,
<mask> CheckboxIconMarginTop:platform==="ios"?undefined:1,
<mask> CheckboxFontSize:platform==="ios"?23/0.9:17,
<mask> checkboxBgColor:"#039BE5",
<mask> checkboxSize:20,
<mask> checkboxTickColor:"#fff",
<mask>
<mask>
<mask> brandPrimary:platform==="ios"?"#007aff":"#3F51B5",
<mask> brandInfo:"#62B1F6",
<mask> brandSuccess:"#5cb85c",
<mask> brandDanger:"#d9534f",
<mask> brandWarning:"#f0ad4e",
<mask> brandDark:"#000",
<mask> brandLight:"#f4f4f4",
<mask>
<mask>
<mask> datePickerTextColor:"#000",
<mask> datePickerBg:"transparent",
<mask>
<mask>
<mask> DefaultFontSize:16,
<mask> fontFamily:platform==="ios"?"System":"Roboto",
<mask> fontSizeBase:15,
<mask> get fontSizeH1(){
<mask> return this.fontSizeBase*1.8;
<mask> },
<mask> get fontSizeH2(){
<mask> return this.fontSizeBase*1.6;
<mask> },
<mask> get fontSizeH3(){
<mask> return this.fontSizeBase*1.4;
<mask> },
<mask>
<mask>
<mask> footerHeight:55,
<mask> footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> footerPaddingBottom:0,
<mask>
<mask>
<mask> tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",
<mask> tabBarTextSize:platform==="ios"?14:11,
<mask> activeTab:platform==="ios"?"#007aff":"#fff",
<mask> sTabBarActiveTextColor:"#007aff",
<mask> tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",
<mask> tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",
<mask>
<mask>
<mask> toolbarBtnColor:platform==="ios"?"#007aff":"#fff",
<mask> toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> toolbarHeight:platform==="ios"?64:56,
<mask> toolbarSearchIconSize:platform==="ios"?20:23,
<mask> toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",
<mask> searchBarHeight:platform==="ios"?30:40,
<mask> searchBarInputHeight:platform==="ios"?30:50,
<mask> toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",
<mask> toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",
<mask> iosStatusbar:platform==="ios"?"dark-content":"light-content",
<mask> get statusBarColor(){
<mask> return(0,_color2.default)(this.toolbarDefaultBg).
<mask> darken(0.2).
<mask> hex();
<mask> },
<mask> get darkenHeader(){
<mask> return(0,_color2.default)(this.tabBgColor).
<mask> darken(0.03).
<mask> hex();
<mask> },
<mask>
<mask>
<mask> iconFamily:"Ionicons",
<mask> iconFontSize:platform==="ios"?30:28,
<mask> iconHeaderSize:platform==="ios"?33:24,
<mask>
<mask>
<mask> inputFontSize:17,
<mask> inputBorderColor:"#D9D5DC",
<mask> inputSuccessBorderColor:"#2b8339",
<mask> inputErrorBorderColor:"#ed2f2f",
<mask> inputHeightBase:50,
<mask> get inputColor(){
<mask> return this.textColor;
<mask> },
<mask> get inputColorPlaceholder(){
<mask> return"#575757";
<mask> },
<mask>
<mask>
<mask> btnLineHeight:19,
<mask> lineHeightH1:32,
<mask> lineHeightH2:27,
<mask> lineHeightH3:22,
<mask> lineHeight:platform==="ios"?20:24,
<mask> listItemSelected:platform==="ios"?"#007aff":"#3F51B5",
<mask>
<mask>
<mask> listBg:"transparent",
<mask> listBorderColor:"#c9c9c9",
<mask> listDividerBg:"#f4f4f4",
<mask> listBtnUnderlayColor:"#DDD",
<mask> listItemPadding:platform==="ios"?10:12,
<mask> listNoteColor:"#808080",
<mask> listNoteSize:13,
<mask>
<mask>
<mask> defaultProgressColor:"#E4202D",
<mask> inverseProgressColor:"#1A191B",
<mask>
<mask>
<mask> radioBtnSize:platform==="ios"?25:23,
<mask> radioSelectedColorAndroid:"#3F51B5",
<mask> radioBtnLineHeight:platform==="ios"?29:24,
<mask> get radioColor(){
<mask> return this.brandPrimary;
<mask> },
<mask>
<mask>
<mask> segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",
<mask> segmentTextColor:platform==="ios"?"#007aff":"#fff",
<mask> segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",
<mask> segmentBorderColor:platform==="ios"?"#007aff":"#fff",
<mask> segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",
<mask>
<mask>
<mask> defaultSpinnerColor:"#45D56E",
<mask> inverseSpinnerColor:"#1A191B",
<mask>
<mask>
<mask> tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",
<mask> topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",
<mask> topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",
<mask> topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",
<mask>
<mask>
<mask> tabBgColor:"#F8F8F8",
<mask> tabFontSize:15,
<mask>
<mask>
<mask> textColor:"#000",
<mask> inverseTextColor:"#fff",
<mask> noteFontSize:14,
<mask> get defaultTextColor(){
<mask> return this.textColor;
<mask> },
<mask>
<mask>
<mask> titleFontfamily:platform==="ios"?"System":"Roboto_medium",
<mask> titleFontSize:platform==="ios"?17:19,
<mask> subTitleFontSize:platform==="ios"?11:14,
<mask> subtitleColor:platform==="ios"?"#8e8e93":"#FFF",
<mask> titleFontColor:platform==="ios"?"#000":"#FFF",
<mask>
<mask>
<mask> borderRadiusBase:platform==="ios"?5:2,
<mask> borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),
<mask> contentPadding:10,
<mask> dropdownLinkColor:"#414142",
<mask> inputLineHeight:24,
<mask> deviceWidth:deviceWidth,
<mask> deviceHeight:deviceHeight,
<mask> isIphoneX:isIphoneX,
<mask> inputGroupRoundedBorderRadius:30,
<mask>
<mask>
<mask> Inset:{
<mask> portrait:{
<mask> topInset:24,
<mask> leftInset:0,
<mask> rightInset:0,
<mask> bottomInset:34},
<mask>
<mask> landscape:{
<mask> topInset:0,
<mask> leftInset:44,
<mask> rightInset:44,
<mask> bottomInset:21}}};
<mask> //# sourceMappingURL=platform.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
var React=require("react");var
Component=React.Component;
var ReactNative=require("react-native");var
Dimensions=
ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;
var TimerMixin=require("react-timer-mixin");
var SceneComponent=require("./SceneComponent");var _require=
require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=
require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;
var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",
mixins:[TimerMixin],
statics:{
DefaultTabBar:DefaultTabBar,
ScrollableTabBar:ScrollableTabBar},
propTypes:{
tabBarPosition:_propTypes2.default.oneOf([
"top",
"bottom",
"overlayTop",
"overlayBottom"]),
initialPage:_propTypes2.default.number,
page:_propTypes2.default.number,
onChangeTab:_propTypes2.default.func,
onScroll:_propTypes2.default.func,
renderTabBar:_propTypes2.default.any,
style:_utils.ViewPropTypes.style,
contentProps:_propTypes2.default.object,
scrollWithoutAnimation:_propTypes2.default.bool,
locked:_propTypes2.default.bool,
prerenderingSiblingsNumber:_propTypes2.default.number},
getDefaultProps:function getDefaultProps(){
return{
tabBarPosition:"top",
initialPage:0,
page:-1,
onChangeTab:function onChangeTab(){},
onScroll:function onScroll(){},
contentProps:{},
scrollWithoutAnimation:false,
locked:false,
prerenderingSiblingsNumber:0};
},
getInitialState:function getInitialState(){
return{
currentPage:this.props.initialPage,
scrollValue:new Animated.Value(this.props.initialPage),
containerWidth:Dimensions.get("window").width,
sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};
},
componentDidMount:function componentDidMount(){var _this=this;
var scrollFn=function scrollFn(){
if(_this.scrollView){
_this.state.scrollValue.setValue(_this.props.initialPage);
}
};
_utils.InteractionManager.runAfterInteractions(scrollFn);
},
componentWillReceiveProps:function componentWillReceiveProps(props){
if(props.children!==this.props.children){
this.updateSceneKeys({
page:this.state.currentPage,
children:props.children});
}
if(props.page>=0&&props.page!==this.state.currentPage){
this.goToPage(props.page);
}
},
goToPage:function goToPage(pageNumber){
var offset=pageNumber*this.state.containerWidth;
if(this.scrollView){
this.scrollView.scrollTo({
x:offset,
y:0,
animated:!this.props.scrollWithoutAnimation});
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:pageNumber,
callback:this._onChangeTab.bind(this,currentPage,pageNumber)});
},
renderTabBar:function renderTabBar(props){
if(this.props.renderTabBar===false){
return null;
}else if(this.props.renderTabBar){
return React.cloneElement(this.props.renderTabBar(props),props);
}else{
return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));
}
},
updateSceneKeys:function updateSceneKeys(_ref)
{var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;
var newKeys=this.newSceneKeys({
previousKeys:this.state.sceneKeys,
currentPage:page,
children:children});
this.setState({currentPage:page,sceneKeys:newKeys},callback);
},
newSceneKeys:function newSceneKeys(_ref2)
{var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;
var newKeys=[];
this._children(children).forEach(function(child,idx){
var key=_this2._makeSceneKey(child,idx);
if(
_this2._keyExists(previousKeys,key)||
_this2._shouldRenderSceneKey(idx,currentPage))
{
newKeys.push(key);
}
});
return newKeys;
},
_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){
var numOfSibling=this.props.prerenderingSiblingsNumber;
return(
idx<currentPageKey+numOfSibling+1&&
idx>currentPageKey-numOfSibling-1);
},
_keyExists:function _keyExists(sceneKeys,key){
return sceneKeys.find(function(sceneKey){return key===sceneKey;});
},
_makeSceneKey:function _makeSceneKey(child,idx){
return child.props.heading+"_"+idx;
},
renderScrollableContent:function renderScrollableContent(){var _this3=this;
var scenes=this._composeScenes();
return(
React.createElement(ScrollView,_extends({
horizontal:true,
pagingEnabled:true,
automaticallyAdjustContentInsets:false,
keyboardShouldPersistTaps:"handled",
contentOffset:{
x:this.props.initialPage*this.state.containerWidth},
ref:function ref(scrollView){
_this3.scrollView=scrollView;
},
onScroll:function onScroll(e){
var offsetX=e.nativeEvent.contentOffset.x;
_this3._updateScrollValue(offsetX/_this3.state.containerWidth);
},
onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,
onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,
scrollEventThrottle:16,
scrollsToTop:false,
showsHorizontalScrollIndicator:false,
scrollEnabled:!this.props.locked,
directionalLockEnabled:true,
alwaysBounceVertical:false,
keyboardDismissMode:"on-drag"},
this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),
scenes));
},
_composeScenes:function _composeScenes(){var _this4=this;
return this._children().map(function(child,idx){
var key=_this4._makeSceneKey(child,idx);
return(
React.createElement(SceneComponent,{
key:child.key,
shouldUpdated:_this4._shouldRenderSceneKey(
idx,
_this4.state.currentPage),
style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},
_this4._keyExists(_this4.state.sceneKeys,key)?
child:
React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}})));
});
},
_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){
var offsetX=e.nativeEvent.contentOffset.x;
var page=Math.round(offsetX/this.state.containerWidth);
if(this.state.currentPage!==page){
this._updateSelectedPage(page);
}
},
_updateSelectedPage:function _updateSelectedPage(nextPage){
var localNextPage=nextPage;
if(typeof localNextPage==="object"){
localNextPage=nextPage.nativeEvent.position;
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:localNextPage,
callback:this._onChangeTab.bind(this,currentPage,localNextPage)});
},
_onChangeTab:function _onChangeTab(prevPage,currentPage){
this.props.onChangeTab({
i:currentPage,
ref:this._children()[currentPage],
from:prevPage});
},
_updateScrollValue:function _updateScrollValue(value){
this.state.scrollValue.setValue(value);
this.props.onScroll(value);
},
_handleLayout:function _handleLayout(e){var _this5=this;var
width=e.nativeEvent.layout.width;
if(Math.round(width)!==Math.round(this.state.containerWidth)){
this.setState({containerWidth:width});
this.requestAnimationFrame(function(){
_this5.goToPage(_this5.state.currentPage);
});
}
},
_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;
return React.Children.map(children,function(child){return child;});
},
render:function render(){
var overlayTabs=
this.props.tabBarPosition==="overlayTop"||
this.props.tabBarPosition==="overlayBottom";
var tabBarProps={
goToPage:this.goToPage,
tabs:this._children().map(function(child){return child.props.heading;}),
tabStyle:this._children().map(function(child){return child.props.tabStyle;}),
activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),
textStyle:this._children().map(function(child){return child.props.textStyle;}),
activeTextStyle:this._children().map(
function(child){return child.props.activeTextStyle;}),
tabHeaderStyle:this._children().map(function(child){return(
_lodash2.default.get(child.props.heading.props,"style",undefined));}),
activeTab:this.state.currentPage,
scrollValue:this.state.scrollValue,
containerWidth:this.state.containerWidth};
if(this.props.tabBarBackgroundColor){
tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;
}
if(this.props.tabBarActiveTextColor){
tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;
}
if(this.props.tabBarInactiveTextColor){
tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;
}
if(this.props.tabBarTextStyle){
tabBarProps.textStyle=this.props.tabBarTextStyle;
}
if(this.props.tabBarUnderlineStyle){
tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;
}
if(this.props.tabContainerStyle){
tabBarProps.tabContainerStyle=this.props.tabContainerStyle;
}
if(overlayTabs){var _tabBarProps$style;
tabBarProps.style=(_tabBarProps$style={
position:"absolute",
left:0,
right:0},_defineProperty(_tabBarProps$style,
this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor",
"rgba(255, 255, 255, 0.7)"),_tabBarProps$style);
}
return(
React.createElement(View,{
style:[styles.container,this.props.style],
onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},
(this.props.tabBarPosition==="top"||
this.props.tabBarPosition==="overlayTop")&&
this.renderTabBar(tabBarProps),
this.renderScrollableContent(),
(this.props.tabBarPosition==="bottom"||
this.props.tabBarPosition==="overlayBottom")&&
this.renderTabBar(tabBarProps)));
}});exports.default=
ScrollableTabView;
var styles=StyleSheet.create({
container:{
flex:1},
scrollableContentAndroid:{
flex:1}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var React=require("react");var Component=React.Component;var ReactNative=require("react-native");var Dimensions=ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;var TimerMixin=require("react-timer-mixin");var SceneComponent=require("./SceneComponent");var _require=require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",mixins:[TimerMixin],statics:{DefaultTabBar:DefaultTabBar,ScrollableTabBar:ScrollableTabBar},propTypes:{tabBarPosition:_propTypes2.default.oneOf(["top","bottom","overlayTop","overlayBottom"]),initialPage:_propTypes2.default.number,page:_propTypes2.default.number,onChangeTab:_propTypes2.default.func,onScroll:_propTypes2.default.func,renderTabBar:_propTypes2.default.any,style:_utils.ViewPropTypes.style,contentProps:_propTypes2.default.object,scrollWithoutAnimation:_propTypes2.default.bool,locked:_propTypes2.default.bool,prerenderingSiblingsNumber:_propTypes2.default.number},getDefaultProps:function getDefaultProps(){return{tabBarPosition:"top",initialPage:0,page:-1,onChangeTab:function onChangeTab(){},onScroll:function onScroll(){},contentProps:{},scrollWithoutAnimation:false,locked:false,prerenderingSiblingsNumber:0};},getInitialState:function getInitialState(){return{currentPage:this.props.initialPage,scrollValue:new Animated.Value(this.props.initialPage),containerWidth:Dimensions.get("window").width,sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};},componentDidMount:function componentDidMount(){var _this=this;var scrollFn=function scrollFn(){if(_this.scrollView){_this.state.scrollValue.setValue(_this.props.initialPage);}};_utils.InteractionManager.runAfterInteractions(scrollFn);},componentWillReceiveProps:function componentWillReceiveProps(props){if(props.children!==this.props.children){this.updateSceneKeys({page:this.state.currentPage,children:props.children});}if(props.page>=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idx<currentPageKey+numOfSibling+1&&idx>currentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var Button=require("./Button");
var ReactNative=require("react-native");var
View=
ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
var WINDOW_WIDTH=Dimensions.get("window").width;
var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
scrollOffset:_propTypes2.default.number,
style:_utils.ViewPropTypes.style,
tabStyle:_utils.ViewPropTypes.style,
tabsContainerStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
onScroll:_propTypes2.default.func},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
scrollOffset:52,
activeTextColor:"navy",
inactiveTextColor:"black",
backgroundColor:_platform2.default.tabDefaultBg,
style:{},
tabStyle:{},
tabsContainerStyle:{},
underlineStyle:{},
tabFontSize:_platform2.default.tabFontSize};
},
getInitialState:function getInitialState(){
this._tabsMeasurements=[];
return{
_leftTabUnderline:new Animated.Value(0),
_widthTabUnderline:new Animated.Value(0),
_containerWidth:null};
},
componentDidMount:function componentDidMount(){
this.props.scrollValue.addListener(this.updateView);
},
updateView:function updateView(offset){
var position=Math.floor(offset.value);
var pageOffset=offset.value%1;
var tabCount=this.props.tabs.length;
var lastTabPosition=tabCount-1;
if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
return;
}
if(
this.necessarilyMeasurementsCompleted(
position,
position===lastTabPosition))
{
this.updateTabPanel(position,pageOffset);
this.updateTabUnderline(position,pageOffset,tabCount);
}
},
necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
return(
this._tabsMeasurements[position]&&(
isLastTab||this._tabsMeasurements[position+1])&&
this._tabContainerMeasurements&&
this._containerMeasurements);
},
updateTabPanel:function updateTabPanel(position,pageOffset){
var containerWidth=this._containerMeasurements.width;
var tabWidth=this._tabsMeasurements[position].width;
var nextTabMeasurements=this._tabsMeasurements[position+1];
var nextTabWidth=
nextTabMeasurements&&nextTabMeasurements.width||0;
var tabOffset=this._tabsMeasurements[position].left;
var absolutePageOffset=pageOffset*tabWidth;
var newScrollX=tabOffset+absolutePageOffset;
newScrollX-=
(containerWidth-
(1-pageOffset)*tabWidth-
pageOffset*nextTabWidth)/
2;
newScrollX=newScrollX>=0?newScrollX:0;
if(Platform.OS==="android"){
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}else{
var rightBoundScroll=
this._tabContainerMeasurements.width-
this._containerMeasurements.width;
newScrollX=
newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}
},
updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
var lineLeft=this._tabsMeasurements[position].left;
var lineRight=this._tabsMeasurements[position].right;
if(position<tabCount-1){
var nextTabLeft=this._tabsMeasurements[position+1].left;
var nextTabRight=this._tabsMeasurements[position+1].right;
var newLineLeft=
pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
var newLineRight=
pageOffset*nextTabRight+(1-pageOffset)*lineRight;
this.state._leftTabUnderline.setValue(newLineLeft);
this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
}else{
this.state._leftTabUnderline.setValue(lineLeft);
this.state._widthTabUnderline.setValue(lineRight-lineLeft);
}
},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
onLayoutHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
key:name+"_"+page,
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
_react2.default.createElement(_index.TabHeading,{
scrollable:true,
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
name))));
}else{
return(
_react2.default.createElement(Button,{
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
headerContent)));
}
},
measureTab:function measureTab(page,event){var _event$nativeEvent$la=
event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
this.updateView({value:this.props.scrollValue._value});
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var tabUnderlineStyle={
position:"absolute",
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var dynamicTabUnderline={
left:this.state._leftTabUnderline,
width:this.state._widthTabUnderline};
return(
_react2.default.createElement(View,{
style:[
styles.container,
{backgroundColor:this.props.backgroundColor},
this.props.style],
onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(ScrollView,{
automaticallyAdjustContentInsets:false,
ref:function ref(scrollView){
_this._scrollView=scrollView;
},
horizontal:true,
showsHorizontalScrollIndicator:false,
showsVerticalScrollIndicator:false,
directionalLockEnabled:true,
onScroll:this.props.onScroll,
bounces:false,
scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
_react2.default.createElement(View,{
style:[
styles.tabs,
{width:this.state._containerWidth},
this.props.tabsContainerStyle],
ref:"tabContainer",
onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
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]);
}),
_react2.default.createElement(Animated.View,{
style:[
tabUnderlineStyle,
dynamicTabUnderline,
this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
},
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
if(
!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
this.state._containerWidth)
{
this.setState({_containerWidth:null});
}
},
onTabContainerLayout:function onTabContainerLayout(e){
this._tabContainerMeasurements=e.nativeEvent.layout;
var width=this._tabContainerMeasurements.width;
if(width<WINDOW_WIDTH){
width=WINDOW_WIDTH;
}
this.setState({_containerWidth:width});
this.updateView({value:this.props.scrollValue._value});
},
onContainerLayout:function onContainerLayout(e){
this._containerMeasurements=e.nativeEvent.layout;
this.updateView({value:this.props.scrollValue._value});
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ScrollableTab",
{},
_mapPropsToStyleNames2.default)(
ScrollableTabBar);exports.
ScrollableTab=StyledTab;
var styles=StyleSheet.create({
tab:{
height:49,
alignItems:"center",
justifyContent:"center",
paddingLeft:20,
paddingRight:20},
container:{
height:50,
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderColor:"#ccc"},
tabs:{
flexDirection:"row",
justifyContent:"space-around"}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _Text=require("./Text");
var _Button=require("./Button");
var _View=require("./View");
var _Icon=require("./Icon");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _ListItem=require("./ListItem");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);
function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,
props));
_this.state={
modalVisible:false,
items:[]};return _this;
}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(
config,callback){
if(_reactNative.Platform.OS==="ios"){
if(typeof config.options[0]=="object"){
var options=config.options;
var filtered=options.map(function(item){
return item.text;
});
config.options=filtered;
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}else{
_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);
}
}else{
this.setState({
items:config.options,
title:config.title,
message:config.message,
destructiveButtonIndex:config.destructiveButtonIndex,
cancelButtonIndex:config.cancelButtonIndex,
modalVisible:true,
callback:callback});
}
}},{key:"componentDidMount",value:function componentDidMount()
{
if(!this.props.autoHide&&this.props.duration){
console.warn("It's not recommended to set autoHide false with duration");
}
}},{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Modal,{
animationType:"fade",
transparent:true,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
onPress:function onPress(){
_this2.state.callback(_this2.state.cancelButtonIndex);
_this2.setState({modalVisible:false});
},
style:{
backgroundColor:"rgba(0,0,0,0.4)",
flex:1,
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
_react2.default.createElement(_reactNative.TouchableOpacity,{
activeOpacity:1,
style:{
backgroundColor:"#fff",
minHeight:56,
height:this.state.length*80,
maxHeight:_reactNative.Dimensions.get("window").height/2,
padding:15,
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
this.state.title?
_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):
null,
_react2.default.createElement(_reactNative.FlatList,{
style:{
marginHorizontal:-15,
marginTop:this.state.title?15:0},
data:this.state.items,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;
return typeof _this2.state.items[0]==="string"?
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
_react2.default.createElement(_ListItem.ListItem,{
onPress:function onPress(){
_this2.state.callback(parseInt(index));
_this2.setState({modalVisible:false});
},
style:{
borderColor:"transparent",
marginLeft:14,
height:50},
icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
_react2.default.createElement(_Icon.Icon,{
name:item.icon,
style:{
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
_react2.default.createElement(_Body.Body,{
style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);
ActionSheetContainer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ActionSheetContainer",
{},
_mapPropsToStyleNames2.default)(
ActionSheetContainer);exports.
ActionSheetContainer=StyledActionSheetContainer;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Actionsheet.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _Text=require("./Text");var _Button=require("./Button");var _View=require("./View");var _Icon=require("./Icon");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _ListItem=require("./ListItem");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ActionSheetContainer=function(_Component){_inherits(ActionSheetContainer,_Component);function ActionSheetContainer(props){_classCallCheck(this,ActionSheetContainer);var _this=_possibleConstructorReturn(this,(ActionSheetContainer.__proto__||Object.getPrototypeOf(ActionSheetContainer)).call(this,props));_this.state={modalVisible:false,items:[]};return _this;}_createClass(ActionSheetContainer,[{key:"showActionSheet",value:function showActionSheet(config,callback){if(_reactNative.Platform.OS==="ios"){if(typeof config.options[0]=="object"){var options=config.options;var filtered=options.map(function(item){return item.text;});config.options=filtered;_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}else{_reactNative.ActionSheetIOS.showActionSheetWithOptions(config,callback);}}else{this.setState({items:config.options,title:config.title,message:config.message,destructiveButtonIndex:config.destructiveButtonIndex,cancelButtonIndex:config.cancelButtonIndex,modalVisible:true,callback:callback});}}},{key:"componentDidMount",value:function componentDidMount(){if(!this.props.autoHide&&this.props.duration){console.warn("It's not recommended to set autoHide false with duration");}}},{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Modal,{animationType:"fade",transparent:true,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,onPress:function onPress(){_this2.state.callback(_this2.state.cancelButtonIndex);_this2.setState({modalVisible:false});},style:{backgroundColor:"rgba(0,0,0,0.4)",flex:1,justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},_react2.default.createElement(_reactNative.TouchableOpacity,{activeOpacity:1,style:{backgroundColor:"#fff",minHeight:56,height:this.state.length*80,maxHeight:_reactNative.Dimensions.get("window").height/2,padding:15,elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title):null,_react2.default.createElement(_reactNative.FlatList,{style:{marginHorizontal:-15,marginTop:this.state.title?15:0},data:this.state.items,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item;return typeof _this2.state.items[0]==="string"?_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):_react2.default.createElement(_ListItem.ListItem,{onPress:function onPress(){_this2.state.callback(parseInt(index));_this2.setState({modalVisible:false});},style:{borderColor:"transparent",marginLeft:14,height:50},icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},_react2.default.createElement(_Icon.Icon,{name:item.icon,style:{color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),_react2.default.createElement(_Body.Body,{style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));},__source:{fileName:_jsxFileName,lineNumber:102}}))));}}],[{key:"show",value:function show(config,callback){this.actionsheetInstance._root.showActionSheet(config,callback);}}]);return ActionSheetContainer;}(_react.Component);ActionSheetContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledActionSheetContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ActionSheetContainer",{},_mapPropsToStyleNames2.default)(ActionSheetContainer);exports.ActionSheetContainer=StyledActionSheetContainer; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/theme/variables/platform.js |
"use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; | <mask> "use_strict";
<mask> var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
<mask> var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask>
<mask> module.exports=function(incomingProps,defaultProps){
<mask>
<mask> var computedProps={};
<mask>
<mask> incomingProps=_lodash2.default.clone(incomingProps);
<mask> delete incomingProps.children;
<mask>
<mask> var incomingPropsStyle=incomingProps.style;
<mask> delete incomingProps.style;
<mask>
<mask>
<mask> if(incomingProps){
<mask> _lodash2.default.assign(computedProps,defaultProps,incomingProps);
<mask> }else{
<mask> computedProps=defaultProps;
<mask> }
<mask>
<mask> if(incomingPropsStyle){
<mask> var computedPropsStyle={};
<mask> computedProps.style={};
<mask> if(Array.isArray(incomingPropsStyle)){
<mask> _lodash2.default.forEach(incomingPropsStyle,function(style){
<mask> if(typeof style==="number"){
<mask> _lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
<mask> }else{
<mask> _lodash2.default.merge(computedPropsStyle,style);
<mask> }
<mask> });
<mask> }else if(typeof incomingPropsStyle==="number"){
<mask> computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
<mask> }else{
<mask> computedPropsStyle=incomingPropsStyle;
<mask> }
<mask>
<mask> _lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
<mask> }
<mask>
<mask> return computedProps;
<mask> };
<mask> //# sourceMappingURL=computeProps.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _IconNB=require("../IconNB");
var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName()
{
var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
if((this.props.type||variables.iconFamily)==="Ionicons"){
if(typeof _NBIcons2.default[this.props.name]!=="object"){
return this.props.name;
}else if(typeof _NBIcons2.default[this.props.name]==="object"){
var name=void 0;
if(platform==="ios"&&platformStyle!=="material"){
name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}else{
name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
return name;
}
}else{
return this.props.name;
}
}},{key:"getIconName",value:function getIconName()
{
if(_reactNative.Platform.OS==="ios"){
if(this.props.ios){
return this.props.ios;
}else{
return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;
}
}else if(this.props.android){
return this.props.android;
}else{
return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;
}
}},{key:"render",value:function render()
{var _this2=this;
if(this.props.ios&&this.props.android){
return(
_react2.default.createElement(_IconNB.IconNB,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}})));
}else if(this.props.name&&(this.props.android||this.props.ios)){
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));
}else{
return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));
}
}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};
Icon.propTypes=_extends({},
_IconNB.IconNB.propTypes,{
style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
name:_propTypes2.default.string,
ios:_propTypes2.default.string,
android:_propTypes2.default.string,
active:_propTypes2.default.bool,
type:_propTypes2.default.string});
var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.
Icon=StyledIcon;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Icon=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Icon/index.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _IconNB=require("../IconNB");var _NBIcons=require("./NBIcons.json");var _NBIcons2=_interopRequireDefault(_NBIcons);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Icon=function(_Component){_inherits(Icon,_Component);function Icon(){_classCallCheck(this,Icon);return _possibleConstructorReturn(this,(Icon.__proto__||Object.getPrototypeOf(Icon)).apply(this,arguments));}_createClass(Icon,[{key:"getName",value:function getName(){var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;if((this.props.type||variables.iconFamily)==="Ionicons"){if(typeof _NBIcons2.default[this.props.name]!=="object"){return this.props.name;}else if(typeof _NBIcons2.default[this.props.name]==="object"){var name=void 0;if(platform==="ios"&&platformStyle!=="material"){name=this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}else{name=this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}return name;}}else{return this.props.name;}}},{key:"getIconName",value:function getIconName(){if(_reactNative.Platform.OS==="ios"){if(this.props.ios){return this.props.ios;}else{return this.props.active?_NBIcons2.default[this.props.name].ios.active:_NBIcons2.default[this.props.name].ios.default;}}else if(this.props.android){return this.props.android;}else{return this.props.active?_NBIcons2.default[this.props.name].android.active:_NBIcons2.default[this.props.name].android.default;}}},{key:"render",value:function render(){var _this2=this;if(this.props.ios&&this.props.android){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:_reactNative.Platform.OS==="ios"?this.props.ios:this.props.android,__source:{fileName:_jsxFileName,lineNumber:58}}));}else if(this.props.name&&(this.props.android||this.props.ios)){return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getIconName(),__source:{fileName:_jsxFileName,lineNumber:65}}));}else{return _react2.default.createElement(_IconNB.IconNB,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{name:this.getName(),__source:{fileName:_jsxFileName,lineNumber:67}}));}}}]);return Icon;}(_react.Component);Icon.contextTypes={theme:_propTypes2.default.object};Icon.propTypes=_extends({},_IconNB.IconNB.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),name:_propTypes2.default.string,ios:_propTypes2.default.string,android:_propTypes2.default.string,active:_propTypes2.default.bool,type:_propTypes2.default.string});var StyledIcon=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Icon",{},_mapPropsToStyleNames2.default)(Icon);exports.Icon=StyledIcon; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _reactNative=require("react-native");
var _Icon=require("./Icon");
var _IconNB=require("./IconNB");
var _Button=require("./Button");
var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=
_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;
var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var
Fab=function(_Component){_inherits(Fab,_Component);
function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,
props));
_this.containerHeight=new _reactNative.Animated.Value(56);
_this.containerWidth=new _reactNative.Animated.Value(0);
_this.buttonScale=new _reactNative.Animated.Value(0);
_this.state={
buttons:undefined,
active:false};return _this;
}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(
pos)
{
if(pos==="topLeft"){
return{
top:20,
bottom:undefined,
left:20,
right:undefined};
}else if(pos==="bottomRight"){
return{
top:undefined,
bottom:20,
left:undefined,
right:20};
}else if(pos==="bottomLeft"){
return{
top:undefined,
bottom:20,
left:20,
right:undefined};
}else if(pos==="topRight"){
return{
top:20,
bottom:undefined,
left:undefined,
right:20};
}
}},{key:"fabOtherBtns",value:function fabOtherBtns(
direction,i){
if(direction==="up"){
return{
top:undefined,
bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:5:
i*50+65,
left:8,
right:0};
}else if(direction==="left"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
-(i*50+58),
right:0};
}else if(direction==="down"){
return{
top:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
bottom:0,
left:8,
right:0};
}else if(direction==="right"){
return{
top:8,
bottom:0,
left:
this.props.active===false?
_reactNative.Platform.OS==="ios"?50:8:
i*50+73,
right:0};
}
}},{key:"getInitialStyle",value:function getInitialStyle(
iconStyle){
return{
fab:{
height:56,
width:56,
borderRadius:28,
elevation:4,
shadowColor:"#000",
shadowOffset:{width:0,height:2},
shadowOpacity:0.4,
justifyContent:"center",
alignItems:"center",
shadowRadius:2,
position:"absolute",
bottom:0,
backgroundColor:"blue"},
container:{
position:"absolute",
top:this.props.position?
this.fabTopValue(this.props.position).top:
undefined,
bottom:this.props.position?
this.fabTopValue(this.props.position).bottom:
20,
right:this.props.position?
this.fabTopValue(this.props.position).right:
20,
left:this.props.position?
this.fabTopValue(this.props.position).left:
undefined,
width:56,
height:this.containerHeight,
flexDirection:this.props.direction?
this.props.direction==="left"||this.props.direction==="right"?
"row":
"column":
"column",
alignItems:"center"},
iconStyle:_extends({
color:"#fff",
fontSize:24,
lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},
iconStyle),
buttonStyle:{
position:"absolute",
height:40,
width:40,
left:7,
borderRadius:20,
transform:this.state.active?
[{scale:new _reactNative.Animated.Value(1)}]:
[{scale:this.buttonScale}],
marginBottom:10,
backgroundColor:"blue"}};
}},{key:"getContainerStyle",value:function getContainerStyle()
{
return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);
}},{key:"prepareFabProps",value:function prepareFabProps()
{
var defaultProps={
style:this.getInitialStyle().fab};
var incomingProps=_lodash2.default.clone(this.props);
delete incomingProps.onPress;
return(0,_computeProps2.default)(incomingProps,defaultProps);
}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(
child,i){
var type={
top:this.props.direction?
this.fabOtherBtns(this.props.direction,i).top:
undefined,
left:this.props.direction?
this.fabOtherBtns(this.props.direction,i).left:
8,
right:this.props.direction?
this.fabOtherBtns(this.props.direction,i).right:
0,
bottom:this.props.direction?
this.fabOtherBtns(this.props.direction,i).bottom:
this.props.active===false?
_reactNative.Platform.OS==="ios"?8:8:
i*50+50};
return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);
}},{key:"prepareButtonProps",value:function prepareButtonProps(
child){
var inp=_lodash2.default.clone(child.props);
delete inp.style;
var defaultProps={};
return(0,_computeProps2.default)(inp,defaultProps);
}},{key:"componentDidMount",value:function componentDidMount()
{var _this2=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
this.setState({
buttons:icon.length});
this.activeTimer=setTimeout(function(){
_this2.setState({
active:_this2.props.active});
},0);
}},{key:"componentWillUnmount",value:function componentWillUnmount()
{
if(this.activeTimer){
clearTimeout(this.activeTimer);
}
}},{key:"renderFab",value:function renderFab()
{
var childrenArray=_react2.default.Children.toArray(this.props.children);
var icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Button)"){
return true;
}
});
return _react2.default.cloneElement(childrenArray[0],{
style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});
}},{key:"renderButtons",value:function renderButtons()
{var _this3=this;
var childrenArray=_react2.default.Children.toArray(this.props.children);
var newChildren=[];
{
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:279}}),
child.props.children));
});
}
return newChildren;
}},{key:"upAnimate",value:function upAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"leftAnimate",value:function leftAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"rightAnimate",value:function rightAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerWidth,{
toValue:this.state.buttons*51.3+56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"downAnimate",value:function downAnimate()
{
if(!this.props.active){
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:1}).
start();
}else{
this.setState({
active:false});
_reactNative.Animated.spring(this.containerHeight,{
toValue:56}).
start();
_reactNative.Animated.spring(this.buttonScale,{
toValue:0}).
start();
}
}},{key:"_animate",value:function _animate()
{var _props=
this.props,direction=_props.direction,position=_props.position;
if(this.props.direction){
if(this.props.direction==="up"){
this.upAnimate();
}else if(this.props.direction==="left"){
this.leftAnimate();
}else if(this.props.direction==="right"){
this.rightAnimate();
}else if(this.props.direction==="down"){
this.downAnimate();
}
}else{
this.upAnimate();
}
}},{key:"fabOnPress",value:function fabOnPress()
{var _this4=this;
if(this.props.onPress){
this.props.onPress();
this._animate();
this.activeTimer=setTimeout(function(){
_this4.setState({
active:_this4.props.active});
},100);
}
}},{key:"render",value:function render()
{var _this5=this;var
active=this.props.active;
return(
_react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},
this.renderButtons(),
_reactNative.Platform.OS==="ios"||
_platform2.default.androidRipple===false||
_reactNative.Platform["Version"]<=21?
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),
this.renderFab()):
_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({
onPress:function onPress(){return _this5.fabOnPress();}},
this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),
_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},
this.renderFab()))));
}}]);return Fab;}(_react.Component);
var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.
Fab=StyledFab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _reactNative=require("react-native");var _Icon=require("./Icon");var _IconNB=require("./IconNB");var _Button=require("./Button");var _platform=require("./../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _Dimensions$get=_reactNative.Dimensions.get("window"),height=_Dimensions$get.height,width=_Dimensions$get.width;var AnimatedFab=_reactNative.Animated.createAnimatedComponent(_Button.Button);var Fab=function(_Component){_inherits(Fab,_Component);function Fab(props){_classCallCheck(this,Fab);var _this=_possibleConstructorReturn(this,(Fab.__proto__||Object.getPrototypeOf(Fab)).call(this,props));_this.containerHeight=new _reactNative.Animated.Value(56);_this.containerWidth=new _reactNative.Animated.Value(0);_this.buttonScale=new _reactNative.Animated.Value(0);_this.state={buttons:undefined,active:false};return _this;}_createClass(Fab,[{key:"fabTopValue",value:function fabTopValue(pos){if(pos==="topLeft"){return{top:20,bottom:undefined,left:20,right:undefined};}else if(pos==="bottomRight"){return{top:undefined,bottom:20,left:undefined,right:20};}else if(pos==="bottomLeft"){return{top:undefined,bottom:20,left:20,right:undefined};}else if(pos==="topRight"){return{top:20,bottom:undefined,left:undefined,right:20};}}},{key:"fabOtherBtns",value:function fabOtherBtns(direction,i){if(direction==="up"){return{top:undefined,bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?50:5:i*50+65,left:8,right:0};}else if(direction==="left"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:-(i*50+58),right:0};}else if(direction==="down"){return{top:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,bottom:0,left:8,right:0};}else if(direction==="right"){return{top:8,bottom:0,left:this.props.active===false?_reactNative.Platform.OS==="ios"?50:8:i*50+73,right:0};}}},{key:"getInitialStyle",value:function getInitialStyle(iconStyle){return{fab:{height:56,width:56,borderRadius:28,elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.4,justifyContent:"center",alignItems:"center",shadowRadius:2,position:"absolute",bottom:0,backgroundColor:"blue"},container:{position:"absolute",top:this.props.position?this.fabTopValue(this.props.position).top:undefined,bottom:this.props.position?this.fabTopValue(this.props.position).bottom:20,right:this.props.position?this.fabTopValue(this.props.position).right:20,left:this.props.position?this.fabTopValue(this.props.position).left:undefined,width:56,height:this.containerHeight,flexDirection:this.props.direction?this.props.direction==="left"||this.props.direction==="right"?"row":"column":"column",alignItems:"center"},iconStyle:_extends({color:"#fff",fontSize:24,lineHeight:_reactNative.Platform.OS=="ios"?27:undefined},iconStyle),buttonStyle:{position:"absolute",height:40,width:40,left:7,borderRadius:20,transform:this.state.active?[{scale:new _reactNative.Animated.Value(1)}]:[{scale:this.buttonScale}],marginBottom:10,backgroundColor:"blue"}};}},{key:"getContainerStyle",value:function getContainerStyle(){return _lodash2.default.merge(this.getInitialStyle().container,this.props.containerStyle);}},{key:"prepareFabProps",value:function prepareFabProps(){var defaultProps={style:this.getInitialStyle().fab};var incomingProps=_lodash2.default.clone(this.props);delete incomingProps.onPress;return(0,_computeProps2.default)(incomingProps,defaultProps);}},{key:"getOtherButtonStyle",value:function getOtherButtonStyle(child,i){var type={top:this.props.direction?this.fabOtherBtns(this.props.direction,i).top:undefined,left:this.props.direction?this.fabOtherBtns(this.props.direction,i).left:8,right:this.props.direction?this.fabOtherBtns(this.props.direction,i).right:0,bottom:this.props.direction?this.fabOtherBtns(this.props.direction,i).bottom:this.props.active===false?_reactNative.Platform.OS==="ios"?8:8:i*50+50};return _lodash2.default.merge(this.getInitialStyle().buttonStyle,_reactNative.StyleSheet.flatten(child.props.style),type);}},{key:"prepareButtonProps",value:function prepareButtonProps(child){var inp=_lodash2.default.clone(child.props);delete inp.style;var defaultProps={};return(0,_computeProps2.default)(inp,defaultProps);}},{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});this.setState({buttons:icon.length});this.activeTimer=setTimeout(function(){_this2.setState({active:_this2.props.active});},0);}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.activeTimer){clearTimeout(this.activeTimer);}}},{key:"renderFab",value:function renderFab(){var childrenArray=_react2.default.Children.toArray(this.props.children);var icon=_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Button)"){return true;}});return _react2.default.cloneElement(childrenArray[0],{style:this.getInitialStyle(childrenArray[0].props.style).iconStyle});}},{key:"renderButtons",value:function renderButtons(){var _this3=this;var childrenArray=_react2.default.Children.toArray(this.props.children);var newChildren=[];{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:279}}),child.props.children));});}return newChildren;}},{key:"upAnimate",value:function upAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"leftAnimate",value:function leftAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"rightAnimate",value:function rightAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerWidth,{toValue:this.state.buttons*51.3+56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"downAnimate",value:function downAnimate(){if(!this.props.active){_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:1}).start();}else{this.setState({active:false});_reactNative.Animated.spring(this.containerHeight,{toValue:56}).start();_reactNative.Animated.spring(this.buttonScale,{toValue:0}).start();}}},{key:"_animate",value:function _animate(){var _props=this.props,direction=_props.direction,position=_props.position;if(this.props.direction){if(this.props.direction==="up"){this.upAnimate();}else if(this.props.direction==="left"){this.leftAnimate();}else if(this.props.direction==="right"){this.rightAnimate();}else if(this.props.direction==="down"){this.downAnimate();}}else{this.upAnimate();}}},{key:"fabOnPress",value:function fabOnPress(){var _this4=this;if(this.props.onPress){this.props.onPress();this._animate();this.activeTimer=setTimeout(function(){_this4.setState({active:_this4.props.active});},100);}}},{key:"render",value:function render(){var _this5=this;var active=this.props.active;return _react2.default.createElement(_reactNative.Animated.View,{style:this.getContainerStyle(),__source:{fileName:_jsxFileName,lineNumber:424}},this.renderButtons(),_reactNative.Platform.OS==="ios"||_platform2.default.androidRipple===false||_reactNative.Platform["Version"]<=21?_react2.default.createElement(_reactNative.TouchableOpacity,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:429}}),this.renderFab()):_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({onPress:function onPress(){return _this5.fabOnPress();}},this.prepareFabProps(),{__source:{fileName:_jsxFileName,lineNumber:437}}),_react2.default.createElement(_reactNative.View,{style:[this.getInitialStyle().fab,this.props.style],__source:{fileName:_jsxFileName,lineNumber:441}},this.renderFab())));}}]);return Fab;}(_react.Component);var StyledFab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Fab",{},_mapPropsToStyleNames2.default)(Fab);exports.Fab=StyledFab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Footer=function(_Component){_inherits(Footer,_Component);
function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,
props));
_this.state={
orientation:
_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;
}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.bottomInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var bottomPadder=null;
if(this.props.style[1]!==undefined){
if(
this.props.style[1].padding!==undefined||
this.props.style[1].paddingTop!==undefined)
{
bottomPadder=
(this.props.style[1].paddingTop?
this.props.style[1].paddingTop:
this.props.style[1].padding)+InsetValues.bottomInset;
}
}else if(
this.props.style.padding!==undefined&&
this.props.style.paddingTop!==undefined)
{
bottomPadder=
(this.props.style.paddingTop?
this.props.style.paddingTop:
this.props.style.padding)+InsetValues.bottomInset;
}else{
bottomPadder=InsetValues.bottomInset;
}
return bottomPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
return _platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingBottom:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));
}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};
Footer.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array])});
var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Footer",
{},
_mapPropsToStyleNames2.default)(
Footer);exports.
Footer=StyledFooter;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Footer=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Footer.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Footer=function(_Component){_inherits(Footer,_Component);function Footer(props){_classCallCheck(this,Footer);var _this=_possibleConstructorReturn(this,(Footer.__proto__||Object.getPrototypeOf(Footer)).call(this,props));_this.state={orientation:_platform2.default.deviceHeight>_platform2.default.deviceWidth?"portrait":"landscape"};return _this;}_createClass(Footer,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.bottomInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var bottomPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingTop!==undefined){bottomPadder=(this.props.style[1].paddingTop?this.props.style[1].paddingTop:this.props.style[1].padding)+InsetValues.bottomInset;}}else if(this.props.style.padding!==undefined&&this.props.style.paddingTop!==undefined){bottomPadder=(this.props.style.paddingTop?this.props.style.paddingTop:this.props.style.padding)+InsetValues.bottomInset;}else{bottomPadder=InsetValues.bottomInset;}return bottomPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingBottom:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:85}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:104}}));}}]);return Footer;}(_react.Component);Footer.contextTypes={theme:_propTypes2.default.object};Footer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledFooter=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Footer",{},_mapPropsToStyleNames2.default)(Footer);exports.Footer=StyledFooter; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
var React=require("react");var
Component=React.Component;
var ReactNative=require("react-native");var
Dimensions=
ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;
var TimerMixin=require("react-timer-mixin");
var SceneComponent=require("./SceneComponent");var _require=
require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=
require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;
var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",
mixins:[TimerMixin],
statics:{
DefaultTabBar:DefaultTabBar,
ScrollableTabBar:ScrollableTabBar},
propTypes:{
tabBarPosition:_propTypes2.default.oneOf([
"top",
"bottom",
"overlayTop",
"overlayBottom"]),
initialPage:_propTypes2.default.number,
page:_propTypes2.default.number,
onChangeTab:_propTypes2.default.func,
onScroll:_propTypes2.default.func,
renderTabBar:_propTypes2.default.any,
style:_utils.ViewPropTypes.style,
contentProps:_propTypes2.default.object,
scrollWithoutAnimation:_propTypes2.default.bool,
locked:_propTypes2.default.bool,
prerenderingSiblingsNumber:_propTypes2.default.number},
getDefaultProps:function getDefaultProps(){
return{
tabBarPosition:"top",
initialPage:0,
page:-1,
onChangeTab:function onChangeTab(){},
onScroll:function onScroll(){},
contentProps:{},
scrollWithoutAnimation:false,
locked:false,
prerenderingSiblingsNumber:0};
},
getInitialState:function getInitialState(){
return{
currentPage:this.props.initialPage,
scrollValue:new Animated.Value(this.props.initialPage),
containerWidth:Dimensions.get("window").width,
sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};
},
componentDidMount:function componentDidMount(){var _this=this;
var scrollFn=function scrollFn(){
if(_this.scrollView){
_this.state.scrollValue.setValue(_this.props.initialPage);
}
};
_utils.InteractionManager.runAfterInteractions(scrollFn);
},
componentWillReceiveProps:function componentWillReceiveProps(props){
if(props.children!==this.props.children){
this.updateSceneKeys({
page:this.state.currentPage,
children:props.children});
}
if(props.page>=0&&props.page!==this.state.currentPage){
this.goToPage(props.page);
}
},
goToPage:function goToPage(pageNumber){
var offset=pageNumber*this.state.containerWidth;
if(this.scrollView){
this.scrollView.scrollTo({
x:offset,
y:0,
animated:!this.props.scrollWithoutAnimation});
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:pageNumber,
callback:this._onChangeTab.bind(this,currentPage,pageNumber)});
},
renderTabBar:function renderTabBar(props){
if(this.props.renderTabBar===false){
return null;
}else if(this.props.renderTabBar){
return React.cloneElement(this.props.renderTabBar(props),props);
}else{
return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));
}
},
updateSceneKeys:function updateSceneKeys(_ref)
{var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;
var newKeys=this.newSceneKeys({
previousKeys:this.state.sceneKeys,
currentPage:page,
children:children});
this.setState({currentPage:page,sceneKeys:newKeys},callback);
},
newSceneKeys:function newSceneKeys(_ref2)
{var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;
var newKeys=[];
this._children(children).forEach(function(child,idx){
var key=_this2._makeSceneKey(child,idx);
if(
_this2._keyExists(previousKeys,key)||
_this2._shouldRenderSceneKey(idx,currentPage))
{
newKeys.push(key);
}
});
return newKeys;
},
_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){
var numOfSibling=this.props.prerenderingSiblingsNumber;
return(
idx<currentPageKey+numOfSibling+1&&
idx>currentPageKey-numOfSibling-1);
},
_keyExists:function _keyExists(sceneKeys,key){
return sceneKeys.find(function(sceneKey){return key===sceneKey;});
},
_makeSceneKey:function _makeSceneKey(child,idx){
return child.props.heading+"_"+idx;
},
renderScrollableContent:function renderScrollableContent(){var _this3=this;
var scenes=this._composeScenes();
return(
React.createElement(ScrollView,_extends({
horizontal:true,
pagingEnabled:true,
automaticallyAdjustContentInsets:false,
keyboardShouldPersistTaps:"handled",
contentOffset:{
x:this.props.initialPage*this.state.containerWidth},
ref:function ref(scrollView){
_this3.scrollView=scrollView;
},
onScroll:function onScroll(e){
var offsetX=e.nativeEvent.contentOffset.x;
_this3._updateScrollValue(offsetX/_this3.state.containerWidth);
},
onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,
onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,
scrollEventThrottle:16,
scrollsToTop:false,
showsHorizontalScrollIndicator:false,
scrollEnabled:!this.props.locked,
directionalLockEnabled:true,
alwaysBounceVertical:false,
keyboardDismissMode:"on-drag"},
this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),
scenes));
},
_composeScenes:function _composeScenes(){var _this4=this;
return this._children().map(function(child,idx){
var key=_this4._makeSceneKey(child,idx);
return(
React.createElement(SceneComponent,{
key:child.key,
shouldUpdated:_this4._shouldRenderSceneKey(
idx,
_this4.state.currentPage),
style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},
_this4._keyExists(_this4.state.sceneKeys,key)?
child:
React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}})));
});
},
_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){
var offsetX=e.nativeEvent.contentOffset.x;
var page=Math.round(offsetX/this.state.containerWidth);
if(this.state.currentPage!==page){
this._updateSelectedPage(page);
}
},
_updateSelectedPage:function _updateSelectedPage(nextPage){
var localNextPage=nextPage;
if(typeof localNextPage==="object"){
localNextPage=nextPage.nativeEvent.position;
}
var currentPage=this.state.currentPage;
this.updateSceneKeys({
page:localNextPage,
callback:this._onChangeTab.bind(this,currentPage,localNextPage)});
},
_onChangeTab:function _onChangeTab(prevPage,currentPage){
this.props.onChangeTab({
i:currentPage,
ref:this._children()[currentPage],
from:prevPage});
},
_updateScrollValue:function _updateScrollValue(value){
this.state.scrollValue.setValue(value);
this.props.onScroll(value);
},
_handleLayout:function _handleLayout(e){var _this5=this;var
width=e.nativeEvent.layout.width;
if(Math.round(width)!==Math.round(this.state.containerWidth)){
this.setState({containerWidth:width});
this.requestAnimationFrame(function(){
_this5.goToPage(_this5.state.currentPage);
});
}
},
_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;
return React.Children.map(children,function(child){return child;});
},
render:function render(){
var overlayTabs=
this.props.tabBarPosition==="overlayTop"||
this.props.tabBarPosition==="overlayBottom";
var tabBarProps={
goToPage:this.goToPage,
tabs:this._children().map(function(child){return child.props.heading;}),
tabStyle:this._children().map(function(child){return child.props.tabStyle;}),
activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),
textStyle:this._children().map(function(child){return child.props.textStyle;}),
activeTextStyle:this._children().map(
function(child){return child.props.activeTextStyle;}),
tabHeaderStyle:this._children().map(function(child){return(
_lodash2.default.get(child.props.heading.props,"style",undefined));}),
activeTab:this.state.currentPage,
scrollValue:this.state.scrollValue,
containerWidth:this.state.containerWidth};
if(this.props.tabBarBackgroundColor){
tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;
}
if(this.props.tabBarActiveTextColor){
tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;
}
if(this.props.tabBarInactiveTextColor){
tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;
}
if(this.props.tabBarTextStyle){
tabBarProps.textStyle=this.props.tabBarTextStyle;
}
if(this.props.tabBarUnderlineStyle){
tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;
}
if(this.props.tabContainerStyle){
tabBarProps.tabContainerStyle=this.props.tabContainerStyle;
}
if(overlayTabs){var _tabBarProps$style;
tabBarProps.style=(_tabBarProps$style={
position:"absolute",
left:0,
right:0},_defineProperty(_tabBarProps$style,
this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor",
"rgba(255, 255, 255, 0.7)"),_tabBarProps$style);
}
return(
React.createElement(View,{
style:[styles.container,this.props.style],
onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},
(this.props.tabBarPosition==="top"||
this.props.tabBarPosition==="overlayTop")&&
this.renderTabBar(tabBarProps),
this.renderScrollableContent(),
(this.props.tabBarPosition==="bottom"||
this.props.tabBarPosition==="overlayBottom")&&
this.renderTabBar(tabBarProps)));
}});exports.default=
ScrollableTabView;
var styles=StyleSheet.create({
container:{
flex:1},
scrollableContentAndroid:{
flex:1}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/index.js";var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var React=require("react");var Component=React.Component;var ReactNative=require("react-native");var Dimensions=ReactNative.Dimensions,View=ReactNative.View,Animated=ReactNative.Animated,ScrollView=ReactNative.ScrollView,StyleSheet=ReactNative.StyleSheet,Platform=ReactNative.Platform;var TimerMixin=require("react-timer-mixin");var SceneComponent=require("./SceneComponent");var _require=require("./DefaultTabBar"),DefaultTabBar=_require.DefaultTabBar;var _require2=require("./ScrollableTabBar"),ScrollableTabBar=_require2.ScrollableTabBar;var ScrollableTabView=(0,_createReactClass2.default)({displayName:"ScrollableTabView",mixins:[TimerMixin],statics:{DefaultTabBar:DefaultTabBar,ScrollableTabBar:ScrollableTabBar},propTypes:{tabBarPosition:_propTypes2.default.oneOf(["top","bottom","overlayTop","overlayBottom"]),initialPage:_propTypes2.default.number,page:_propTypes2.default.number,onChangeTab:_propTypes2.default.func,onScroll:_propTypes2.default.func,renderTabBar:_propTypes2.default.any,style:_utils.ViewPropTypes.style,contentProps:_propTypes2.default.object,scrollWithoutAnimation:_propTypes2.default.bool,locked:_propTypes2.default.bool,prerenderingSiblingsNumber:_propTypes2.default.number},getDefaultProps:function getDefaultProps(){return{tabBarPosition:"top",initialPage:0,page:-1,onChangeTab:function onChangeTab(){},onScroll:function onScroll(){},contentProps:{},scrollWithoutAnimation:false,locked:false,prerenderingSiblingsNumber:0};},getInitialState:function getInitialState(){return{currentPage:this.props.initialPage,scrollValue:new Animated.Value(this.props.initialPage),containerWidth:Dimensions.get("window").width,sceneKeys:this.newSceneKeys({currentPage:this.props.initialPage})};},componentDidMount:function componentDidMount(){var _this=this;var scrollFn=function scrollFn(){if(_this.scrollView){_this.state.scrollValue.setValue(_this.props.initialPage);}};_utils.InteractionManager.runAfterInteractions(scrollFn);},componentWillReceiveProps:function componentWillReceiveProps(props){if(props.children!==this.props.children){this.updateSceneKeys({page:this.state.currentPage,children:props.children});}if(props.page>=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idx<currentPageKey+numOfSibling+1&&idx>currentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/utils/computeProps.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.ViewPropTypes=exports.InteractionManager=undefined;var _reactNative=require("react-native");var _interactionManager=require("./interactionManager");var _interactionManager2=_interopRequireDefault(_interactionManager);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.InteractionManager=_interactionManager2.default;exports.ViewPropTypes=_reactNative.ViewPropTypes; | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.ViewPropTypes=exports.InteractionManager=undefined;var _reactNative=require("react-native");
<mask> var _interactionManager=require("./interactionManager");var _interactionManager2=_interopRequireDefault(_interactionManager);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.
<mask>
<mask> InteractionManager=_interactionManager2.default;exports.ViewPropTypes=_reactNative.ViewPropTypes;
<mask> //# sourceMappingURL=index.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
flex:1,
height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){
var keys=_lodash2.default.keys(props);
var values=_lodash2.default.values(props);
_lodash2.default.forEach(keys,function(key,index){
if(values[index]){
styleNames.push(key);
}
});
return styleNames;
};exports.default=
mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){var keys=_lodash2.default.keys(props);var values=_lodash2.default.values(props);_lodash2.default.forEach(keys,function(key,index){if(values[index]){styleNames.push(key);}});return styleNames;};exports.default=mapPropsToStyleNames; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);
var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var platformStyle=variables.platformStyle;
var platform=variables.platform;
var tabContainerTheme={
elevation:3,
height:50,
flexDirection:"row",
shadowColor:platformStyle==="material"?"#000":undefined,
shadowOffset:platformStyle==="material"?
{width:0,height:2}:
undefined,
shadowOpacity:platformStyle==="material"?0.2:undefined,
shadowRadius:platformStyle==="material"?1.2:undefined,
justifyContent:"space-around",
borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,
borderColor:variables.topTabBarBorderColor};
return tabContainerTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var tabContainerTheme={elevation:3,height:50,flexDirection:"row",shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,justifyContent:"space-around",borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,borderColor:variables.topTabBarBorderColor};return tabContainerTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var subtitleTheme={
fontSize:variables.subTitleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.subtitleColor,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};
return subtitleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var titleTheme={
fontSize:variables.titleFontSize,
fontFamily:variables.titleFontfamily,
color:variables.titleFontColor,
fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,
textAlign:"center",
paddingLeft:_reactNative.Platform.OS==="ios"?4:0,
marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,
paddingTop:1};
return titleTheme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var titleTheme={fontSize:variables.titleFontSize,fontFamily:variables.titleFontfamily,color:variables.titleFontColor,fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,paddingTop:1};return titleTheme;}; | [
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/utils/index.js |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},_reactNative.InteractionManager,{runAfterInteractions:function runAfterInteractions(f){var called=false;var timeout=setTimeout(function(){called=true;f();},10);_reactNative.InteractionManager.runAfterInteractions(function(){if(called)return;clearTimeout(timeout);f();});}}); | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _reactNative=require("react-native");exports.default=_extends({},
<mask>
<mask> _reactNative.InteractionManager,{
<mask> runAfterInteractions:function runAfterInteractions(f){
<mask>
<mask>
<mask> var called=false;
<mask> var timeout=setTimeout(function(){
<mask> called=true;
<mask> f();
<mask> },10);
<mask> _reactNative.InteractionManager.runAfterInteractions(function(){
<mask> if(called)return;
<mask> clearTimeout(timeout);
<mask> f();
<mask> });
<mask> }});
<mask> //# sourceMappingURL=interactionManager.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.ios.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({activeOpacity:0.6},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.js";var React=require("react");var ReactNative=require("react-native");var TouchableOpacity=ReactNative.TouchableOpacity,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableOpacity,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");
var ReactNative=require("react-native");var
TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;
var Button=function Button(props){
return(
React.createElement(TouchableNativeFeedback,_extends({
delayPressIn:0},
props,{__source:{fileName:_jsxFileName,lineNumber:7}}),
props.children));
};
module.exports=Button;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/Button.android.js";var React=require("react");var ReactNative=require("react-native");var TouchableNativeFeedback=ReactNative.TouchableNativeFeedback,View=ReactNative.View;var Button=function Button(props){return React.createElement(TouchableNativeFeedback,_extends({delayPressIn:0},props,{__source:{fileName:_jsxFileName,lineNumber:7}}),props.children);};module.exports=Button; </s> remove var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");
var ReactNative=require("react-native");var
Component=React.Component;var
View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;
var StaticContainer=require("./StaticContainer");
var SceneComponent=function SceneComponent(Props){var
shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);
return(
React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},
props.children)));
};
module.exports=SceneComponent;
</s> add var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Tabs/SceneComponent.js";function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render()
{var _this2=this;
return(
_react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),
this.props.children));
}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.Picker.propTypes);
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Picker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(){_classCallCheck(this,PickerNB);return _possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).apply(this,arguments));}_createClass(PickerNB,[{key:"render",value:function render(){var _this2=this;return _react2.default.createElement(_reactNative.Picker,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:11}}),this.props.children);}}]);return PickerNB;}(_react.Component);exports.default=PickerNB;PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props,{__source:{fileName:_jsxFileName,lineNumber:20}}));}});PickerNB.propTypes=_extends({},_reactNative.Picker.propTypes);var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/utils/interactionManager.js |
Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){var keys=_lodash2.default.keys(props);var values=_lodash2.default.values(props);_lodash2.default.forEach(keys,function(key,index){if(values[index]){styleNames.push(key);}});return styleNames;};exports.default=mapPropsToStyleNames; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask> var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){
<mask> var keys=_lodash2.default.keys(props);
<mask> var values=_lodash2.default.values(props);
<mask>
<mask> _lodash2.default.forEach(keys,function(key,index){
<mask> if(values[index]){
<mask> styleNames.push(key);
<mask> }
<mask> });
<mask>
<mask> return styleNames;
<mask> };exports.default=
<mask>
<mask> mapPropsToStyleNames;
<mask> //# sourceMappingURL=mapPropsToStyleNames.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove "use_strict";
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
module.exports=function(incomingProps,defaultProps){
var computedProps={};
incomingProps=_lodash2.default.clone(incomingProps);
delete incomingProps.children;
var incomingPropsStyle=incomingProps.style;
delete incomingProps.style;
if(incomingProps){
_lodash2.default.assign(computedProps,defaultProps,incomingProps);
}else{
computedProps=defaultProps;
}
if(incomingPropsStyle){
var computedPropsStyle={};
computedProps.style={};
if(Array.isArray(incomingPropsStyle)){
_lodash2.default.forEach(incomingPropsStyle,function(style){
if(typeof style==="number"){
_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
}else{
_lodash2.default.merge(computedPropsStyle,style);
}
});
}else if(typeof incomingPropsStyle==="number"){
computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
}else{
computedPropsStyle=incomingPropsStyle;
}
_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
}
return computedProps;
};
</s> add "use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _Input=require("./Input");
var _Label=require("./Label");
var _Icon=require("./Icon");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Item=function(_Component){_inherits(Item,_Component);
function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,
props));
_this.state={
text:"",
topAnim:new _reactNative.Animated.Value(18),
opacAnim:new _reactNative.Animated.Value(1)};return _this;
}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount()
{
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){var _this2=this;
var childrenArray=_react2.default.Children.toArray(nextProps.children);
var inputProps={};
_lodash2.default.remove(childrenArray,function(item){
if(item.type.displayName==="Styled(Input)"){
inputProps=item.props;
_this2.inputProps=item.props;
return item;
}
});
if(this.props.floatingLabel){
if(this.inputProps&&this.inputProps.value){
this.setState({isFocused:true});
this.floatUp(-16);
}
if(this.inputProps&&this.inputProps.getRef)
this.inputProps.getRef(this._inputRef);
}
}},{key:"floatBack",value:function floatBack()
{
_reactNative.Animated.timing(this.state.topAnim,{
toValue:18,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:1,
duration:150}).
start();
}},{key:"floatUp",value:function floatUp(
e){
_reactNative.Animated.timing(this.state.topAnim,{
toValue:e||-22,
duration:150}).
start();
_reactNative.Animated.timing(this.state.opacAnim,{
toValue:0.7,
duration:150}).
start();
}},{key:"renderLabel",value:function renderLabel(
label,labelProps){
var newLabel=[];
var labelStyle=_reactNative.StyleSheet.flatten(
{fontSize:15,lineHeight:30},
labelProps.style);
if(this.props.floatingLabel){
if(this.state.isFocused){
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newFLabel",
float:true,
style:labelStyle})));
this.floatUp(-16);
}else{
newLabel.push(label);
this.floatBack();
}
}else{
newLabel.push(
_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:"newLabel"})));
}
return newLabel;
}},{key:"renderChildren",value:function renderChildren()
{var _this3=this;
var newChildren=[];
var childrenArray=_react2.default.Children.toArray(this.props.children);
var label=[];
var labelProps={};
label=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Label.Label){
labelProps=item.props;
return item;
}
});
var input=[];
var inputProps={};
input=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Input.Input){
inputProps=item.props;
_this3.inputProps=item.props;
return item;
}
});
var icon=[];
var iconProps={};
icon=_lodash2.default.remove(childrenArray,function(item){
if(item.type===_Icon.Icon){
iconProps=item.props;
return item;
}
});
if(this.props.floatingLabel&&icon.length){
var isIcon=false;
for(var i=0;i<this.props.children.length;i++){
if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){
isIcon=true;
newChildren.push(
_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));
}
if(this.props.children[i].props.children){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:
this.props.last&&isIcon?
40:
this.props.last?
15:
isIcon?
26:
0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),
this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&
_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:180}})));
}
}
}else if(this.props.floatingLabel){
newChildren.push(
_react2.default.createElement(_reactNative.Animated.View,{
key:"float",
style:{
position:"absolute",
left:this.props.last?15:0,
right:0,
top:this.state.topAnim,
opacity:this.state.opacAnim,
paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));
newChildren.push(
_react2.default.createElement(_Input.Input,_extends({
ref:function ref(c){return _this3._inputRef=c;},
value:this.state.text,
key:"l2"},
inputProps,{
onFocus:function onFocus(){
_this3.setState({isFocused:true});
inputProps.onFocus&&inputProps.onFocus();
},
onBlur:function onBlur(){
inputProps.value?
_this3.setState({
isFocused:true}):
!_this3.state.text.length&&_this3.setState({isFocused:false});
inputProps.onBlur&&inputProps.onBlur();
},
onChangeText:function onChangeText(text){
_this3.setState({text:text});
inputProps.onChangeText&&inputProps.onChangeText(text);
},__source:{fileName:_jsxFileName,lineNumber:223}})));
}else if(this.props.stackedLabel&&icon.length){
newChildren.push(
_react2.default.createElement(_reactNative.View,{
key:"s",
style:{
flexDirection:"row",
flex:1,
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),
_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},
_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),
_react2.default.createElement(_Input.Input,_extends({
key:"s3"},
inputProps,{
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));
}else{
return this.props.children;
}
return newChildren;
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
roundedInputGroup:{
borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,
borderRadius:this.props.rounded?
_platform2.default.inputGroupRoundedBorderRadius:
undefined}};
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().roundedInputGroup};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"render",value:function render()
{var _this4=this;
return(
_react2.default.createElement(_reactNative.TouchableOpacity,_extends({
ref:function ref(c){return _this4._root=c;}},
this.prepareRootProps(),{
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),
this.renderChildren()));
}}]);return Item;}(_react.Component);
var childrenType=function childrenType(props,propName,component){
var error=void 0;
var prop=props[propName];
if(!props.children.length){
error=new Error(
component+" should have both Label and Input components");
}else if(
props.children[0].type.displayName!=="Styled(Label)"||
props.children[1].type.displayName!=="Styled(Input)")
{
error=new Error(
component+" should have Label and Input components only");
}
return error;
};
Item.propTypes=_extends({},
_reactNative.TouchableOpacity.propTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
inlineLabel:_propTypes2.default.bool,
floatingLabel:_propTypes2.default.bool,
stackedLabel:_propTypes2.default.bool,
fixedLabel:_propTypes2.default.bool,
success:_propTypes2.default.bool,
error:_propTypes2.default.bool});
var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(
Item);exports.
Item=StyledItem;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _Input=require("./Input");var _Label=require("./Label");var _Icon=require("./Icon");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Item=function(_Component){_inherits(Item,_Component);function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this,props));_this.state={text:"",topAnim:new _reactNative.Animated.Value(18),opacAnim:new _reactNative.Animated.Value(1)};return _this;}_createClass(Item,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _this2=this;var childrenArray=_react2.default.Children.toArray(nextProps.children);var inputProps={};_lodash2.default.remove(childrenArray,function(item){if(item.type.displayName==="Styled(Input)"){inputProps=item.props;_this2.inputProps=item.props;return item;}});if(this.props.floatingLabel){if(this.inputProps&&this.inputProps.value){this.setState({isFocused:true});this.floatUp(-16);}if(this.inputProps&&this.inputProps.getRef)this.inputProps.getRef(this._inputRef);}}},{key:"floatBack",value:function floatBack(){_reactNative.Animated.timing(this.state.topAnim,{toValue:18,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:1,duration:150}).start();}},{key:"floatUp",value:function floatUp(e){_reactNative.Animated.timing(this.state.topAnim,{toValue:e||-22,duration:150}).start();_reactNative.Animated.timing(this.state.opacAnim,{toValue:0.7,duration:150}).start();}},{key:"renderLabel",value:function renderLabel(label,labelProps){var newLabel=[];var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style);if(this.props.floatingLabel){if(this.state.isFocused){newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newFLabel",float:true,style:labelStyle})));this.floatUp(-16);}else{newLabel.push(label);this.floatBack();}}else{newLabel.push(_react2.default.createElement(_Label.Label,_extends({},labelProps,{key:"newLabel"})));}return newLabel;}},{key:"renderChildren",value:function renderChildren(){var _this3=this;var newChildren=[];var childrenArray=_react2.default.Children.toArray(this.props.children);var label=[];var labelProps={};label=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Label.Label){labelProps=item.props;return item;}});var input=[];var inputProps={};input=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Input.Input){inputProps=item.props;_this3.inputProps=item.props;return item;}});var icon=[];var iconProps={};icon=_lodash2.default.remove(childrenArray,function(item){if(item.type===_Icon.Icon){iconProps=item.props;return item;}});if(this.props.floatingLabel&&icon.length){var isIcon=false;for(var i=0;i<this.props.children.length;i++){if(this.props.children[i].props.name&&this.props.children[i].type.displayName!=="Styled(Input)"){isIcon=true;newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:150}})));}if(this.props.children[i].props.children){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last&&isIcon?40:this.props.last?15:isIcon?26:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:155}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:174}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:180}})));}}}else if(this.props.floatingLabel){newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:"float",style:{position:"absolute",left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:207}},_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:219}}),this.renderLabel(label,labelProps))));newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this3._inputRef=c;},value:this.state.text,key:"l2"},inputProps,{onFocus:function onFocus(){_this3.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){inputProps.value?_this3.setState({isFocused:true}):!_this3.state.text.length&&_this3.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this3.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);},__source:{fileName:_jsxFileName,lineNumber:223}})));}else if(this.props.stackedLabel&&icon.length){newChildren.push(_react2.default.createElement(_reactNative.View,{key:"s",style:{flexDirection:"row",flex:1,width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:248}},_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:256}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:257}},_react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:258}})),_react2.default.createElement(_Input.Input,_extends({key:"s3"},inputProps,{style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:259}})))));}else{return this.props.children;}return newChildren;}},{key:"getInitialStyle",value:function getInitialStyle(){return{roundedInputGroup:{borderWidth:this.props.rounded?_platform2.default.borderWidth*2:undefined,borderRadius:this.props.rounded?_platform2.default.inputGroupRoundedBorderRadius:undefined}};}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().roundedInputGroup};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"render",value:function render(){var _this4=this;return _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ref:function ref(c){return _this4._root=c;}},this.prepareRootProps(),{activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:292}}),this.renderChildren());}}]);return Item;}(_react.Component);var childrenType=function childrenType(props,propName,component){var error=void 0;var prop=props[propName];if(!props.children.length){error=new Error(component+" should have both Label and Input components");}else if(props.children[0].type.displayName!=="Styled(Label)"||props.children[1].type.displayName!=="Styled(Input)"){error=new Error(component+" should have Label and Input components only");}return error;};Item.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),inlineLabel:_propTypes2.default.bool,floatingLabel:_propTypes2.default.bool,stackedLabel:_propTypes2.default.bool,fixedLabel:_propTypes2.default.bool,success:_propTypes2.default.bool,error:_propTypes2.default.bool});var StyledItem=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Item",{},_mapPropsToStyleNames2.default)(Item);exports.Item=StyledItem; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");
var _reactNativeEasyGrid=require("react-native-easy-grid");
var _init=require("./init");var _init2=_interopRequireDefault(_init);
var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);
var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
var _SwipeRow=require("./basic/SwipeRow");
var _Text=require("./basic/Text");
var _View=require("./basic/View");
var _Button=require("./basic/Button");
var _DatePicker=require("./basic/DatePicker");
var _TabHeading=require("./basic/TabHeading");
var _TabContainer=require("./basic/TabContainer");
var _IconNB=require("./basic/IconNB");
var _Icon=require("./basic/Icon");
var _Header=require("./basic/Header");
var _InputGroup=require("./basic/InputGroup");
var _Input=require("./basic/Input");
var _Title=require("./basic/Title");
var _Fab=require("./basic/Fab");
var _Left=require("./basic/Left");
var _Right=require("./basic/Right");
var _Body=require("./basic/Body");
var _Badge=require("./basic/Badge");
var _Checkbox=require("./basic/Checkbox");
var _Radio=require("./basic/Radio");
var _Thumbnail=require("./basic/Thumbnail");
var _Card=require("./basic/Card");
var _CardItem=require("./basic/CardItem");
var _H=require("./basic/H1");
var _H2=require("./basic/H2");
var _H3=require("./basic/H3");
var _Spinner=require("./basic/Spinner");
var _Switch=require("./basic/Switch");
var _Container=require("./basic/Container");
var _Root=require("./basic/Root");
var _Content=require("./basic/Content");
var _Footer=require("./basic/Footer");
var _FooterTab=require("./basic/FooterTab");
var _Form=require("./basic/Form");
var _ToastContainer=require("./basic/ToastContainer");
var _Actionsheet=require("./basic/Actionsheet");
var _Picker=require("./basic/Picker");
var _List=require("./basic/List");
var _ListItem=require("./basic/ListItem");
var _Separator=require("./basic/Separator");
var _DeckSwiper=require("./basic/DeckSwiper");
var _Item=require("./basic/Item");
var _Segment=require("./basic/Segment");
var _Label=require("./basic/Label");
var _Textarea=require("./basic/Textarea");
var _Tab=require("./basic/Tab");
var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
var _Subtitle=require("./basic/Subtitle");
var _Accordion=require("./basic/Accordion");
var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
(0,_init2.default)();exports.
getTheme=_components2.default;exports.
variables=_platform2.default;exports.
StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.
connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.
Drawer=_Drawer2.default;exports.
Button=_Button.Button;exports.
DatePicker=_DatePicker.DatePicker;exports.
IconNB=_IconNB.IconNB;exports.
Icon=_Icon.Icon;exports.
Header=_Header.Header;exports.
Form=_Form.Form;exports.
InputGroup=_InputGroup.InputGroup;exports.
Input=_Input.Input;exports.
Title=_Title.Title;exports.
Fab=_Fab.Fab;exports.
Left=_Left.Left;exports.
Right=_Right.Right;exports.
Body=_Body.Body;exports.
Badge=_Badge.Badge;exports.
CheckBox=_Checkbox.CheckBox;exports.
Radio=_Radio.Radio;exports.
Thumbnail=_Thumbnail.Thumbnail;exports.
Card=_Card.Card;exports.
CardItem=_CardItem.CardItem;exports.
H1=_H.H1;exports.
H2=_H2.H2;exports.
H3=_H3.H3;exports.
Spinner=_Spinner.Spinner;exports.
Switch=_Switch.Switch;exports.
Container=_Container.Container;exports.
Content=_Content.Content;exports.
Footer=_Footer.Footer;exports.
Tab=_Tab.Tab;exports.
Tabs=_Tabs2.default;exports.
FooterTab=_FooterTab.FooterTab;exports.
Picker=_Picker.PickerNB;exports.
List=_List.List;exports.
ListItem=_ListItem.ListItem;exports.
Separator=_Separator.Separator;exports.
DeckSwiper=_DeckSwiper.DeckSwiper;exports.
Item=_Item.Item;exports.
Subtitle=_Subtitle.Subtitle;exports.
Label=_Label.Label;exports.
Textarea=_Textarea.Textarea;exports.
Col=_reactNativeEasyGrid.Col;exports.
Row=_reactNativeEasyGrid.Row;exports.
Grid=_reactNativeEasyGrid.Grid;exports.
Text=_Text.Text;exports.
TabContent=_Content.Content;exports.
View=_View.ViewNB;exports.
Toast=_ToastContainer.ToastContainer;exports.
ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.
ActionSheet=_Actionsheet.ActionSheetContainer;exports.
TabHeading=_TabHeading.TabHeading;exports.
TabContainer=_TabContainer.TabContainer;exports.
DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.
Segment=_Segment.Segment;exports.
Root=_Root.Root;exports.
SwipeRow=_SwipeRow.SwipeRow;exports.
VueNativeBase=_vueNative2.default;exports.
Accordion=_Accordion.Accordion;
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.
mapPropsToStyleNames=mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _reactNativeEasyGrid=require("react-native-easy-grid");var _init=require("./init");var _init2=_interopRequireDefault(_init);var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}(0,_init2.default)();exports.getTheme=_components2.default;exports.variables=_platform2.default;exports.StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.Drawer=_Drawer2.default;exports.Button=_Button.Button;exports.DatePicker=_DatePicker.DatePicker;exports.IconNB=_IconNB.IconNB;exports.Icon=_Icon.Icon;exports.Header=_Header.Header;exports.Form=_Form.Form;exports.InputGroup=_InputGroup.InputGroup;exports.Input=_Input.Input;exports.Title=_Title.Title;exports.Fab=_Fab.Fab;exports.Left=_Left.Left;exports.Right=_Right.Right;exports.Body=_Body.Body;exports.Badge=_Badge.Badge;exports.CheckBox=_Checkbox.CheckBox;exports.Radio=_Radio.Radio;exports.Thumbnail=_Thumbnail.Thumbnail;exports.Card=_Card.Card;exports.CardItem=_CardItem.CardItem;exports.H1=_H.H1;exports.H2=_H2.H2;exports.H3=_H3.H3;exports.Spinner=_Spinner.Spinner;exports.Switch=_Switch.Switch;exports.Container=_Container.Container;exports.Content=_Content.Content;exports.Footer=_Footer.Footer;exports.Tab=_Tab.Tab;exports.Tabs=_Tabs2.default;exports.FooterTab=_FooterTab.FooterTab;exports.Picker=_Picker.PickerNB;exports.List=_List.List;exports.ListItem=_ListItem.ListItem;exports.Separator=_Separator.Separator;exports.DeckSwiper=_DeckSwiper.DeckSwiper;exports.Item=_Item.Item;exports.Subtitle=_Subtitle.Subtitle;exports.Label=_Label.Label;exports.Textarea=_Textarea.Textarea;exports.Col=_reactNativeEasyGrid.Col;exports.Row=_reactNativeEasyGrid.Row;exports.Grid=_reactNativeEasyGrid.Grid;exports.Text=_Text.Text;exports.TabContent=_Content.Content;exports.View=_View.ViewNB;exports.Toast=_ToastContainer.ToastContainer;exports.ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.ActionSheet=_Actionsheet.ActionSheetContainer;exports.TabHeading=_TabHeading.TabHeading;exports.TabContainer=_TabContainer.TabContainer;exports.DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.Segment=_Segment.Segment;exports.Root=_Root.Root;exports.SwipeRow=_SwipeRow.SwipeRow;exports.VueNativeBase=_vueNative2.default;exports.Accordion=_Accordion.Accordion;var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.mapPropsToStyleNames=mapPropsToStyleNames; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _reactNative=require("react-native");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
Header=function(_Component){_inherits(Header,_Component);
function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,
props));
_this.state={
orientation:"portrait"};return _this;
}_createClass(Header,[{key:"layoutChange",value:function layoutChange(
val){
var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);
if(val.width>=maxComp)this.setState({orientation:"landscape"});else
{
this.setState({orientation:"portrait"});
}
}},{key:"calculateHeight",value:function calculateHeight(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var oldHeight=null;
if(this.props.style.height!=undefined){
oldHeight=this.props.style.height;
}else if(this.props.style[1].height){
oldHeight=this.props.style[1].height;
}else{
oldHeight=this.props.style[0].height;
}
var height=oldHeight+InsetValues.topInset;
return height;
}},{key:"calculatePadder",value:function calculatePadder(
mode,inSet){
var inset=null;
if(inSet!=undefined){
inset=inSet;
}else{
inset=_platform2.default.Inset;
}
var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;
var topPadder=null;
var style=_reactNative.StyleSheet.flatten(this.props.style);
if(style.padding!==undefined&&style.paddingTop!==undefined){
topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;
}else{
topPadder=InsetValues.topInset;
}
return topPadder;
}},{key:"render",value:function render()
{var _this2=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
return(
_react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_reactNative.StatusBar,{
backgroundColor:
this.props.androidStatusBarColor?
this.props.androidStatusBarColor:
variables.statusBarColor,
barStyle:
this.props.iosBarStyle?
this.props.iosBarStyle:
platformStyle==="material"?
"light-content":
variables.iosStatusbar,
translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),
_platform2.default.isIphoneX?
_react2.default.createElement(_reactNative.View,_extends({
ref:function ref(c){return _this2._root=c;}},
this.props,{
style:[
this.props.style,
{
height:this.calculateHeight(
this.state.orientation,
variables.Inset),
paddingTop:this.calculatePadder(
this.state.orientation,
variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}}))));
}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};
Header.propTypes=_extends({},
_reactNative.ViewPropTypes,{
style:_propTypes2.default.oneOfType([
_propTypes2.default.object,
_propTypes2.default.number,
_propTypes2.default.array]),
searchBar:_propTypes2.default.bool,
rounded:_propTypes2.default.bool});
var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.Header",
{},
_mapPropsToStyleNames2.default)(
Header);exports.
Header=StyledHeader;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.Header=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName="src/basic/Header.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _reactNative=require("react-native");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Header=function(_Component){_inherits(Header,_Component);function Header(props){_classCallCheck(this,Header);var _this=_possibleConstructorReturn(this,(Header.__proto__||Object.getPrototypeOf(Header)).call(this,props));_this.state={orientation:"portrait"};return _this;}_createClass(Header,[{key:"layoutChange",value:function layoutChange(val){var maxComp=Math.max(_platform2.default.deviceWidth,_platform2.default.deviceHeight);if(val.width>=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateHeight",value:function calculateHeight(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var oldHeight=null;if(this.props.style.height!=undefined){oldHeight=this.props.style.height;}else if(this.props.style[1].height){oldHeight=this.props.style[1].height;}else{oldHeight=this.props.style[0].height;}var height=oldHeight+InsetValues.topInset;return height;}},{key:"calculatePadder",value:function calculatePadder(mode,inSet){var inset=null;if(inSet!=undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var topPadder=null;var style=_reactNative.StyleSheet.flatten(this.props.style);if(style.padding!==undefined&&style.paddingTop!==undefined){topPadder=(style.paddingTop?style.paddingTop:style.padding)+InsetValues.topInset;}else{topPadder=InsetValues.topInset;}return topPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;return _react2.default.createElement(_reactNative.View,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_reactNative.StatusBar,{backgroundColor:this.props.androidStatusBarColor?this.props.androidStatusBarColor:variables.statusBarColor,barStyle:this.props.iosBarStyle?this.props.iosBarStyle:platformStyle==="material"?"light-content":variables.iosStatusbar,translucent:this.props.transparent?true:this.props.translucent,__source:{fileName:_jsxFileName,lineNumber:68}}),_platform2.default.isIphoneX?_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{style:[this.props.style,{height:this.calculateHeight(this.state.orientation,variables.Inset),paddingTop:this.calculatePadder(this.state.orientation,variables.Inset)}],__source:{fileName:_jsxFileName,lineNumber:84}})):_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:102}})));}}]);return Header;}(_react.Component);Header.contextTypes={theme:_propTypes2.default.object};Header.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),searchBar:_propTypes2.default.bool,rounded:_propTypes2.default.bool});var StyledHeader=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Header",{},_mapPropsToStyleNames2.default)(Header);exports.Header=StyledHeader; </s> remove Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");
var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=
function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;
var theme={
flex:1,
height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};
return theme;
};
</s> add Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/utils/mapPropsToStyleNames.js |
Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _reactNativeEasyGrid=require("react-native-easy-grid");var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var VueNativeBasePlugin={install:function install(Vue,options){Vue.component("nb-drawer",_Drawer2.default);Vue.component("nb-row",_reactNativeEasyGrid.Row);Vue.component("nb-col",_reactNativeEasyGrid.Col);Vue.component("nb-grid",_reactNativeEasyGrid.Grid);Vue.component("nb-swipe-row",_SwipeRow.SwipeRow);Vue.component("nb-text",_Text.Text);Vue.component("nb-view",_View.ViewNB);Vue.component("nb-button",_Button.Button);Vue.component("nb-date-picker",_DatePicker.DatePicker);Vue.component("nb-tab-heading",_TabHeading.TabHeading);Vue.component("nb-tab-container",_TabContainer.TabContainer);Vue.component("nb-icon-nb",_IconNB.IconNB);Vue.component("nb-icon",_Icon.Icon);Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider);Vue.component("nb-header",_Header.Header);Vue.component("nb-input-group",_InputGroup.InputGroup);Vue.component("nb-input",_Input.Input);Vue.component("nb-title",_Title.Title);Vue.component("nb-fab",_Fab.Fab);Vue.component("nb-left",_Left.Left);Vue.component("nb-right",_Right.Right);Vue.component("nb-body",_Body.Body);Vue.component("nb-badge",_Badge.Badge);Vue.component("nb-checkbox",_Checkbox.CheckBox);Vue.component("nb-radio",_Radio.Radio);Vue.component("nb-thumbnail",_Thumbnail.Thumbnail);Vue.component("nb-card",_Card.Card);Vue.component("nb-cardItem",_CardItem.CardItem);Vue.component("nb-h1",_H.H1);Vue.component("nb-h2",_H2.H2);Vue.component("nb-h3",_H3.H3);Vue.component("nb-spinner",_Spinner.Spinner);Vue.component("nb-switch",_Switch.Switch);Vue.component("nb-container",_Container.Container);Vue.component("nb-root",_Root.Root);Vue.component("nb-content",_Content.Content);Vue.component("nb-tab-content",_Content.Content);Vue.component("nb-footer",_Footer.Footer);Vue.component("nb-footer-tab",_FooterTab.FooterTab);Vue.component("nb-form",_Form.Form);Vue.component("nb-toast",_ToastContainer.ToastContainer);Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer);Vue.component("nb-picker",_Picker.PickerNB);Vue.component("nb-list",_List.List);Vue.component("nb-list-item",_ListItem.ListItem);Vue.component("nb-separator",_Separator.Separator);Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper);Vue.component("nb-item",_Item.Item);Vue.component("nb-segment",_Segment.Segment);Vue.component("nb-label",_Label.Label);Vue.component("nb-textarea",_Textarea.Textarea);Vue.component("nb-tab",_Tab.Tab);Vue.component("nb-tabs",_Tabs2.default);Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar);Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab);Vue.component("nb-subtitle",_Subtitle.Subtitle);Vue.component("nb-accordion",_Accordion.Accordion);}};exports.default=VueNativeBasePlugin; | <mask> Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
<mask>
<mask> var _reactNativeEasyGrid=require("react-native-easy-grid");
<mask> var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
<mask> var _SwipeRow=require("./basic/SwipeRow");
<mask> var _Text=require("./basic/Text");
<mask> var _View=require("./basic/View");
<mask> var _Button=require("./basic/Button");
<mask> var _DatePicker=require("./basic/DatePicker");
<mask> var _TabHeading=require("./basic/TabHeading");
<mask> var _TabContainer=require("./basic/TabContainer");
<mask> var _IconNB=require("./basic/IconNB");
<mask> var _Icon=require("./basic/Icon");
<mask> var _Header=require("./basic/Header");
<mask> var _InputGroup=require("./basic/InputGroup");
<mask> var _Input=require("./basic/Input");
<mask> var _Title=require("./basic/Title");
<mask> var _Fab=require("./basic/Fab");
<mask> var _Left=require("./basic/Left");
<mask> var _Right=require("./basic/Right");
<mask> var _Body=require("./basic/Body");
<mask> var _Badge=require("./basic/Badge");
<mask> var _Checkbox=require("./basic/Checkbox");
<mask> var _Radio=require("./basic/Radio");
<mask> var _Thumbnail=require("./basic/Thumbnail");
<mask> var _Card=require("./basic/Card");
<mask> var _CardItem=require("./basic/CardItem");
<mask> var _H=require("./basic/H1");
<mask> var _H2=require("./basic/H2");
<mask> var _H3=require("./basic/H3");
<mask> var _Spinner=require("./basic/Spinner");
<mask> var _Switch=require("./basic/Switch");
<mask> var _Container=require("./basic/Container");
<mask> var _Root=require("./basic/Root");
<mask> var _Content=require("./basic/Content");
<mask> var _Footer=require("./basic/Footer");
<mask> var _FooterTab=require("./basic/FooterTab");
<mask> var _Form=require("./basic/Form");
<mask> var _ToastContainer=require("./basic/ToastContainer");
<mask> var _Actionsheet=require("./basic/Actionsheet");
<mask> var _Picker=require("./basic/Picker");
<mask> var _List=require("./basic/List");
<mask> var _ListItem=require("./basic/ListItem");
<mask> var _Separator=require("./basic/Separator");
<mask> var _DeckSwiper=require("./basic/DeckSwiper");
<mask> var _Item=require("./basic/Item");
<mask> var _Segment=require("./basic/Segment");
<mask> var _Label=require("./basic/Label");
<mask> var _Textarea=require("./basic/Textarea");
<mask> var _Tab=require("./basic/Tab");
<mask> var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
<mask> var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
<mask> var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
<mask> var _Subtitle=require("./basic/Subtitle");
<mask> var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
<mask> var VueNativeBasePlugin={
<mask>
<mask>
<mask> install:function install(Vue,options){
<mask> Vue.component("nb-drawer",_Drawer2.default);
<mask> Vue.component("nb-row",_reactNativeEasyGrid.Row);
<mask> Vue.component("nb-col",_reactNativeEasyGrid.Col);
<mask> Vue.component("nb-grid",_reactNativeEasyGrid.Grid);
<mask> Vue.component("nb-swipe-row",_SwipeRow.SwipeRow);
<mask> Vue.component("nb-text",_Text.Text);
<mask> Vue.component("nb-view",_View.ViewNB);
<mask> Vue.component("nb-button",_Button.Button);
<mask> Vue.component("nb-date-picker",_DatePicker.DatePicker);
<mask> Vue.component("nb-tab-heading",_TabHeading.TabHeading);
<mask> Vue.component("nb-tab-container",_TabContainer.TabContainer);
<mask> Vue.component("nb-icon-nb",_IconNB.IconNB);
<mask> Vue.component("nb-icon",_Icon.Icon);
<mask> Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider);
<mask> Vue.component("nb-header",_Header.Header);
<mask> Vue.component("nb-input-group",_InputGroup.InputGroup);
<mask> Vue.component("nb-input",_Input.Input);
<mask> Vue.component("nb-title",_Title.Title);
<mask> Vue.component("nb-fab",_Fab.Fab);
<mask> Vue.component("nb-left",_Left.Left);
<mask> Vue.component("nb-right",_Right.Right);
<mask> Vue.component("nb-body",_Body.Body);
<mask> Vue.component("nb-badge",_Badge.Badge);
<mask> Vue.component("nb-checkbox",_Checkbox.CheckBox);
<mask> Vue.component("nb-radio",_Radio.Radio);
<mask> Vue.component("nb-thumbnail",_Thumbnail.Thumbnail);
<mask> Vue.component("nb-card",_Card.Card);
<mask> Vue.component("nb-cardItem",_CardItem.CardItem);
<mask> Vue.component("nb-h1",_H.H1);
<mask> Vue.component("nb-h2",_H2.H2);
<mask> Vue.component("nb-h3",_H3.H3);
<mask> Vue.component("nb-spinner",_Spinner.Spinner);
<mask> Vue.component("nb-switch",_Switch.Switch);
<mask> Vue.component("nb-container",_Container.Container);
<mask> Vue.component("nb-root",_Root.Root);
<mask> Vue.component("nb-content",_Content.Content);
<mask> Vue.component("nb-tab-content",_Content.Content);
<mask> Vue.component("nb-footer",_Footer.Footer);
<mask> Vue.component("nb-footer-tab",_FooterTab.FooterTab);
<mask> Vue.component("nb-form",_Form.Form);
<mask> Vue.component("nb-toast",_ToastContainer.ToastContainer);
<mask> Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer);
<mask> Vue.component("nb-picker",_Picker.PickerNB);
<mask> Vue.component("nb-list",_List.List);
<mask> Vue.component("nb-list-item",_ListItem.ListItem);
<mask> Vue.component("nb-separator",_Separator.Separator);
<mask> Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper);
<mask> Vue.component("nb-item",_Item.Item);
<mask> Vue.component("nb-segment",_Segment.Segment);
<mask> Vue.component("nb-label",_Label.Label);
<mask> Vue.component("nb-textarea",_Textarea.Textarea);
<mask> Vue.component("nb-tab",_Tab.Tab);
<mask> Vue.component("nb-tabs",_Tabs2.default);
<mask> Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar);
<mask> Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab);
<mask> Vue.component("nb-subtitle",_Subtitle.Subtitle);
<mask> Vue.component("nb-accordion",_Accordion.Accordion);
<mask> }};exports.default=
<mask>
<mask>
<mask> VueNativeBasePlugin;
<mask> //# sourceMappingURL=vue-native.js.map </s> Upgraded deps and dev-deps, compatible with RN 0.56.0 </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _lodash=require("lodash");
var _reactNativeEasyGrid=require("react-native-easy-grid");
var _init=require("./init");var _init2=_interopRequireDefault(_init);
var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);
var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);
var _SwipeRow=require("./basic/SwipeRow");
var _Text=require("./basic/Text");
var _View=require("./basic/View");
var _Button=require("./basic/Button");
var _DatePicker=require("./basic/DatePicker");
var _TabHeading=require("./basic/TabHeading");
var _TabContainer=require("./basic/TabContainer");
var _IconNB=require("./basic/IconNB");
var _Icon=require("./basic/Icon");
var _Header=require("./basic/Header");
var _InputGroup=require("./basic/InputGroup");
var _Input=require("./basic/Input");
var _Title=require("./basic/Title");
var _Fab=require("./basic/Fab");
var _Left=require("./basic/Left");
var _Right=require("./basic/Right");
var _Body=require("./basic/Body");
var _Badge=require("./basic/Badge");
var _Checkbox=require("./basic/Checkbox");
var _Radio=require("./basic/Radio");
var _Thumbnail=require("./basic/Thumbnail");
var _Card=require("./basic/Card");
var _CardItem=require("./basic/CardItem");
var _H=require("./basic/H1");
var _H2=require("./basic/H2");
var _H3=require("./basic/H3");
var _Spinner=require("./basic/Spinner");
var _Switch=require("./basic/Switch");
var _Container=require("./basic/Container");
var _Root=require("./basic/Root");
var _Content=require("./basic/Content");
var _Footer=require("./basic/Footer");
var _FooterTab=require("./basic/FooterTab");
var _Form=require("./basic/Form");
var _ToastContainer=require("./basic/ToastContainer");
var _Actionsheet=require("./basic/Actionsheet");
var _Picker=require("./basic/Picker");
var _List=require("./basic/List");
var _ListItem=require("./basic/ListItem");
var _Separator=require("./basic/Separator");
var _DeckSwiper=require("./basic/DeckSwiper");
var _Item=require("./basic/Item");
var _Segment=require("./basic/Segment");
var _Label=require("./basic/Label");
var _Textarea=require("./basic/Textarea");
var _Tab=require("./basic/Tab");
var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);
var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");
var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");
var _Subtitle=require("./basic/Subtitle");
var _Accordion=require("./basic/Accordion");
var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
(0,_init2.default)();exports.
getTheme=_components2.default;exports.
variables=_platform2.default;exports.
StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.
connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.
Drawer=_Drawer2.default;exports.
Button=_Button.Button;exports.
DatePicker=_DatePicker.DatePicker;exports.
IconNB=_IconNB.IconNB;exports.
Icon=_Icon.Icon;exports.
Header=_Header.Header;exports.
Form=_Form.Form;exports.
InputGroup=_InputGroup.InputGroup;exports.
Input=_Input.Input;exports.
Title=_Title.Title;exports.
Fab=_Fab.Fab;exports.
Left=_Left.Left;exports.
Right=_Right.Right;exports.
Body=_Body.Body;exports.
Badge=_Badge.Badge;exports.
CheckBox=_Checkbox.CheckBox;exports.
Radio=_Radio.Radio;exports.
Thumbnail=_Thumbnail.Thumbnail;exports.
Card=_Card.Card;exports.
CardItem=_CardItem.CardItem;exports.
H1=_H.H1;exports.
H2=_H2.H2;exports.
H3=_H3.H3;exports.
Spinner=_Spinner.Spinner;exports.
Switch=_Switch.Switch;exports.
Container=_Container.Container;exports.
Content=_Content.Content;exports.
Footer=_Footer.Footer;exports.
Tab=_Tab.Tab;exports.
Tabs=_Tabs2.default;exports.
FooterTab=_FooterTab.FooterTab;exports.
Picker=_Picker.PickerNB;exports.
List=_List.List;exports.
ListItem=_ListItem.ListItem;exports.
Separator=_Separator.Separator;exports.
DeckSwiper=_DeckSwiper.DeckSwiper;exports.
Item=_Item.Item;exports.
Subtitle=_Subtitle.Subtitle;exports.
Label=_Label.Label;exports.
Textarea=_Textarea.Textarea;exports.
Col=_reactNativeEasyGrid.Col;exports.
Row=_reactNativeEasyGrid.Row;exports.
Grid=_reactNativeEasyGrid.Grid;exports.
Text=_Text.Text;exports.
TabContent=_Content.Content;exports.
View=_View.ViewNB;exports.
Toast=_ToastContainer.ToastContainer;exports.
ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.
ActionSheet=_Actionsheet.ActionSheetContainer;exports.
TabHeading=_TabHeading.TabHeading;exports.
TabContainer=_TabContainer.TabContainer;exports.
DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.
Segment=_Segment.Segment;exports.
Root=_Root.Root;exports.
SwipeRow=_SwipeRow.SwipeRow;exports.
VueNativeBase=_vueNative2.default;exports.
Accordion=_Accordion.Accordion;
var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.
mapPropsToStyleNames=mapPropsToStyleNames;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _reactNativeEasyGrid=require("react-native-easy-grid");var _init=require("./init");var _init2=_interopRequireDefault(_init);var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}(0,_init2.default)();exports.getTheme=_components2.default;exports.variables=_platform2.default;exports.StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.Drawer=_Drawer2.default;exports.Button=_Button.Button;exports.DatePicker=_DatePicker.DatePicker;exports.IconNB=_IconNB.IconNB;exports.Icon=_Icon.Icon;exports.Header=_Header.Header;exports.Form=_Form.Form;exports.InputGroup=_InputGroup.InputGroup;exports.Input=_Input.Input;exports.Title=_Title.Title;exports.Fab=_Fab.Fab;exports.Left=_Left.Left;exports.Right=_Right.Right;exports.Body=_Body.Body;exports.Badge=_Badge.Badge;exports.CheckBox=_Checkbox.CheckBox;exports.Radio=_Radio.Radio;exports.Thumbnail=_Thumbnail.Thumbnail;exports.Card=_Card.Card;exports.CardItem=_CardItem.CardItem;exports.H1=_H.H1;exports.H2=_H2.H2;exports.H3=_H3.H3;exports.Spinner=_Spinner.Spinner;exports.Switch=_Switch.Switch;exports.Container=_Container.Container;exports.Content=_Content.Content;exports.Footer=_Footer.Footer;exports.Tab=_Tab.Tab;exports.Tabs=_Tabs2.default;exports.FooterTab=_FooterTab.FooterTab;exports.Picker=_Picker.PickerNB;exports.List=_List.List;exports.ListItem=_ListItem.ListItem;exports.Separator=_Separator.Separator;exports.DeckSwiper=_DeckSwiper.DeckSwiper;exports.Item=_Item.Item;exports.Subtitle=_Subtitle.Subtitle;exports.Label=_Label.Label;exports.Textarea=_Textarea.Textarea;exports.Col=_reactNativeEasyGrid.Col;exports.Row=_reactNativeEasyGrid.Row;exports.Grid=_reactNativeEasyGrid.Grid;exports.Text=_Text.Text;exports.TabContent=_Content.Content;exports.View=_View.ViewNB;exports.Toast=_ToastContainer.ToastContainer;exports.ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.ActionSheet=_Actionsheet.ActionSheetContainer;exports.TabHeading=_TabHeading.TabHeading;exports.TabContainer=_TabContainer.TabContainer;exports.DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.Segment=_Segment.Segment;exports.Root=_Root.Root;exports.SwipeRow=_SwipeRow.SwipeRow;exports.VueNativeBase=_vueNative2.default;exports.Accordion=_Accordion.Accordion;var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.mapPropsToStyleNames=mapPropsToStyleNames; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var ReactNative=require("react-native");var
StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;
var Button=require("./Button");
var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
tabStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
tabContainerStyle:_utils.ViewPropTypes.style},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
activeTextColor:_platform2.default.topTabBarActiveTextColor,
inactiveTextColor:_platform2.default.topTabBarTextColor,
backgroundColor:null,
tabFontSize:_platform2.default.tabFontSize};
},
renderTabOption:function renderTabOption(name,page){},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:name,
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},
_react2.default.createElement(_index.TabHeading,{
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},
name))));
}else{
return(
_react2.default.createElement(Button,{
style:{flex:1},
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},
_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},
headerContent)));
}
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var platformStyle=variables.platformStyle;
var containerWidth=this.props.containerWidth;
var numberOfTabs=this.props.tabs.length;
var tabUnderlineStyle={
position:"absolute",
width:containerWidth/numberOfTabs,
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var left=this.props.scrollValue.interpolate({
inputRange:[0,1],
outputRange:[0,containerWidth/numberOfTabs]});
return(
_react2.default.createElement(_index.TabContainer,{
style:[
{backgroundColor:variables.tabDefaultBg},
this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
return renderTab(
name,
page,
isTabActive,
_this.props.goToPage,
_this.props.tabStyle[page],
_this.props.activeTabStyle[page],
_this.props.textStyle[page],
_this.props.activeTextStyle[page],
_this.props.tabHeaderStyle[page]);
}),
_react2.default.createElement(Animated.View,{
style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}})));
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.DefaultTabBar",
{},
_mapPropsToStyleNames2.default)(
DefaultTabBar);exports.
DefaultTabBar=StyledTab;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);
var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);
var _index=require("./../../index");
var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
var Button=require("./Button");
var ReactNative=require("react-native");var
View=
ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;
var WINDOW_WIDTH=Dimensions.get("window").width;
var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",
propTypes:{
goToPage:_propTypes2.default.func,
activeTab:_propTypes2.default.number,
tabs:_propTypes2.default.array,
backgroundColor:_propTypes2.default.string,
activeTextColor:_propTypes2.default.string,
inactiveTextColor:_propTypes2.default.string,
scrollOffset:_propTypes2.default.number,
style:_utils.ViewPropTypes.style,
tabStyle:_utils.ViewPropTypes.style,
tabsContainerStyle:_utils.ViewPropTypes.style,
renderTab:_propTypes2.default.func,
underlineStyle:_utils.ViewPropTypes.style,
onScroll:_propTypes2.default.func},
contextTypes:{
theme:_propTypes2.default.object},
getDefaultProps:function getDefaultProps(){
return{
scrollOffset:52,
activeTextColor:"navy",
inactiveTextColor:"black",
backgroundColor:_platform2.default.tabDefaultBg,
style:{},
tabStyle:{},
tabsContainerStyle:{},
underlineStyle:{},
tabFontSize:_platform2.default.tabFontSize};
},
getInitialState:function getInitialState(){
this._tabsMeasurements=[];
return{
_leftTabUnderline:new Animated.Value(0),
_widthTabUnderline:new Animated.Value(0),
_containerWidth:null};
},
componentDidMount:function componentDidMount(){
this.props.scrollValue.addListener(this.updateView);
},
updateView:function updateView(offset){
var position=Math.floor(offset.value);
var pageOffset=offset.value%1;
var tabCount=this.props.tabs.length;
var lastTabPosition=tabCount-1;
if(tabCount===0||offset.value<0||offset.value>lastTabPosition){
return;
}
if(
this.necessarilyMeasurementsCompleted(
position,
position===lastTabPosition))
{
this.updateTabPanel(position,pageOffset);
this.updateTabUnderline(position,pageOffset,tabCount);
}
},
necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){
return(
this._tabsMeasurements[position]&&(
isLastTab||this._tabsMeasurements[position+1])&&
this._tabContainerMeasurements&&
this._containerMeasurements);
},
updateTabPanel:function updateTabPanel(position,pageOffset){
var containerWidth=this._containerMeasurements.width;
var tabWidth=this._tabsMeasurements[position].width;
var nextTabMeasurements=this._tabsMeasurements[position+1];
var nextTabWidth=
nextTabMeasurements&&nextTabMeasurements.width||0;
var tabOffset=this._tabsMeasurements[position].left;
var absolutePageOffset=pageOffset*tabWidth;
var newScrollX=tabOffset+absolutePageOffset;
newScrollX-=
(containerWidth-
(1-pageOffset)*tabWidth-
pageOffset*nextTabWidth)/
2;
newScrollX=newScrollX>=0?newScrollX:0;
if(Platform.OS==="android"){
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}else{
var rightBoundScroll=
this._tabContainerMeasurements.width-
this._containerMeasurements.width;
newScrollX=
newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;
this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});
}
},
updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){
var lineLeft=this._tabsMeasurements[position].left;
var lineRight=this._tabsMeasurements[position].right;
if(position<tabCount-1){
var nextTabLeft=this._tabsMeasurements[position+1].left;
var nextTabRight=this._tabsMeasurements[position+1].right;
var newLineLeft=
pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;
var newLineRight=
pageOffset*nextTabRight+(1-pageOffset)*lineRight;
this.state._leftTabUnderline.setValue(newLineLeft);
this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);
}else{
this.state._leftTabUnderline.setValue(lineLeft);
this.state._widthTabUnderline.setValue(lineRight-lineLeft);
}
},
renderTab:function renderTab(
name,
page,
isTabActive,
onPressHandler,
onLayoutHandler,
tabStyle,
activeTabStyle,
textStyle,
activeTextStyle,
tabHeaderStyle)
{
var headerContent=
typeof name!=="string"?name.props.children:undefined;var _props=
this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;
var textColor=isTabActive?activeTextColor:inactiveTextColor;
var fontWeight=isTabActive?"bold":"normal";
var fontSize=tabFontSize;
if(typeof name==="string"){
return(
_react2.default.createElement(Button,{
key:name+"_"+page,
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},
_react2.default.createElement(_index.TabHeading,{
scrollable:true,
style:isTabActive?activeTabStyle:tabStyle,
active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},
_react2.default.createElement(_index.Text,{
style:[
isTabActive?activeTextStyle:textStyle,
{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},
name))));
}else{
return(
_react2.default.createElement(Button,{
key:_lodash2.default.random(1.2,5.2),
onPress:function onPress(){return onPressHandler(page);},
onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},
_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},
headerContent)));
}
},
measureTab:function measureTab(page,event){var _event$nativeEvent$la=
event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;
this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};
this.updateView({value:this.props.scrollValue._value});
},
render:function render(){var _this=this;
var variables=this.context.theme?
this.context.theme["@@shoutem.theme/themeStyle"].variables:
_platform2.default;
var tabUnderlineStyle={
position:"absolute",
height:4,
backgroundColor:variables.topTabBarActiveBorderColor,
bottom:0};
var dynamicTabUnderline={
left:this.state._leftTabUnderline,
width:this.state._widthTabUnderline};
return(
_react2.default.createElement(View,{
style:[
styles.container,
{backgroundColor:this.props.backgroundColor},
this.props.style],
onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},
_react2.default.createElement(ScrollView,{
automaticallyAdjustContentInsets:false,
ref:function ref(scrollView){
_this._scrollView=scrollView;
},
horizontal:true,
showsHorizontalScrollIndicator:false,
showsVerticalScrollIndicator:false,
directionalLockEnabled:true,
onScroll:this.props.onScroll,
bounces:false,
scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},
_react2.default.createElement(View,{
style:[
styles.tabs,
{width:this.state._containerWidth},
this.props.tabsContainerStyle],
ref:"tabContainer",
onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},
this.props.tabs.map(function(name,page){
var isTabActive=_this.props.activeTab===page;
var renderTab=_this.props.renderTab||_this.renderTab;
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]);
}),
_react2.default.createElement(Animated.View,{
style:[
tabUnderlineStyle,
dynamicTabUnderline,
this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}})))));
},
componentWillReceiveProps:function componentWillReceiveProps(nextProps){
if(
!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&
this.state._containerWidth)
{
this.setState({_containerWidth:null});
}
},
onTabContainerLayout:function onTabContainerLayout(e){
this._tabContainerMeasurements=e.nativeEvent.layout;
var width=this._tabContainerMeasurements.width;
if(width<WINDOW_WIDTH){
width=WINDOW_WIDTH;
}
this.setState({_containerWidth:width});
this.updateView({value:this.props.scrollValue._value});
},
onContainerLayout:function onContainerLayout(e){
this._containerMeasurements=e.nativeEvent.layout;
this.updateView({value:this.props.scrollValue._value});
}});
var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.ScrollableTab",
{},
_mapPropsToStyleNames2.default)(
ScrollableTabBar);exports.
ScrollableTab=StyledTab;
var styles=StyleSheet.create({
tab:{
height:49,
alignItems:"center",
justifyContent:"center",
paddingLeft:20,
paddingRight:20},
container:{
height:50,
borderWidth:1,
borderTopWidth:0,
borderLeftWidth:0,
borderRightWidth:0,
borderColor:"#ccc"},
tabs:{
flexDirection:"row",
justifyContent:"space-around"}});
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var Button=require("./Button");var ReactNative=require("react-native");var View=ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions;var WINDOW_WIDTH=Dimensions.get("window").width;var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,scrollOffset:_propTypes2.default.number,style:_utils.ViewPropTypes.style,tabStyle:_utils.ViewPropTypes.style,tabsContainerStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,onScroll:_propTypes2.default.func},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{scrollOffset:52,activeTextColor:"navy",inactiveTextColor:"black",backgroundColor:_platform2.default.tabDefaultBg,style:{},tabStyle:{},tabsContainerStyle:{},underlineStyle:{},tabFontSize:_platform2.default.tabFontSize};},getInitialState:function getInitialState(){this._tabsMeasurements=[];return{_leftTabUnderline:new Animated.Value(0),_widthTabUnderline:new Animated.Value(0),_containerWidth:null};},componentDidMount:function componentDidMount(){this.props.scrollValue.addListener(this.updateView);},updateView:function updateView(offset){var position=Math.floor(offset.value);var pageOffset=offset.value%1;var tabCount=this.props.tabs.length;var lastTabPosition=tabCount-1;if(tabCount===0||offset.value<0||offset.value>lastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position<tabCount-1){var nextTabLeft=this._tabsMeasurements[position+1].left;var nextTabRight=this._tabsMeasurements[position+1].right;var newLineLeft=pageOffset*nextTabLeft+(1-pageOffset)*lineLeft;var newLineRight=pageOffset*nextTabRight+(1-pageOffset)*lineRight;this.state._leftTabUnderline.setValue(newLineLeft);this.state._widthTabUnderline.setValue(newLineRight-newLineLeft);}else{this.state._leftTabUnderline.setValue(lineLeft);this.state._widthTabUnderline.setValue(lineRight-lineLeft);}},renderTab:function renderTab(name,page,isTabActive,onPressHandler,onLayoutHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{key:name+"_"+page,onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:172}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:177}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:182}},name)));}else{return _react2.default.createElement(Button,{key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},onLayout:onLayoutHandler,__source:{fileName:_jsxFileName,lineNumber:195}},_react2.default.createElement(_index.TabHeading,{scrollable:true,style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:200}},headerContent));}},measureTab:function measureTab(page,event){var _event$nativeEvent$la=event.nativeEvent.layout,x=_event$nativeEvent$la.x,width=_event$nativeEvent$la.width,height=_event$nativeEvent$la.height;this._tabsMeasurements[page]={left:x,right:x+width,width:width,height:height};this.updateView({value:this.props.scrollValue._value});},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var tabUnderlineStyle={position:"absolute",height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var dynamicTabUnderline={left:this.state._leftTabUnderline,width:this.state._widthTabUnderline};return _react2.default.createElement(View,{style:[styles.container,{backgroundColor:this.props.backgroundColor},this.props.style],onLayout:this.onContainerLayout,__source:{fileName:_jsxFileName,lineNumber:231}},_react2.default.createElement(ScrollView,{automaticallyAdjustContentInsets:false,ref:function ref(scrollView){_this._scrollView=scrollView;},horizontal:true,showsHorizontalScrollIndicator:false,showsVerticalScrollIndicator:false,directionalLockEnabled:true,onScroll:this.props.onScroll,bounces:false,scrollsToTop:false,__source:{fileName:_jsxFileName,lineNumber:239}},_react2.default.createElement(View,{style:[styles.tabs,{width:this.state._containerWidth},this.props.tabsContainerStyle],ref:"tabContainer",onLayout:this.onTabContainerLayout,__source:{fileName:_jsxFileName,lineNumber:252}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;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]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,dynamicTabUnderline,this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:277}}))));},componentWillReceiveProps:function componentWillReceiveProps(nextProps){if(!_lodash2.default.isEqual(this.props.tabs,nextProps.tabs)&&this.state._containerWidth){this.setState({_containerWidth:null});}},onTabContainerLayout:function onTabContainerLayout(e){this._tabContainerMeasurements=e.nativeEvent.layout;var width=this._tabContainerMeasurements.width;if(width<WINDOW_WIDTH){width=WINDOW_WIDTH;}this.setState({_containerWidth:width});this.updateView({value:this.props.scrollValue._value});},onContainerLayout:function onContainerLayout(e){this._containerMeasurements=e.nativeEvent.layout;this.updateView({value:this.props.scrollValue._value});}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ScrollableTab",{},_mapPropsToStyleNames2.default)(ScrollableTabBar);exports.ScrollableTab=StyledTab;var styles=StyleSheet.create({tab:{height:49,alignItems:"center",justifyContent:"center",paddingLeft:20,paddingRight:20},container:{height:50,borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderColor:"#ccc"},tabs:{flexDirection:"row",justifyContent:"space-around"}}); </s> remove "use_strict";
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
module.exports=function(incomingProps,defaultProps){
var computedProps={};
incomingProps=_lodash2.default.clone(incomingProps);
delete incomingProps.children;
var incomingPropsStyle=incomingProps.style;
delete incomingProps.style;
if(incomingProps){
_lodash2.default.assign(computedProps,defaultProps,incomingProps);
}else{
computedProps=defaultProps;
}
if(incomingPropsStyle){
var computedPropsStyle={};
computedProps.style={};
if(Array.isArray(incomingPropsStyle)){
_lodash2.default.forEach(incomingPropsStyle,function(style){
if(typeof style==="number"){
_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style));
}else{
_lodash2.default.merge(computedPropsStyle,style);
}
});
}else if(typeof incomingPropsStyle==="number"){
computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle);
}else{
computedPropsStyle=incomingPropsStyle;
}
_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);
}
return computedProps;
};
</s> add "use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; </s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);
var _reactNative=require("react-native");
var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);
var _Text=require("./Text");
var _List=require("./List");
var _IconNB=require("./IconNB");
var _Radio=require("./Radio");
var _Container=require("./Container");
var _ListItem=require("./ListItem");
var _Button=require("./Button");
var _Header=require("./Header");
var _Title=require("./Title");
var _Left=require("./Left");
var _Right=require("./Right");
var _Body=require("./Body");
var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");
var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);
var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
PickerNB=function(_Component){_inherits(PickerNB,_Component);
function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,
props));
_this.state={
modalVisible:false,
currentLabel:_this.getLabel(props),
dataSource:_this.getChildren(props.children)};return _this;
}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(
nextProps){
var currentLabel=this.state.currentLabel;
var nextLabel=this.getLabel(nextProps);
var currentDS=this.state.dataSource;
var nextDS=this.getChildren(nextProps.children);
if(currentLabel!==nextLabel){
this.setState({
currentLabel:nextLabel});
}
if(currentDS!==nextDS){
this.setState({
dataSource:nextDS});
}
}},{key:"getInitialStyle",value:function getInitialStyle()
{
return{
picker:{},
pickerItem:{}};
}},{key:"_setModalVisible",value:function _setModalVisible(
visible){
this.setState({modalVisible:visible});
}},{key:"prepareRootProps",value:function prepareRootProps()
{
var defaultProps={
style:this.getInitialStyle().picker,
itemStyle:this.getInitialStyle().pickerItem};
return(0,_computeProps2.default)(this.props,defaultProps);
}},{key:"getLabel",value:function getLabel(
props){
var children=this.getChildren(props.children);
var item=_lodash2.default.find(
children,
function(child){return child.props.value===props.selectedValue;});
return _lodash2.default.get(item,"props.label");
}},{key:"getSelectedItem",value:function getSelectedItem()
{var _this2=this;
return _lodash2.default.find(
this.props.children,
function(child){return child.props.value===_this2.props.selectedValue;});
}},{key:"getChildren",value:function getChildren(
children){
if(children&&!Array.isArray(children)){
return[].concat(children);
}
return children;
}},{key:"renderIcon",value:function renderIcon()
{
return _react2.default.cloneElement(this.props.iosIcon,{
style:[
{
fontSize:22,
lineHeight:26},_extends({},
this.props.iosIcon.props.style)]});
}},{key:"renderButton",value:function renderButton()
{var _this3=this;
var onPress=function onPress(){
if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;
_this3._setModalVisible(true);
};
var text=this.state.currentLabel?
this.state.currentLabel:
this.props.placeholder;
if(this.props.renderButton){
return this.props.renderButton({
onPress:onPress,
text:text,
picker:this,
selectedItem:this.getSelectedItem()});
}
return(
_react2.default.createElement(_Button.Button,{
style:this.props.style,
dark:true,
picker:true,
transparent:true,
onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},
this.state.currentLabel?
_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},
this.state.currentLabel):
_react2.default.createElement(_Text.Text,{
style:[this.props.textStyle,this.props.placeholderStyle],
note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},
this.props.placeholder),
this.props.iosIcon===undefined?null:this.renderIcon()));
}},{key:"renderHeader",value:function renderHeader()
{var _this4=this;
return this.props.renderHeader?
this.props.renderHeader(function(){return _this4._setModalVisible(false);}):
_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},
_react2.default.createElement(_Button.Button,{
style:_extends({
shadowOffset:null,
shadowColor:null,
shadowRadius:null,
shadowOpacity:null,
marginLeft:3},
this.props.headerBackButtonStyle),
transparent:true,
onPress:function onPress(){
_this4._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:154}},
_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},
this.props.headerBackButtonText||"Back"))),
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},
_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},
this.props.iosHeader||"Select One")),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));
}},{key:"render",value:function render()
{var _this5=this;
return(
_react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},
this.renderButton(),
_react2.default.createElement(_reactNative.Modal,{
supportedOrientations:this.props.supportedOrientations||null,
animationType:"slide",
transparent:false,
visible:this.state.modalVisible,
onRequestClose:function onRequestClose(){
_this5._setModalVisible(false);
},__source:{fileName:_jsxFileName,lineNumber:187}},
_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},
this.renderHeader(),
_react2.default.createElement(_reactNative.FlatList,{
data:this.state.dataSource,
keyExtractor:function keyExtractor(item,index){return String(index);},
renderItem:function renderItem(_ref){var item=_ref.item;return(
_react2.default.createElement(_ListItem.ListItem,{
selected:item.props.value===_this5.props.selectedValue,
button:true,
style:_this5.props.itemStyle,
onPress:function onPress(){
_this5._setModalVisible(false);
_this5.props.onValueChange(item.props.value);
_this5.setState({current:item.props.label});
},__source:{fileName:_jsxFileName,lineNumber:202}},
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},
item.props.label)),
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},
item.props.value===_this5.props.selectedValue?
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}}))));},__source:{fileName:_jsxFileName,lineNumber:198}})))));
}}]);return PickerNB;}(_react.Component);
PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
render:function render(){
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));
}});
PickerNB.propTypes=_extends({},
_reactNative.ViewPropTypes,{
renderButton:_propTypes2.default.func});
var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)(
"NativeBase.PickerNB",
{},
_mapPropsToStyleNames2.default)(
PickerNB);exports.
PickerNB=StyledPickerNB;
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _jsxFileName="src/basic/Picker.ios.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _reactNative=require("react-native");var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _Text=require("./Text");var _List=require("./List");var _IconNB=require("./IconNB");var _Radio=require("./Radio");var _Container=require("./Container");var _ListItem=require("./ListItem");var _Button=require("./Button");var _Header=require("./Header");var _Title=require("./Title");var _Left=require("./Left");var _Right=require("./Right");var _Body=require("./Body");var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _computeProps=require("../utils/computeProps");var _computeProps2=_interopRequireDefault(_computeProps);var _mapPropsToStyleNames=require("../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PickerNB=function(_Component){_inherits(PickerNB,_Component);function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this,props));_this.state={modalVisible:false,currentLabel:_this.getLabel(props),dataSource:_this.getChildren(props.children)};return _this;}_createClass(PickerNB,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var currentLabel=this.state.currentLabel;var nextLabel=this.getLabel(nextProps);var currentDS=this.state.dataSource;var nextDS=this.getChildren(nextProps.children);if(currentLabel!==nextLabel){this.setState({currentLabel:nextLabel});}if(currentDS!==nextDS){this.setState({dataSource:nextDS});}}},{key:"getInitialStyle",value:function getInitialStyle(){return{picker:{},pickerItem:{}};}},{key:"_setModalVisible",value:function _setModalVisible(visible){this.setState({modalVisible:visible});}},{key:"prepareRootProps",value:function prepareRootProps(){var defaultProps={style:this.getInitialStyle().picker,itemStyle:this.getInitialStyle().pickerItem};return(0,_computeProps2.default)(this.props,defaultProps);}},{key:"getLabel",value:function getLabel(props){var children=this.getChildren(props.children);var item=_lodash2.default.find(children,function(child){return child.props.value===props.selectedValue;});return _lodash2.default.get(item,"props.label");}},{key:"getSelectedItem",value:function getSelectedItem(){var _this2=this;return _lodash2.default.find(this.props.children,function(child){return child.props.value===_this2.props.selectedValue;});}},{key:"getChildren",value:function getChildren(children){if(children&&!Array.isArray(children)){return[].concat(children);}return children;}},{key:"renderIcon",value:function renderIcon(){return _react2.default.cloneElement(this.props.iosIcon,{style:[{fontSize:22,lineHeight:26},_extends({},this.props.iosIcon.props.style)]});}},{key:"renderButton",value:function renderButton(){var _this3=this;var onPress=function onPress(){if(_this3.props.enabled!==undefined&&!_this3.props.enabled)return;_this3._setModalVisible(true);};var text=this.state.currentLabel?this.state.currentLabel:this.props.placeholder;if(this.props.renderButton){return this.props.renderButton({onPress:onPress,text:text,picker:this,selectedItem:this.getSelectedItem()});}return _react2.default.createElement(_Button.Button,{style:this.props.style,dark:true,picker:true,transparent:true,onPress:onPress,__source:{fileName:_jsxFileName,lineNumber:124}},this.state.currentLabel?_react2.default.createElement(_Text.Text,{style:this.props.textStyle,note:this.props.note,__source:{fileName:_jsxFileName,lineNumber:132}},this.state.currentLabel):_react2.default.createElement(_Text.Text,{style:[this.props.textStyle,this.props.placeholderStyle],note:this.props.note===false?false:true,__source:{fileName:_jsxFileName,lineNumber:136}},this.props.placeholder),this.props.iosIcon===undefined?null:this.renderIcon());}},{key:"renderHeader",value:function renderHeader(){var _this4=this;return this.props.renderHeader?this.props.renderHeader(function(){return _this4._setModalVisible(false);}):_react2.default.createElement(_Header.Header,{style:this.props.headerStyle,__source:{fileName:_jsxFileName,lineNumber:152}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:153}},_react2.default.createElement(_Button.Button,{style:_extends({shadowOffset:null,shadowColor:null,shadowRadius:null,shadowOpacity:null,marginLeft:3},this.props.headerBackButtonStyle),transparent:true,onPress:function onPress(){_this4._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:154}},_react2.default.createElement(_Text.Text,{style:this.props.headerBackButtonTextStyle,__source:{fileName:_jsxFileName,lineNumber:168}},this.props.headerBackButtonText||"Back"))),_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:173}},_react2.default.createElement(_Title.Title,{style:this.props.headerTitleStyle,__source:{fileName:_jsxFileName,lineNumber:174}},this.props.iosHeader||"Select One")),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:178}}));}},{key:"render",value:function render(){var _this5=this;return _react2.default.createElement(_reactNative.View,{ref:function ref(c){return _this5._root=c;},__source:{fileName:_jsxFileName,lineNumber:185}},this.renderButton(),_react2.default.createElement(_reactNative.Modal,{supportedOrientations:this.props.supportedOrientations||null,animationType:"slide",transparent:false,visible:this.state.modalVisible,onRequestClose:function onRequestClose(){_this5._setModalVisible(false);},__source:{fileName:_jsxFileName,lineNumber:187}},_react2.default.createElement(_Container.Container,{style:this.props.modalStyle,__source:{fileName:_jsxFileName,lineNumber:196}},this.renderHeader(),_react2.default.createElement(_reactNative.FlatList,{data:this.state.dataSource,keyExtractor:function keyExtractor(item,index){return String(index);},renderItem:function renderItem(_ref){var item=_ref.item;return _react2.default.createElement(_ListItem.ListItem,{selected:item.props.value===_this5.props.selectedValue,button:true,style:_this5.props.itemStyle,onPress:function onPress(){_this5._setModalVisible(false);_this5.props.onValueChange(item.props.value);_this5.setState({current:item.props.label});},__source:{fileName:_jsxFileName,lineNumber:202}},_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:212}},_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:213}},item.props.label)),_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:217}},item.props.value===_this5.props.selectedValue?_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:219}}):_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:221}})));},__source:{fileName:_jsxFileName,lineNumber:198}}))));}}]);return PickerNB;}(_react.Component);PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",render:function render(){return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:236}}));}});PickerNB.propTypes=_extends({},_reactNative.ViewPropTypes,{renderButton:_propTypes2.default.func});var StyledPickerNB=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.PickerNB",{},_mapPropsToStyleNames2.default)(PickerNB);exports.PickerNB=StyledPickerNB; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | dist/src/vue-native.js |