docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
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 _j...
<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;...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/ToastContainer.js
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:78}},
<mask> }},{key:"render",value:function render() <mask> {var _this4=this; <mask> if(this.state.modalVisible){ <mask> return( <mask> _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle()}, <mask> _react2.default.createElement(_Toast.Toast,{ <mask> style:this.state.style, <mask> dang...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/ToastContainer.js
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:79}},
<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}, <mask> <mask> _react2.default.createElement(_Text.Text,{style:this.s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/ToastContainer.js
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:85}},this.state.text),
<mask> danger:this.state.type=="danger"?true:false, <mask> success:this.state.type=="success"?true:false, <mask> warning:this.state.type=="warning"?true:false}, <mask> <mask> _react2.default.createElement(_Text.Text,{style:this.state.textStyle},this.state.text), <mask> this.state.buttonText&& <mask> _react2.def...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/ToastContainer.js
onPress:function onPress(){return _this4.closeToast();},__source:{fileName:_jsxFileName,lineNumber:87}},
<mask> _react2.default.createElement(_Text.Text,{style:this.state.textStyle},this.state.text), <mask> this.state.buttonText&& <mask> _react2.default.createElement(_Button.Button,{ <mask> style:this.state.buttonStyle, <mask> onPress:function onPress(){return _this4.closeToast();}}, <mask> <mask> _react2.default....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/ToastContainer.js
_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:91}},
<mask> _react2.default.createElement(_Button.Button,{ <mask> style:this.state.buttonStyle, <mask> onPress:function onPress(){return _this4.closeToast();}}, <mask> <mask> _react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle}, <mask> this.state.buttonText))))); <mask> <mask> <mask> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
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 _jsxFileNa...
<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 _c...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/View.js
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:13}})));
<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; ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/basic/View.js
Object.defineProperty(exports,"__esModule",{value:true});exports.SButton=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileN...
<mask> Object.defineProperty(exports,"__esModule",{value:true});exports.SButton=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SButton.js
_react2.default.createElement(_Button.Button,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:16}}), this.props.iconLeft?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:17}},this.props.iconLeft):_react2.default.crea...
<mask> SButton=function(_Component){_inherits(SButton,_Component);function SButton(){_classCallCheck(this,SButton);return _possibleConstructorReturn(this,(SButton.__proto__||Object.getPrototypeOf(SButton)).apply(this,arguments));}_createClass(SButton,[{key:'render',value:function render() <mask> <mask> {var _this2=...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SButton.js
Object.defineProperty(exports,"__esModule",{value:true});exports.SHeader=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileN...
<mask> Object.defineProperty(exports,"__esModule",{value:true});exports.SHeader=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
_react2.default.createElement(_Header.Header,_extends({ref:function ref(c){return _this2._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:17}}), _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:18}},
<mask> SHeader=function(_Component){_inherits(SHeader,_Component);function SHeader(){_classCallCheck(this,SHeader);return _possibleConstructorReturn(this,(SHeader.__proto__||Object.getPrototypeOf(SHeader)).apply(this,arguments));}_createClass(SHeader,[{key:'render',value:function render() <mask> <mask> {var _this2=...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
style:this.props.leftButtonStyle,__source:{fileName:_jsxFileName,lineNumber:19}}, this.props.leftButton):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:22}})),
<mask> _react2.default.createElement(_Header.Header,_extends({ref:function ref(c){return _this2._root=c;}},this.props), <mask> _react2.default.createElement(_Left.Left,null, <mask> this.props.leftButton?_react2.default.createElement(_Button.Button,{ <mask> transparent:true,onPress:this.props.leftButtonPress, <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
_react2.default.createElement(_Body.Body,{__source:{fileName:_jsxFileName,lineNumber:24}}, this.props.title?_react2.default.createElement(_Title.Title,{style:this.props.titleStyle,__source:{fileName:_jsxFileName,lineNumber:25}}, this.props.title):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxF...
<mask> transparent:true,onPress:this.props.leftButtonPress, <mask> style:this.props.leftButtonStyle}, <mask> this.props.leftButton):_react2.default.createElement(_reactNative.View,null)), <mask> <mask> _react2.default.createElement(_Body.Body,null, <mask> this.props.title?_react2.default.createElement(_Title.Tit...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:28}},
<mask> _react2.default.createElement(_Body.Body,null, <mask> this.props.title?_react2.default.createElement(_Title.Title,{style:this.props.titleStyle}, <mask> this.props.title):_react2.default.createElement(_reactNative.View,null)), <mask> <mask> _react2.default.createElement(_Right.Right,null, <mask> this.props...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
onPress:this.props.rightButtonPress,style:this.props.rightButtonStyle,__source:{fileName:_jsxFileName,lineNumber:29}}, this.props.rightButton):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:32}}))));
<mask> <mask> _react2.default.createElement(_Right.Right,null, <mask> this.props.rightButton?_react2.default.createElement(_Button.Button,{ <mask> transparent:true, <mask> onPress:this.props.rightButtonPress,style:this.props.rightButtonStyle}, <mask> this.props.rightButton):_react2.default.createElement(_reactNa...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/SHeader.js
Object.defineProperty(exports,"__esModule",{value:true});exports.TabBar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileNa...
<mask> Object.defineProperty(exports,"__esModule",{value:true});exports.TabBar=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _c...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
_react2.default.createElement(_reactNative.View,{style:[{flex:1},this.props.tabBarStyle],key:name,__source:{fileName:_jsxFileName,lineNumber:15}},
<mask> name,page){var _this2=this; <mask> var isTabActive=this.props.activeTab===page; <mask> <mask> return( <mask> _react2.default.createElement(_reactNative.View,{style:[{flex:1},this.props.tabBarStyle],key:name}, <mask> _react2.default.createElement(_Button.Button,{ <mask> transparent:true,onPress:function o...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
isTabActive:this.props.activeTab===page,__source:{fileName:_jsxFileName,lineNumber:16}},
<mask> return( <mask> _react2.default.createElement(_reactNative.View,{style:[{flex:1},this.props.tabBarStyle],key:name}, <mask> _react2.default.createElement(_Button.Button,{ <mask> transparent:true,onPress:function onPress(){return _this2.props.goToPage(page);}, <mask> isTabActive:this.props.activeTab===page}, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
_react2.default.createElement(_Text.Text,{style:this.props.tabBarTextStyle,__source:{fileName:_jsxFileName,lineNumber:20}},name))));
<mask> _react2.default.createElement(_Button.Button,{ <mask> transparent:true,onPress:function onPress(){return _this2.props.goToPage(page);}, <mask> isTabActive:this.props.activeTab===page}, <mask> <mask> _react2.default.createElement(_Text.Text,{style:this.props.tabBarTextStyle},name)))); <mask> <mask> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
_react2.default.createElement(_reactNative.View,{key:page,style:[{flex:1},this.props.tabBarStyle],__source:{fileName:_jsxFileName,lineNumber:42}}, _react2.default.createElement(_Button.Button,{transparent:true,onPress:function onPress(){return _this4.props.goToPage(page);},isTabActive:this.props.activeTab===page,style:...
<mask> label,icon,page){var _this4=this; <mask> var isTabActive=this.props.activeTab===page; <mask> <mask> return( <mask> _react2.default.createElement(_reactNative.View,{key:page,style:[{flex:1},this.props.tabBarStyle]}, <mask> _react2.default.createElement(_Button.Button,{transparent:true,onPress:function onPr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this5._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:65}}),
<mask> var left=this.props.scrollValue.interpolate({ <mask> inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]}); <mask> <mask> return( <mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this5._root=c;}},this.props), <mask> this.props.iconPresent?this.renderTab...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
_react2.default.createElement(_reactNative.Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:68}})));
<mask> return( <mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this5._root=c;}},this.props), <mask> this.props.iconPresent?this.renderTab(this.props): <mask> this.props.tabs.map(function(tab,i){return _this5.renderLabelOption(tab,i);}), <mask> _react2.default.createElem...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/TabBar.js
Object.defineProperty(exports,"__esModule",{value:true});exports.STabs=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileNam...
<mask> Object.defineProperty(exports,"__esModule",{value:true});exports.STabs=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _cr...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
alwaysBounceVertical:false,__source:{fileName:_jsxFileName,lineNumber:79}},
<mask> scrollsToTop:false, <mask> showsHorizontalScrollIndicator:false, <mask> scrollEnabled:!this.props.locked, <mask> directionalLockEnabled:true, <mask> alwaysBounceVertical:false}, <mask> <mask> content); <mask> <mask> }else{ <mask> return _react2.default.createElement(_reactNative.ViewPagerAndroid,{ <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
ref:function ref(scrollView){_this2.scrollView=scrollView;},__source:{fileName:_jsxFileName,lineNumber:99}},
<mask> onPageScroll:function onPageScroll(e){var _e$nativeEvent= <mask> e.nativeEvent,offset=_e$nativeEvent.offset,position=_e$nativeEvent.position; <mask> _this2.getScrollValue(position+offset); <mask> }, <mask> ref:function ref(scrollView){_this2.scrollView=scrollView;}}, <mask> <mask> content); <mask> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
style:{width:_this3.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:115}},
<mask> <mask> {var _this3=this; <mask> return this.tabContent().map(function(child,idx){return _react2.default.createElement(_reactNative.View,{ <mask> key:idx, <mask> style:{width:_this3.state.containerWidth}}, <mask> <mask> child);}); <mask> <mask> }},{key:'tabContent',value:function tabContent() <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
return _react2.default.createElement(_TabBar.TabBar,_extends({},props,{vertical:this.props.vertical,__source:{fileName:_jsxFileName,lineNumber:133}}));
<mask> return null; <mask> }else if(this.props.renderTabBar){ <mask> return _react2.default.cloneElement(this.props.renderTabBar(props),props); <mask> }else{ <mask> return _react2.default.createElement(_TabBar.TabBar,_extends({},props,{vertical:this.props.vertical})); <mask> } <mask> }},{key:'render',value:funct...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
_react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this4._root=c;}},this.props,{__source:{fileName:_jsxFileName,lineNumber:153}}),
<mask> scrollValue:this.state.scrollValue}; <mask> <mask> <mask> return( <mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this4._root=c;}},this.props), <mask> this.props.tabBarPosition==='top'&&this.renderTab(tabBarProps), <mask> this.renderContent(), <mask> _react2...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
_react2.default.createElement(_reactNative.View,{style:this.props.tabBarPosition==='bottom'?{bottom:_reactNative.Platform.OS==='ios'?0:23}:{},__source:{fileName:_jsxFileName,lineNumber:156}},
<mask> return( <mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this4._root=c;}},this.props), <mask> this.props.tabBarPosition==='top'&&this.renderTab(tabBarProps), <mask> this.renderContent(), <mask> _react2.default.createElement(_reactNative.View,{style:this.props.tabB...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
dist/src/smart/STabs/index.js
"native-base-shoutem-theme": "0.1.5",
<mask> "clamp": "^1.0.1", <mask> "color": "~1.0.3", <mask> "fs-extra": "^2.0.0", <mask> "lodash": "~4.11.1", <mask> "native-base-shoutem-theme": "0.1.4", <mask> "print-message": "^2.1.0", <mask> "react-native-drawer": "^2.3.0", <mask> "react-native-easy-grid": "0.1.7", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc
package.json
modalVisible:false});var
<mask> duration:200}). <mask> start(); <mask> setTimeout(function(){ <mask> _this2.setState({ <mask> modalVisible:false}); <mask> <mask> },500); <mask> },config.duration); <mask> } <mask> _reactNative.Animated.timing(this.state.fadeAnim,{ </s> Call the onClose callback function inside the ToastContainer als...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
onClose=_this2.state.onClose; if(onClose&&typeof onClose==="function"){ onClose(); }
<mask> <mask> <mask> },500); <mask> },config.duration); <mask> } <mask> _reactNative.Animated.timing(this.state.fadeAnim,{ <mask> toValue:1, <mask> duration:200}). </s> Call the onClose callback function inside the ToastContainer also in the automatic closing </s> remove modalVisible:false}); </s> add modal...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:99}},
<mask> }},{key:"render",value:function render() <mask> {var _this4=this; <mask> if(this.state.modalVisible){ <mask> return( <mask> _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:94}}, <mask> _react2.default.createElement(_Toast.Toast...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:100}},
<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:95}}, <mask> <mask> _react2...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:106}},
<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:95}}, <mask> <mask> _react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsx...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this4.closeToast();},__source:{fileName:_jsxFileName,lineNumber:110}}, _react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:111}},
<mask> _react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:101}}, <mask> this.state.text), <mask> <mask> this.state.buttonText&& <mask> _react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this4.cl...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
dist/src/basic/ToastContainer.js
const { onClose } = this.state; if(onClose && typeof onClose === "function") { onClose(); }
<mask> modalVisible: false, <mask> }); <mask> }, 500); <mask> }, config.duration); <mask> } <mask> Animated.timing(this.state.fadeAnim, { </s> Call the onClose callback function inside the ToastContainer also in the automatic closing </s> remove modalVisible:false}); </s> add modalVisible:...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2735f7b816491a0506fca8839eed56f38b9fc1
src/basic/ToastContainer.js
<Box p="40px" mt="4" bg="teal.500" rounded="md">
<mask> visible={isOpen} <mask> initial={{ opacity: 0, scale: 0 }} <mask> animate={{ opacity: 1, scale: 1, transition: { duration: 250 } }} <mask> > <mask> <Box p="40px" color="white" mt="4" bg="teal.500" rounded="md"> <mask> ScaleFade <mask> </Box> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
example/storybook/stories/components/composites/Transitions/ScaleFade.tsx
<Box justifyContent="center" alignItems="center" {...newProps} ref={ref}>
<mask> ) => { <mask> const newProps = usePropsResolution('ActionsheetHeader', props); <mask> <mask> return ( <mask> <Box <mask> fontWeight="bold" <mask> justifyContent="center" <mask> alignItems="center" <mask> fontSize="md" <mask> color="gray.900" <mask> {...newP...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/Actionsheet/ActionsheetHeader.tsx
<Box alignItems="center" flexDirection="row" _text={{ color }} {...props} />
<mask> <mask> const AppBarContent = (props: IAppBarContentProps) => { <mask> const { color } = useThemeProps('AppBar', props); <mask> return ( <mask> <Box alignItems="center" flexDirection="row" color={color} {...props} /> <mask> ); <mask> }; <mask> <mask> export default React.memo(AppBarContent); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/AppBar/AppBarContent.tsx
return <HStack alignItems="center" _text={{ color }} {...props} />;
<mask> import { useThemeProps } from '../../../hooks'; <mask> <mask> const AppBarLeft = (props: IStackProps) => { <mask> const { color } = useThemeProps('AppBar', props); <mask> return <HStack alignItems="center" color={color} {...props} />; <mask> }; <mask> <mask> export default React.memo(AppBarLeft); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/AppBar/AppBarLeft.tsx
_text={{ color, }}
<mask> return ( <mask> <HStack <mask> alignItems="center" <mask> justifyContent="flex-end" <mask> color={color} <mask> {...props} <mask> /> <mask> ); <mask> }; <mask> </s> fix: remove typography types from box </s> remove <Box alignItems="center" flexDirection="row" c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/AppBar/AppBarRight.tsx
<Box _text={newProps._text}>{remainingProps.children}</Box>
<mask> borderRightColor={newProps.color} <mask> style={[styles.firstProgressLayer, firstProgressLayerStyle]} <mask> /> <mask> {renderThirdLayer(value)} <mask> <Box fontSize={sizeProps.height / 4} _text={newProps._text}> <mask> {remainingProps.child...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/CircularProgress/CircularProgress.tsx
_text={{ fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', }}
<mask> const Code = ({ ...props }: ICodeProps, ref?: any) => { <mask> let { ...newProps } = useThemeProps('Code', props); <mask> return ( <mask> <Box <mask> fontFamily={Platform.OS === 'ios' ? 'Courier' : 'monospace'} <mask> {...newProps} <mask> ref={ref} <mask> /> <mask> ); <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/Code/index.tsx
_text={{ textAlign: centerContent ? 'center' : 'left' }}
<mask> return ( <mask> <Box <mask> ref={ref} <mask> alignItems={centerContent ? 'center' : 'flex-start'} <mask> textAlign={centerContent ? 'center' : 'left'} <mask> {...newProps} <mask> > <mask> {children} <mask> </Box> <mask> ); </s> fix: remove typography types...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/composites/Container/index.tsx
<mask> FlexboxProps, <mask> LayoutProps, <mask> PositionProps, <mask> SpaceProps, <mask> TypographyProps, <mask> ExtraProps, <mask> OutlineProps, <mask> ShadowProps, <mask> BackgroundProps, <mask> SafeAreaProps, </s> fix: remove typography types from box </s> remove TypographyProps, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Box/types.ts
<mask> OutlineProps, <mask> ShadowProps, <mask> BackgroundProps, <mask> SafeAreaProps, <mask> TransformProps, <mask> PlatformProps, <mask> } from '../../types'; <mask> import type { ITextProps } from './../Text/types'; <mask> <mask> export interface ILinearGradientProps { </s> fix: remove typogr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Box/types.ts
TransformProps,
<mask> BackgroundProps, <mask> SafeAreaProps, <mask> PlatformProps, <mask> } from '../../types'; <mask> import type { ITextProps } from './../Text/types'; <mask> <mask> export interface ILinearGradientProps { <mask> linearGradient?: { <mask> colors: Array<string>; </s> fix: remove typography type...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Box/types.ts
Omit<ColorProps, 'backgroundColor' | 'bg' | 'color' | 'fill' | 'stroke'>,
<mask> }; <mask> } <mask> export interface IBoxProps <mask> extends ViewProps, <mask> Omit<ColorProps, 'backgroundColor' | 'bg'>, <mask> SpaceProps, <mask> LayoutProps, <mask> FlexboxProps, <mask> TypographyProps, <mask> PositionProps, </s> fix: remove typography types from box </...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Box/types.ts
<mask> Omit<ColorProps, 'backgroundColor' | 'bg'>, <mask> SpaceProps, <mask> LayoutProps, <mask> FlexboxProps, <mask> TypographyProps, <mask> PositionProps, <mask> BorderProps, <mask> ExtraProps, <mask> OutlineProps, <mask> ShadowProps, </s> fix: remove typography type...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Box/types.ts
extends Omit<ColorProps, 'fill' | 'stroke'>,
<mask> TypographyProps, <mask> } from '../../types'; <mask> <mask> export interface ITextProps <mask> extends ColorProps, <mask> SpaceProps, <mask> BorderProps, <mask> BackgroundProps, <mask> PositionProps, <mask> PositionProps, </s> fix: remove typography types from box </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Text/types.tsx
<mask> SpaceProps, <mask> BorderProps, <mask> BackgroundProps, <mask> PositionProps, <mask> PositionProps, <mask> LayoutProps, <mask> OutlineProps, <mask> ExtraProps, <mask> PlatformProps, <mask> ShadowProps, </s> fix: remove typography types from box </s> remove Typ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Text/types.tsx
<mask> /** <mask> * Used to truncate text at a specific number of lines <mask> */ <mask> noOfLines?: number; <mask> /** <mask> * For inline Style <mask> */ <mask> style?: any; <mask> /** <mask> * Make the text bold. <mask> */ <mask> bold?: boolean; <mask> /** </s> fix: remo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/primitives/Text/types.tsx
* @deprecated Use `color` prop instead of non standard textColor
<mask> <mask> export interface ColorProps extends ssColorProps { <mask> /** <mask> * The CSS `color` property <mask> */ <mask> textColor?: CSS.Property.Color; <mask> /** <mask> * The CSS `fill` property for icon svgs and paths <mask> */ </s> fix: remove typography types from box </s> remove...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/types/ColorProps.ts
import type { TextStyle } from 'react-native';
<mask> import type * as CSS from 'csstype'; <mask> import type { ResponsiveValue } from '../../components/types/responsiveValue'; <mask> import type { TypographyProps as ssTypographyProps } from 'styled-system'; <mask> <mask> /** <mask> * Types for typography related CSS properties <mask> */ <mask> export in...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/types/TypographyProps.ts
textTransform?: ResponsiveValue< Pick<TextStyle, 'textTransform'>['textTransform'] >; textDecorationColor?: ResponsiveValue< Pick<TextStyle, 'textDecorationColor'>['textDecorationColor'] >; textDecorationStyle?: ResponsiveValue< Pick<TextStyle, 'textDecorationStyle'>['textDecorationStyle'] >; ...
<mask> */ <mask> export interface TypographyProps extends ssTypographyProps { <mask> /** <mask> * The CSS `word-break` property <mask> */ <mask> wordBreak?: ResponsiveValue<CSS.Property.WordBreak>; <mask> /** </s> fix: remove typography types from box </s> remove /** * The CSS `text-transform`...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/types/TypographyProps.ts
<mask> /** <mask> * The CSS `text-overflow` property <mask> */ <mask> textOverflow?: ResponsiveValue<CSS.Property.TextOverflow>; <mask> /** <mask> * The CSS `text-transform` property <mask> */ <mask> textTransform?: ResponsiveValue<CSS.Property.TextTransform>; <mask> /** <mask> * The ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/types/TypographyProps.ts
<mask> /** <mask> * The CSS `text-decoration` property <mask> */ <mask> txtDecor?: ResponsiveValue<CSS.Property.TextDecoration>; <mask> /** <mask> * The CSS `text-decoration-line` property <mask> */ <mask> textDecorationLine?: ResponsiveValue<CSS.Property.TextDecorationLine>; <mask> } </s>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/components/types/TypographyProps.ts
textDecorationColor: { property: 'textDecorationColor', scale: 'colors', }, textDecorationStyle: true,
<mask> whiteSpace: true, <mask> textDecoration: true, <mask> txtDecor: { property: 'textDecoration' }, <mask> textDecorationLine: { property: 'textDecorationLine' }, <mask> }; <mask> <mask> export const customTypography = system(config); </s> fix: remove typography types from box </s> remove <Box a...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ea2992d1dcb031200fdd17a21f9b90c517693ad3
src/utils/customProps/customTypography.ts
note?: boolean, uppercase?: boolean
<mask> declare module 'native-base' { <mask> namespace NativeBase { <mask> <mask> interface Text extends ReactNative.TextProperties { <mask> note?: boolean <mask> } <mask> <mask> interface Switch extends ReactNative.SwitchProperties { } <mask> <mask> interfac...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
index.d.ts
regular?: boolean,
<mask> stackedLabel?: boolean, <mask> placeholderLabel?: boolean, <mask> bordered?: boolean, <mask> underline?: boolean, <mask> rounded?: boolean, <mask> disabled?: boolean, <mask> error?: boolean, </s> Remove old 'capitalize' p...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
index.d.ts
interface Form { style?: ReactNative.ViewStyle
<mask> success?: boolean, <mask> last?: boolean, <mask> } <mask> <mask> interface Form{ <mask> <mask> } <mask> <mask> interface Fab{ <mask> active?:boolean, <mask> direction?:"down"|"up"|"left"|"right", </s> Remove old 'capit...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
index.d.ts
interface Fab {
<mask> interface Form{ <mask> <mask> } <mask> <mask> interface Fab{ <mask> active?:boolean, <mask> direction?:"down"|"up"|"left"|"right", <mask> containerStyle?:ReactNative.ViewStyle, <mask> onPress?:()=>void, <mask> positio...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
index.d.ts
: React.Children.map(this.props.children, child => child.type === Text ? React.cloneElement(child, { uppercase: true, ...child.props }) : child);
<mask> } <mask> render() { <mask> const children = Platform.OS === 'ios' <mask> ? this.props.children <mask> : React.Children.map(this.props.children, child => child.type === Text ? React.cloneElement(child, { capitalize: true, ...child.props }) : child); <mask> if (Platform.OS==='ios'...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
src/basic/Button.js
<mask> danger: React.PropTypes.bool, <mask> warning: React.PropTypes.bool, <mask> info: React.PropTypes.bool, <mask> bordered: React.PropTypes.bool, <mask> capitalize: React.PropTypes.bool, <mask> disabled: React.PropTypes.bool, <mask> rounded: React.PropTypes.bool, <mask> large: React.PropTypes...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
src/basic/Button.js
<mask> small: React.PropTypes.bool, <mask> active: React.PropTypes.bool, <mask> }; <mask> <mask> Button.defaultProps = { <mask> capitalize: true <mask> } <mask> <mask> const StyledButton = connectStyle('NativeBase.Button', {}, mapPropsToStyleNames)(Button); <mask> export { <mask> StyledButton as Bu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
src/basic/Button.js
{this.props.uppercase ? this.props.children.toUpperCase() : this.props.children}
<mask> <RNText <mask> ref={c => this._root = c} <mask> {...this.props} <mask> > <mask> {this.props.capitalize ? this.props.children.toUpperCase() : this.props.children} <mask> </RNText> <mask> ); <mask> } <mask> } <mask> </s> Remove old 'capitalize' prop from ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eaee00981db107ea069c3b3af3b70c69e646a1a0
src/basic/Text.js
let componentTheme =
<mask> cascadePseudoProps?: boolean; <mask> } <mask> ) { <mask> const { theme } = useNativeBase(); <mask> const componentTheme = <mask> config?.componentTheme ?? get(theme, `components.${component}`, {}); <mask> <mask> if (process.env.NODE_ENV === 'development' && incomingProps.debug) { <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eb254a0b329a9fb5f643d1e066817a47d287adef
src/hooks/useThemeProps/usePropsResolution.tsx
if (config?.extendTheme) { config?.extendTheme.map((componentName: string) => { const currentTheme = get(theme, `components.${componentName}`, {}); componentTheme = merge(componentTheme, currentTheme); }); }
<mask> let componentTheme = <mask> config?.componentTheme ?? get(theme, `components.${component}`, {}); <mask> <mask> if (process.env.NODE_ENV === 'development' && incomingProps.debug) { <mask> /* eslint-disable-next-line */ <mask> console.log( <mask> `%c${component}`, <mask> 'backg...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eb254a0b329a9fb5f643d1e066817a47d287adef
src/hooks/useThemeProps/usePropsResolution.tsx
// Not Resolve theme props and pseudo props if (incomingProps?.INTERNAL_notResolveThemeAndPseudoProps) { delete incomingProps.INTERNAL_notResolveThemeAndPseudoProps; return incomingProps; }
<mask> ); <mask> <mask> if (process.env.NODE_ENV === 'development' && incomingProps.debug) { <mask> /* eslint-disable-next-line */ <mask> console.log( <mask> '%c resolvedProps: ', </s> feat: added extend theme and top prop resolution feature </s> remove const componentTheme = </s> add let...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eb254a0b329a9fb5f643d1e066817a47d287adef
src/hooks/useThemeProps/usePropsResolution.tsx
extendTheme?: string[];
<mask> resolveResponsively?: string[]; <mask> ignoreProps?: string[]; <mask> cascadePseudoProps?: boolean; <mask> } <mask> ) => { <mask> const modifiedPropsForSSR = useResponsiveSSRProps(incomingProps); <mask> <mask> const [ignoredProps, cleanIncomingProps] = extractInObject( <mask> modi...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/eb254a0b329a9fb5f643d1e066817a47d287adef
src/hooks/useThemeProps/usePropsResolution.tsx
import lightTheme from '../Themes/light';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Component, View} from 'react-native'; <mask> import darkTheme from '../Themes/dark'; <mask> <mask> <mask> export default class NativeStarterComponent extends Component { <mask> static contextTypes = { <mask> theme: React.PropType...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Base/NativeStarterComponent.js
return this.context.theme || lightTheme
<mask> theme: React.PropTypes.object <mask> } <mask> <mask> getTheme() { <mask> return this.context.theme || darkTheme <mask> } <mask> } </s> component and use case changes </s> remove import darkTheme from '../Themes/dark'; </s> add import lightTheme from '../Themes/light'; </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Base/NativeStarterComponent.js
<mask> module.exports = { <mask> button: { <mask> padding: 10, <mask> borderColor: 'transparent', <mask> alignSelf: 'stretch', <mask> height: 45, <mask> marginTop: 15, <mask> marginLeft: 10, <mask> marginRight: 10, <mask> shadowColor: '#000', </s> component and use case changes </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Styles/button.js
justifyContent: 'space-around', flexDirection: 'row',
<mask> height: 45, <mask> marginTop: 15, <mask> marginLeft: 10, <mask> marginRight: 10, <mask> shadowColor: '#000', <mask> shadowOffset: {width: 1, height: 2}, </s> component and use case changes </s> remove alignSelf: 'stretch', </s> add </s> remove alignItems: 'center', </s> add </s> rem...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Styles/button.js
<mask> shadowColor: '#000', <mask> shadowOffset: {width: 1, height: 2}, <mask> shadowOpacity: 0.2, <mask> shadowRadius: 3, <mask> alignItems: 'center', <mask> backgroundColor: secondary, <mask> borderRadius: 4 <mask> }, <mask> buttonText: { <mask> fontSize: 18, </s> component and use case c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Styles/button.js
<mask> } <mask> <mask> <mask> <mask> bootstrap-sass-asset-helper: false !default; <mask> // <mask> // Variables <mask> // -------------------------------------------------- <mask> <mask> <mask> //== Colors <mask> // <mask> //## Gray and brand colors for use across Bootstrap. <mask> <mask> grayBase:...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Themes/light.js
import Icon from 'react-native-vector-icons/Ionicons';
<mask> import NativeStarterComponent from '../Base/NativeStarterComponent'; <mask> import button from '../Styles/button'; <mask> import _ from 'lodash'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> <mask> export default class Button extends NativeStarterComponent { <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Widgets/Button.js
(this.props.secondary) ? this.getTheme().brandSecondary :
<mask> <mask> prepareRootProps() { <mask> <mask> var type = { backgroundColor: (this.props.primary) ? this.getTheme().primary : <mask> (this.props.secondary) ? this.getTheme().secondary : <mask> (this.props.success) ? this.getTheme().success : <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Widgets/Button.js
(this.props.transparent) ? 'rgba(0,0,0,0)' : this.getTheme().brandSecondary,
<mask> (this.props.success) ? this.getTheme().success : <mask> (this.props.danger) ? this.getTheme().danger : <mask> (this.props.warning) ? this.getTheme().warning : <mask> (this.props.backgroundColor) ? this.props.backgroun...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Widgets/Button.js
console.log(this.props.children);
<mask> var defaultProps = { <mask> style: navbarStyle.navbar <mask> }; <mask> <mask> console.log("toolbar style:", computeProps(this.props, defaultProps)); <mask> <mask> return computeProps(this.props, defaultProps); <mask> </s> component and use case chan...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3b0421cee17bd8eaa8e9e4aacbf208f5cf7460
Components/Widgets/Toolbar.js
toValue: this.state.buttons * 51.3 + 56, useNativeDriver: true
<mask> <mask> rightAnimate() { <mask> if (!this.props.active) { <mask> Animated.spring(this.containerWidth, { <mask> toValue: this.state.buttons * 51.3 + 56 <mask> }).start(); <mask> Animated.spring(this.buttonScale, { <mask> toValue: 1 <mask> }).start(); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3bf855d94df581ac7b164081590cc482e1e432
src/basic/Fab.js
duration: 150, useNativeDriver: true
<mask> <mask> floatUp(e) { <mask> Animated.timing(this.state.topAnim, { <mask> toValue: e || -22, <mask> duration: 150 <mask> }).start(); <mask> Animated.timing(this.state.opacAnim, { <mask> toValue: 0.7, <mask> duration: 150 <mask> }).start(); </s> Fix animation sl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3bf855d94df581ac7b164081590cc482e1e432
src/basic/Item.js
duration: 150, useNativeDriver: true
<mask> duration: 150 <mask> }).start(); <mask> Animated.timing(this.state.opacAnim, { <mask> toValue: 0.7, <mask> duration: 150 <mask> }).start(); <mask> } <mask> <mask> renderLabel(label, labelProps) { <mask> const newLabel = []; </s> Fix animation slow / Using the nat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3bf855d94df581ac7b164081590cc482e1e432
src/basic/Item.js
return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay, useNativeDriver: true});
<mask> }); <mask> } <mask> <mask> getPreviewAnimation(toValue, delay) { <mask> return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay }); <mask> } <mask> <mask> onContentLayout(e) { <mask> this.setState({ <mask> dimensionsSet: !this.props.re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3bf855d94df581ac7b164081590cc482e1e432
src/basic/SwipeRow.js
useNativeDriver: true
<mask> toValue, <mask> friction: this.props.friction, <mask> tension: this.props.tension, <mask> }).start(_ => { <mask> if (toValue === 0) { <mask> this.props.onRowDidClose && this.props.onRowDidClose(); <mask> } else { <mask> this.props.onRowDidOpen && this.props.onRowDidOpen(); <mask...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec3bf855d94df581ac7b164081590cc482e1e432
src/basic/SwipeRow.js
import {NativeBaseProvider, Box, Center} from 'native-base';
<mask> import React from 'react'; <mask> import {useColorScheme} from 'react-native'; <mask> import {Colors} from 'react-native/Libraries/NewAppScreen'; <mask> import {Box, NativeBaseProvider} from 'native-base'; <mask> <mask> const App = () => { <mask> const isDarkMode = useColorScheme() === 'dark'; <mask> ...
[ "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/App.tsx
<mask> import {Colors} from 'react-native/Libraries/NewAppScreen'; <mask> import {Box, NativeBaseProvider} from 'native-base'; <mask> <mask> const App = () => { <mask> const isDarkMode = useColorScheme() === 'dark'; <mask> <mask> const backgroundStyle = { <mask> backgroundColor: isDarkMode ? Colors.da...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/App.tsx
<Center flex={1}> <Box bg={{ linearGradient: { colors: ['lightBlue.300', 'violet.800'], start: [0, 0], end: [1, 0], }, }} p={12} rounded="lg" _text={{fontSize: 'md', fontWeight: 'bold', colo...
<mask> }; <mask> <mask> return ( <mask> <NativeBaseProvider> <mask> <Box>hello world</Box> <mask> </NativeBaseProvider> <mask> ); <mask> }; <mask> <mask> export default App; </s> linear grad without uni-modules (#3713) * feat: linear gradient dynamic dependency * feat: updated type ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/App.tsx
import com.BV.LinearGradient.LinearGradientPackage;
<mask> import android.app.Application; <mask> import android.content.Context; <mask> import com.facebook.react.PackageList; <mask> import com.facebook.react.ReactApplication; <mask> import com.facebook.react.ReactInstanceManager; <mask> import com.facebook.react.ReactNativeHost; <mask> import com.facebook.react....
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/android/app/src/main/java/com/rnbareexample/MainApplication.java
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
<mask> ) <mask> <mask> target 'RNBareExampleTests' do <mask> inherit! :complete <mask> # Pods for testing <mask> end <mask> </s> linear grad without uni-modules (#3713) * feat: linear gradient dynamic dependency * feat: updated type and RNExample package </s> remove let gradColors: any = n...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/ios/Podfile
"react-native-linear-gradient": "^2.5.6",
<mask> }, <mask> "dependencies": { <mask> "react": "17.0.1", <mask> "react-native": "0.64.1", <mask> "react-native-safe-area-context": "^3.2.0", <mask> "react-native-svg": "^12.1.1", <mask> "styled-components": "^5.3.0", <mask> "styled-system": "^5.1.5" </s> linear grad without uni-...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
RNBareExample/package.json
"expo-linear-gradient": "^9.1.0",
<mask> "@react-native-aria/overlays": "^0.2.9", <mask> "@react-native-async-storage/async-storage": "^1.13.2", <mask> "expo": "~40.0.0", <mask> "expo-font": "~8.4.0", <mask> "expo-splash-screen": "^0.8.1", <mask> "expo-status-bar": "~1.0.3", <mask> "formik": "^2.2.6", <...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
example/package.json
"styled-system": "*", "expo-linear-gradient": "*", "react-native-linear-gradient": "*"
<mask> "react-native": "*", <mask> "react-native-safe-area-context": "*", <mask> "react-native-svg": "*", <mask> "styled-components": "*", <mask> "styled-system": "*" <mask> }, <mask> "jest": { <mask> "preset": "jest-expo", <mask> "transform": { <mask> "^.+\\.js$": "<root...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
package.json
<mask> "@react-native-aria/utils": "^0.2.7", <mask> "@react-stately/combobox": "^3.0.0-alpha.1", <mask> "@react-stately/radio": "^3.2.1", <mask> "@types/styled-system": "^5.1.9", <mask> "expo-linear-gradient": "^9.1.0", <mask> "lodash.clonedeep": "^4.5.0", <mask> "lodash.get": "^4.4.2...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
package.json
<mask> "lodash.mergewith": "^4.6.2", <mask> "lodash.omit": "^4.5.0", <mask> "lodash.omitby": "^4.6.0", <mask> "lodash.pick": "^4.4.0", <mask> "react-native-unimodules": "^0.13.3", <mask> "tinycolor2": "^1.4.2" <mask> }, <mask> "directories": { <mask> "example": "example", <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
package.json
import { LinearGradient } from './LinearGradiant';
<mask> import React, { memo, forwardRef } from 'react'; <mask> import { View } from 'react-native'; <mask> import { LinearGradient } from 'expo-linear-gradient'; <mask> import styled from 'styled-components/native'; <mask> import { <mask> border, <mask> color, <mask> flexbox, </s> linear grad without uni...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
src/components/primitives/Box/index.tsx
export interface ILinearGradientProps { linearGradient?: { colors: Array<string>; start?: Array<number>; end?: Array<number>; location?: Array<number>; }; }
<mask> } from '../../types'; <mask> import type { ITextProps } from './../Text/types'; <mask> <mask> export interface IBoxProps <mask> extends ViewProps, <mask> Omit<ColorProps, 'backgroundColor' | 'bg'>, <mask> SpaceProps, <mask> LayoutProps, <mask> FlexboxProps, </s> linear grad without u...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
src/components/primitives/Box/types.ts
Omit<ColorProps, 'backgroundColor' | 'bg'>,
<mask> import type { ITextProps } from './../Text/types'; <mask> <mask> export interface IBoxProps <mask> extends ViewProps, <mask> ColorProps, <mask> SpaceProps, <mask> LayoutProps, <mask> FlexboxProps, <mask> TypographyProps, <mask> PositionProps, </s> linear grad without uni-mod...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ec8478c68ea1e5884d16a82b32a4cc187418f88a
src/components/primitives/Box/types.ts