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
break; case 'Octicons':
<mask> Icon = Foundation; <mask> break; <mask> case "MaterialIcons": <mask> Icon = MaterialIcons; <mask> break; <mask> case "Octicons": <mask> Icon = Octicons; <mask> break; <mask> case "Zocial": <mask> Icon = Zocial; <mask> break; </s> linter rules added and textinput alignment fix </s> remove break; case "MaterialIcons": </s> add break; case 'MaterialIcons': </s> remove break; case "Zocial": </s> add break; case 'Zocial': </s> remove break; case "Foundation": </s> add break; case 'Foundation': </s> remove break; </s> add break; </s> remove break; case "FontAwesome": </s> add break; case 'FontAwesome':
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Icon.js
break; case 'Zocial':
<mask> Icon = MaterialIcons; <mask> break; <mask> case "Octicons": <mask> Icon = Octicons; <mask> break; <mask> case "Zocial": <mask> Icon = Zocial; <mask> break; <mask> default: <mask> Icon = Ionicons; <mask> } </s> linter rules added and textinput alignment fix </s> remove break; </s> add break; </s> remove break; case "Octicons": </s> add break; case 'Octicons': </s> remove break; case "MaterialIcons": </s> add break; case 'MaterialIcons': </s> remove break; case "Foundation": </s> add break; case 'Foundation': </s> remove break; case "FontAwesome": </s> add break; case 'FontAwesome':
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Icon.js
break;
<mask> Icon = Octicons; <mask> break; <mask> case "Zocial": <mask> Icon = Zocial; <mask> break; <mask> default: <mask> Icon = Ionicons; <mask> } <mask> <mask> </s> linter rules added and textinput alignment fix </s> remove break; case "Zocial": </s> add break; case 'Zocial': </s> remove break; case "Octicons": </s> add break; case 'Octicons': </s> remove break; case "MaterialIcons": </s> add break; case 'MaterialIcons': </s> remove break; case "FontAwesome": </s> add break; case 'FontAwesome': </s> remove break; case "Entypo": </s> add break; case 'Entypo':
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Icon.js
return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); }
<mask> return computeProps(this.props, defaultProps); <mask> } <mask> render() { <mask> <mask> return ( <mask> <View style={{ flex: 1}}> <mask> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> <mask> </View> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> add <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> remove ); </s> add ); </s> remove render() { return( </s> add render() { return( </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove else </s> add else {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Input.js
var addedProps = _.merge(this.getInitialStyle().textInput, type);
<mask> var defaultStyle = (this.props.borderType === 'regular') ? this.getInitialStyle().bordered : (this.props.borderType === 'rounded') ? this.getInitialStyle().rounded : this.getInitialStyle().underline; <mask> <mask> type = _.merge(type, defaultStyle); <mask> <mask> var addedProps = _.merge(this.getInitialStyle().textInput, type); <mask> <mask> var defaultProps = { <mask> style: addedProps, <mask> key: 'inpGroup' <mask> } </s> linter rules added and textinput alignment fix </s> remove var addedProps = _.merge(this.getInitialStyle().button,type); </s> add var addedProps = _.merge(this.getInitialStyle().button,type); </s> remove height: 30 </s> add height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) { </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove var inp = _.find(childrenArray, function(item) { </s> add var inp = _.find(childrenArray, function(item) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined
<mask> var defaultStyle = { <mask> alignSelf: 'center', <mask> paddingRight: 5, <mask> marginLeft: (this.props.toolbar || this.props.atoolbar) ? 5 : undefined, <mask> height: 30 <mask> } <mask> <mask> var defaultProps = { <mask> style: defaultStyle, <mask> key: 'button', </s> linter rules added and textinput alignment fix </s> remove var addedProps = _.merge(this.getInitialStyle().button,type); </s> add var addedProps = _.merge(this.getInitialStyle().button,type); </s> remove var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> add var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) { </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove defaultProps = { </s> add defaultProps = {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
var inp = _.find(childrenArray, function(item) {
<mask> return true; <mask> } <mask> }); <mask> <mask> var inp = _.find(childrenArray, function(item) { <mask> if(item && item.type == Input) { <mask> return true; <mask> } <mask> }); <mask> </s> linter rules added and textinput alignment fix </s> remove if(item.type == Badge) { return true; } }); </s> add if(item.type == Badge) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Radio) { return true; } }); </s> add if(item.type == Radio) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
<mask> return true; <mask> } <mask> }); <mask> <mask> if(inp) <mask> inputProps = computeProps(this.props, inp.props); <mask> else <mask> inputProps = this.props; <mask> <mask> if(Array.isArray(this.props.children)) { <mask> <mask> if(this.props.iconRight) { <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} />);
<mask> <mask> if(Array.isArray(this.props.children)) { <mask> <mask> if(this.props.iconRight) { <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> newChildren.push(React.cloneElement(iconElement[0],this.getIconProps(iconElement[0]))); <mask> } <mask> else if(buttonElement.length>0) { <mask> newChildren.push(React.cloneElement( <mask> iconElement[0], </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove if(inp) inputProps = computeProps(this.props, inp.props); else inputProps = this.props; </s> add if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} />);
<mask> ...this.getIconProps(iconElement[0]), <mask> key: 'icon0' <mask> } <mask> )); <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> newChildren.push(React.cloneElement( <mask> buttonElement[0], <mask> { <mask> ...this.getButtonProps(buttonElement[0]), <mask> key: 'button1' </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove if(inp) inputProps = computeProps(this.props, inp.props); else inputProps = this.props; </s> add if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} />);
<mask> ...this.getIconProps(iconElement[0]), <mask> key: 'icon0' <mask> } <mask> )); <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> newChildren.push(React.cloneElement( <mask> iconElement[1], <mask> { <mask> ...this.getIconProps(iconElement[1]), <mask> key: 'icon1' </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove if(inp) inputProps = computeProps(this.props, inp.props); else inputProps = this.props; </s> add if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} />);
<mask> } <mask> )); <mask> } else { <mask> newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0]))); <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> } <mask> } <mask> } <mask> <mask> else { </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove if(inp) inputProps = computeProps(this.props, inp.props); else inputProps = this.props; </s> add if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} />);
<mask> } <mask> } <mask> <mask> else { <mask> newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> } <mask> <mask> return newChildren; <mask> } <mask> </s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove if(inp) inputProps = computeProps(this.props, inp.props); else inputProps = this.props; </s> add if(inp) { inputProps = computeProps(this.props, inp.props); } else { inputProps = this.props; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/InputGroup.js
<mask> }); <mask> <mask> var lastElement = _.last(childrenArray); <mask> <mask> // var modLastElement = React.cloneElement(lastElement, computeProps(lastElement.props, {last: true})); <mask> <mask> return _.concat(_.slice(childrenArray, 0, childrenArray.length - 1), lastElement); <mask> } <mask> <mask> render() { </s> linter rules added and textinput alignment fix </s> remove var inp = _.find(childrenArray, function(item) { </s> add var inp = _.find(childrenArray, function(item) { </s> remove var addedProps = _.merge(this.getInitialStyle().button,type); </s> add var addedProps = _.merge(this.getInitialStyle().button,type); </s> remove if(item.type == Badge) { return true; } }); </s> add if(item.type == Badge) { return true; } }); </s> remove var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> add var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; })
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/List.js
enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} />
<mask> const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); <mask> var dataSource = ds.cloneWithRows(this.props.dataArray); <mask> return ( <mask> <ListView {...this.prepareRootProps()} <mask> enableEmptySections={true} <mask> dataSource={dataSource} <mask> renderRow={this.props.renderRow} /> <mask> ); <mask> } <mask> else <mask> return( <mask> <View {...this.prepareRootProps()} > </s> linter rules added and textinput alignment fix </s> remove else </s> add else { </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> add <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> remove ); </s> add );
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/List.js
else {
<mask> dataSource={dataSource} <mask> renderRow={this.props.renderRow} /> <mask> ); <mask> } <mask> else <mask> return( <mask> <View {...this.prepareRootProps()} > <mask> {this.renderChildren()} <mask> </View> <mask> ); </s> linter rules added and textinput alignment fix </s> remove enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> add enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove render() { return( </s> add render() { return( </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} >
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/List.js
{this.renderChildren()}
<mask> } <mask> else <mask> return( <mask> <View {...this.prepareRootProps()} > <mask> {this.renderChildren()} <mask> </View> <mask> ); <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove else </s> add else { </s> remove render() { return( </s> add render() { return( </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} > </s> remove } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/List.js
}
<mask> {this.renderChildren()} <mask> </View> <mask> ); <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove render() { return( </s> add render() { return( </s> remove else </s> add else { </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} >
[ "keep", "keep", "add", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/List.js
return { listItem: { borderBottomWidth: this.getTheme().borderWidth, marginLeft: 15, padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding, paddingLeft: 2, justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start', flexDirection: this.stackedPresent() ? 'column' : 'row', alignItems: 'center', borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor }, listItemDivider: { borderBottomWidth: this.getTheme().borderWidth, padding: this.getTheme().listItemPadding, backgroundColor: this.getTheme().listDividerBg, justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start', flexDirection: 'row', borderColor: this.getTheme().listBorderColor }, itemText: { fontSize: 16, marginLeft: (this.props.iconLeft) ? 10 : 0, color: this.getContextForegroundColor() }, dividerItemText: { fontSize: 16, fontWeight: '500' }, itemIcon: { fontSize: this.getTheme().iconFontSize, color: this.getContextForegroundColor(), lineHeight: (Platform.OS === 'ios') ? 34 : undefined }, itemNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, alignSelf: 'center', fontWeight: '100', flex: 1, textAlign: 'right' }, itemSubNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, lineHeight: 16 }, thumbnail: { alignSelf: 'center' }, fullImage: { width: 300, height: 300 }, itemButton: {} } }
<mask> export default class ListItemNB extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> <mask> return { <mask> listItem: { <mask> borderBottomWidth: this.getTheme().borderWidth, <mask> marginLeft: 15, <mask> padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding, <mask> paddingLeft: 2, <mask> //borderRadius: 1, <mask> justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start', <mask> flexDirection: this.stackedPresent() ? 'column' : 'row', <mask> alignItems: 'center', <mask> borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor <mask> }, <mask> listItemDivider: { <mask> borderBottomWidth: this.getTheme().borderWidth, <mask> padding: this.getTheme().listItemPadding, <mask> backgroundColor: this.getTheme().listDividerBg, <mask> justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start', <mask> flexDirection: 'row', <mask> borderColor: this.getTheme().listBorderColor <mask> }, <mask> itemText: { <mask> fontSize: 16, <mask> marginLeft: (this.props.iconLeft) ? 10 : 0, <mask> color: this.getContextForegroundColor() <mask> }, <mask> dividerItemText: { <mask> fontSize: 16, <mask> fontWeight: '500' <mask> }, <mask> itemIcon: { <mask> fontSize: this.getTheme().iconFontSize, <mask> color: this.getContextForegroundColor(), <mask> lineHeight: (Platform.OS === 'ios') ? 34 : undefined <mask> }, <mask> itemNote: { <mask> fontSize: this.getTheme().listNoteSize, <mask> color: this.getTheme().listNoteColor, <mask> alignSelf: 'center', <mask> fontWeight: '100', <mask> flex: 1, <mask> textAlign: 'right' <mask> }, <mask> itemSubNote: { <mask> fontSize: this.getTheme().listNoteSize, <mask> color: this.getTheme().listNoteColor, <mask> lineHeight: 16 <mask> }, <mask> thumbnail: { <mask> alignSelf: 'center' <mask> }, <mask> fullImage: { <mask> width: 300, <mask> height: 300 <mask> }, <mask> itemButton: {} <mask> <mask> } <mask> } <mask> getRightStyle() { <mask> return { <mask> right : { <mask> flex: 1, <mask> paddingLeft: 10 </s> linter rules added and textinput alignment fix </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})} </View>) newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}> {React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </View>) } else { newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}> {React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})} </View>) } } else { if (Platform.OS === 'ios') { newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}> {React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </View>) newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}> {[title[0],subtitle[0]]} </View>) if (buttons.length>1) { for (let i = 1; i < buttons.length; i++) { newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}> {React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})} </View>) newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}> {React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor, </s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor, </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor </s> remove // console.log("this.getContextForegroundColor()", this.getContextForegroundColor()); // console.log("this.getTheme().borderWidth", this.getTheme().borderWidth); </s> add </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "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/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
borderColor: this.getTheme().listBorderColor
<mask> else if(child.type == InputGroup) { <mask> <mask> defaultProps = { <mask> style: { <mask> borderColor: this.getTheme().listBorderColor <mask> }, <mask> foregroundColor: this.getContextForegroundColor() <mask> } <mask> } <mask> else if(child.type == Text) { </s> linter rules added and textinput alignment fix </s> remove defaultProps = { </s> add defaultProps = { </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove }; else </s> add }; } else { </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
defaultProps = {
<mask> } <mask> } <mask> else if(child.type == Text) { <mask> if (this.props.itemDivider) { <mask> defaultProps = { <mask> style: this.getInitialStyle().dividerItemText <mask> } <mask> } else { <mask> if(child.props.note && this.thumbnailPresent()) { <mask> defaultProps = { </s> linter rules added and textinput alignment fix </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor </s> remove }; else </s> add }; } else { </s> remove }; </s> add }; } </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } }
<mask> defaultProps = { <mask> style: this.getInitialStyle().dividerItemText <mask> } <mask> } else { <mask> if(child.props.note && this.thumbnailPresent()) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemSubNote <mask> } <mask> } <mask> else if(child.props.note) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemNote <mask> } <mask> } <mask> else { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemText <mask> } <mask> } <mask> <mask> } <mask> } <mask> else if(child.type == Icon) { <mask> defaultProps = { </s> linter rules added and textinput alignment fix </s> remove defaultProps = { </s> add defaultProps = { </s> remove }; else </s> add }; } else { </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor </s> remove }; </s> add }; } </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(this.props.itemDivider) {
<mask> <mask> prepareRootProps() { <mask> var defaultProps = {}; <mask> <mask> if(this.props.itemDivider) <mask> defaultProps = { <mask> style: this.getInitialStyle().listItemDivider <mask> }; <mask> <mask> else </s> linter rules added and textinput alignment fix </s> remove }; else </s> add }; } else { </s> remove }; </s> add }; } </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove defaultProps = { </s> add defaultProps = { </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
}; } else {
<mask> <mask> if(this.props.itemDivider) <mask> defaultProps = { <mask> style: this.getInitialStyle().listItemDivider <mask> }; <mask> <mask> else <mask> defaultProps = { <mask> style: this.getInitialStyle().listItem <mask> }; <mask> return computeProps(this.props, defaultProps); <mask> } </s> linter rules added and textinput alignment fix </s> remove }; </s> add }; } </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) { </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove defaultProps = { </s> add defaultProps = { </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
}; }
<mask> <mask> else <mask> defaultProps = { <mask> style: this.getInitialStyle().listItem <mask> }; <mask> return computeProps(this.props, defaultProps); <mask> } <mask> <mask> <mask> notePresent() { </s> linter rules added and textinput alignment fix </s> remove }; else </s> add }; } else { </s> remove if(this.props.itemDivider) </s> add if(this.props.itemDivider) { </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> add if(child.props.note && this.thumbnailPresent()) { defaultProps = { style: this.getInitialStyle().itemSubNote } } else if(child.props.note) { defaultProps = { style: this.getInitialStyle().itemNote } } else { defaultProps = { style: this.getInitialStyle().itemText } } </s> remove defaultProps = { </s> add defaultProps = { </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent;
<mask> <mask> <mask> notePresent() { <mask> <mask> var notePresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Text && child.props.note) <mask> notePresent = true; <mask> }) <mask> return notePresent; <mask> <mask> } <mask> <mask> insetPresent() { <mask> </s> linter rules added and textinput alignment fix </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> remove return insetPresent; </s> add return insetPresent; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; })
<mask> } <mask> <mask> insetPresent() { <mask> <mask> var insetPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == InputGroup && child.props.inset) <mask> insetPresent = true; <mask> }) <mask> <mask> return insetPresent; <mask> <mask> } <mask> </s> linter rules added and textinput alignment fix </s> remove return insetPresent; </s> add return insetPresent; </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
return insetPresent;
<mask> if(child.type == InputGroup && child.props.inset) <mask> insetPresent = true; <mask> }) <mask> <mask> return insetPresent; <mask> <mask> } <mask> <mask> <mask> inlinePresent() { </s> linter rules added and textinput alignment fix </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> remove defaultProps = { </s> add defaultProps = { </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false;
<mask> <mask> inlinePresent() { <mask> var inlineComponentPresent = false; <mask> if (this.inputPresent()) { <mask> if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { <mask> inlineComponentPresent = true; <mask> } <mask> else <mask> inlineComponentPresent = false; <mask> } <mask> return inlineComponentPresent; <mask> } <mask> <mask> stackedPresent() { </s> linter rules added and textinput alignment fix </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> remove defaultProps = { </s> add defaultProps = {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false;
<mask> <mask> stackedPresent() { <mask> var stackedComponentPresent = false; <mask> if (this.inputPresent()) { <mask> if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { <mask> stackedComponentPresent = true; <mask> } <mask> else <mask> stackedComponentPresent = false; <mask> } <mask> <mask> return stackedComponentPresent; <mask> } <mask> </s> linter rules added and textinput alignment fix </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> remove defaultProps = { </s> add defaultProps = {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; })
<mask> <mask> <mask> <mask> squareThumbs() { <mask> var squareThumbs = false; <mask> if (this.thumbnailPresent()) { <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.props.square) <mask> squareThumbs = true; <mask> }) <mask> <mask> } <mask> return squareThumbs; <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove } return squareThumbs; </s> add } return squareThumbs; </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.inlineLabel) { inlineComponentPresent = true; } else inlineComponentPresent = false; </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
} return squareThumbs;
<mask> if(child.props.square) <mask> squareThumbs = true; <mask> }) <mask> <mask> } <mask> return squareThumbs; <mask> <mask> } <mask> <mask> renderChildren() { <mask> </s> linter rules added and textinput alignment fix </s> remove var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> add var squareThumbs = false; if (this.thumbnailPresent()) { React.Children.forEach(this.props.children, function (child) { if(child.props.square) squareThumbs = true; }) </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove if(typeof this.props.children == "string") { </s> add if(typeof this.props.children == 'string') { </s> remove return insetPresent; </s> add return insetPresent; </s> remove var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent; </s> add var notePresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == Text && child.props.note) notePresent = true; }) return notePresent;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{React.cloneElement(this.props.children, this.getChildProps(this.props.children))}
<mask> var newChildren = []; <mask> if(!Array.isArray(this.props.children) && !this.inlinePresent() && !this.stackedPresent() && !this.insetPresent()) { <mask> newChildren.push( <mask> <View key='listItem' style={{alignSelf: 'stretch', flex:1}}> <mask> {React.cloneElement(this.props.children, this.getChildProps(this.props.children))} <mask> </View> <mask> ); <mask> } <mask> <mask> </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> add var insetPresent = false; React.Children.forEach(this.props.children, function (child) { if(child.type == InputGroup && child.props.inset) insetPresent = true; }) </s> remove if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> add if (this.props.children.props.children.props && this.props.children.props.children.props.stackedLabel) { stackedComponentPresent = true; } else stackedComponentPresent = false; </s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor, </s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Icon) { return true; } });
<mask> <mask> if (this.props.iconLeft && !this.props.iconRight) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Icon) { <mask> return true; <mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'})); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'})); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> } <mask> else if (this.props.iconRight && !this.props.iconLeft) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Icon) { </s> linter rules added and textinput alignment fix </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Icon) { return true; } });
<mask> } <mask> else if (this.props.iconRight && !this.props.iconLeft) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Icon) { <mask> return true; <mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Badge) { return true; } }); </s> add if(item.type == Badge) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem1'})); <mask> } <mask> else if (this.badgePresent()) { <mask> <mask> var badgeElement = _.remove(childrenArray, function(item) { </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Badge) { return true; } }); </s> add if(item.type == Badge) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Badge) { return true; } });
<mask> } <mask> else if (this.badgePresent()) { <mask> <mask> var badgeElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Badge) { <mask> return true; <mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> newChildren.push(React.cloneElement(badgeElement[0], {...this.getChildProps(badgeElement[0]), key: 'listItem1'})); <mask> } <mask> else if (this.props.iconRight && this.props.iconLeft) { <mask> <mask> iconElement = _.filter(childrenArray, function(item) { </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Icon) { return true; } });
<mask> } <mask> else if (this.props.iconRight && this.props.iconLeft) { <mask> <mask> iconElement = _.filter(childrenArray, function(item) { <mask> if(item.type == Icon) { <mask> return true; <mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between'}} > <mask> {childrenArray.slice(0,2).map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> } <mask> }); <mask> <mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between'}} > <mask> {childrenArray.slice(0,2).map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> newChildren.push(React.cloneElement(iconElement[1], {...this.getChildProps(iconElement[1]), key: 'listItem1'})); <mask> } <mask> <mask> else if (this.thumbnailPresent()) { <mask> </s> linter rules added and textinput alignment fix </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Thumbnail) { return true; } });
<mask> <mask> else if (this.thumbnailPresent()) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Thumbnail) { <mask> return true; <mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'})); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'})); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> } <mask> else if (this.checkBoxPresent()) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == CheckBox) { </s> linter rules added and textinput alignment fix </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } }); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == CheckBox) { return true; } });
<mask> } <mask> else if (this.checkBoxPresent()) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == CheckBox) { <mask> return true; <mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], this.getChildProps(iconElement[0]))); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child) => { <mask> return React.cloneElement(child, this.getChildProps(child)); <mask> })} </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove if(item.type == Radio) { return true; } }); </s> add if(item.type == Radio) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } }); </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>);
<mask> } <mask> }); <mask> newChildren.push(React.cloneElement(iconElement[0], this.getChildProps(iconElement[0]))); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child) => { <mask> return React.cloneElement(child, this.getChildProps(child)); <mask> })} <mask> </View>); <mask> } <mask> else if (this.radioPresent()) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Radio) { </s> linter rules added and textinput alignment fix </s> remove if(item.type == Radio) { return true; } }); </s> add if(item.type == Radio) { return true; } }); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } }); </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
if(item.type == Radio) { return true; } });
<mask> } <mask> else if (this.radioPresent()) { <mask> <mask> iconElement = _.remove(childrenArray, function(item) { <mask> if(item.type == Radio) { <mask> return true; <mask> } <mask> }); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child) => { <mask> return React.cloneElement(child, this.getChildProps(child)); <mask> })} <mask> </View>); </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } }); </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove if(item.type == Thumbnail) { return true; } }); </s> add if(item.type == Thumbnail) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>);
<mask> return true; <mask> } <mask> }); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} > <mask> {childrenArray.map((child) => { <mask> return React.cloneElement(child, this.getChildProps(child)); <mask> })} <mask> </View>); <mask> newChildren.push(React.cloneElement(iconElement[0], this.getChildProps(iconElement[0]))); <mask> } <mask> else if (this.inputPresent() && !this.inlinePresent() && !this.stackedPresent() && !this.insetPresent()) { <mask> <mask> </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } }); </s> remove if(item.type == Radio) { return true; } }); </s> add if(item.type == Radio) { return true; } }); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> else if (this.inputPresent() && !this.inlinePresent() && !this.stackedPresent() && !this.insetPresent()) { <mask> <mask> <mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'column', alignSelf: 'center', flex: 1 }} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> } <mask> else if (this.inlinePresent()) { <mask> <mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'row', justifyContent: 'center', flex: 1, borderColor: this.getTheme().listBorderColor, alignItems: 'center', height: this.getTheme().inputHeightBase }} > <mask> <Text style={{color: this.getTheme().inputColorPlaceholder }}>{this.props.children.props.children.props.label}</Text> </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> remove {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
{childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
<mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'row', alignSelf: 'stretch', flex: 1 , padding: 0}} > <mask> {childrenArray.map((child, i) => { <mask> return React.cloneElement(child, {...this.getChildProps(child), key: i}); <mask> })} <mask> </View>); <mask> } <mask> } <mask> <mask> return newChildren; <mask> } </s> linter rules added and textinput alignment fix </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.slice(0,2).map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
<TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity>
<mask> } <mask> <mask> render() { <mask> return( <mask> <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > <mask> {this.renderChildren()} <mask> </TouchableOpacity> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} > </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove render() { return( </s> add render() { return( </s> remove } </s> add </s> remove {this.renderChildren()} </s> add {this.renderChildren()}
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ListItem.js
import View from './View'; import Text from './Text'; import List from './List'; import Icon from './Icon'; import Container from './Container'; import Content from './Content'; import ListItem from './ListItem'; import Button from './Button'; import Header from './Header'; import Title from './Title'; import _ from 'lodash';
<mask> import React from 'react'; <mask> import {Picker, Modal} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import View from "./View"; <mask> import Text from "./Text"; <mask> import List from "./List"; <mask> import Icon from "./Icon"; <mask> import Container from "./Container"; <mask> import Content from "./Content"; <mask> import ListItem from "./ListItem"; <mask> import Button from "./Button"; <mask> import Header from "./Header"; <mask> import Title from "./Title"; <mask> import _ from "lodash"; <mask> <mask> export default class PickerNB extends NativeBaseComponent { <mask> constructor(props) { <mask> super(props); <mask> this.state = { </s> linter rules added and textinput alignment fix </s> remove import Button from "./Button"; import View from "./View"; import Title from "./Title"; import InputGroup from "./InputGroup"; import Subtitle from "./Subtitle"; </s> add import Button from './Button'; import View from './View'; import Title from './Title'; import InputGroup from './InputGroup'; import Subtitle from './Subtitle'; </s> remove import Text from "./Text"; import View from "./View"; </s> add import Text from './Text'; import View from './View'; </s> remove import Text from "./Text"; </s> add import Text from './Text'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.ios.js
});
<mask> <mask> getSelected() { <mask> const selected = _.find(this.props.children,(o) => { <mask> return o.props.value == this.props.selectedValue; <mask> }); <mask> console.log("title", ); <mask> return selected; <mask> } <mask> <mask> render() { <mask> return ( </s> linter rules added and textinput alignment fix </s> remove if(item.type == Badge) { return true; } }); </s> add if(item.type == Badge) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove if(item.type == Radio) { return true; } }); </s> add if(item.type == Radio) { return true; } }); </s> remove if(item.type == CheckBox) { return true; } }); </s> add if(item.type == CheckBox) { return true; } });
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.ios.js
<Modal animationType='slide'
<mask> render() { <mask> return ( <mask> <View> <mask> <Button transparent onPress={() => {this._setModalVisible(true)}}>{this.state.current}</Button> <mask> <Modal animationType="slide" <mask> transparent={false} <mask> visible={this.state.modalVisible} <mask> onRequestClose={() => {this._setModalVisible(false)}} <mask> > <mask> <Container> </s> linter rules added and textinput alignment fix </s> remove }); console.log("title", ); </s> add }); </s> remove (<Icon name="ios-checkmark-outline" />) </s> add (<Icon name='ios-checkmark-outline' />) </s> remove <View> {this.renderHeader()} </View> </s> add <View> {this.renderHeader()} </View> </s> remove enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> add enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.ios.js
(<Icon name='ios-checkmark-outline' />)
<mask> renderRow={(child) => <mask> <ListItem style={{paddingVertical: 10}} iconRight button onPress={() => {this._setModalVisible(false);this.props.onValueChange(child.props.value); this.setState({current: child.props.label})}} > <mask> <Text>{child.props.label}</Text> <mask> {(child.props.value===this.props.selectedValue) ? <mask> (<Icon name="ios-checkmark-outline" />) <mask> : <mask> (<Icon name="ios-checkmark-outline" style={{color: 'transparent'}} />) <mask> } <mask> <mask> </ListItem> </s> linter rules added and textinput alignment fix </s> remove (<Icon name="ios-checkmark-outline" style={{color: 'transparent'}} />) </s> add (<Icon name='ios-checkmark-outline' style={{color: 'transparent'}} />) </s> remove <Modal animationType="slide" </s> add <Modal animationType='slide' </s> remove {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> add {childrenArray.map((child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i}); })} </View>); </s> remove {(Platform.OS === 'ios') ? <Icon name={this.props.selected ? "ios-radio-button-on" : "ios-radio-button-off-outline"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> : <Icon name={this.props.selected ? "md-radio-button-on" : "md-radio-button-off"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> } </s> add {(Platform.OS === 'ios') ? <Icon name={this.props.selected ? 'ios-radio-button-on' : 'ios-radio-button-off-outline'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> : <Icon name={this.props.selected ? 'md-radio-button-on' : 'md-radio-button-off'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> } </s> remove {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>); </s> add {childrenArray.map((child) => { return React.cloneElement(child, this.getChildProps(child)); })} </View>);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.ios.js
(<Icon name='ios-checkmark-outline' style={{color: 'transparent'}} />)
<mask> <Text>{child.props.label}</Text> <mask> {(child.props.value===this.props.selectedValue) ? <mask> (<Icon name="ios-checkmark-outline" />) <mask> : <mask> (<Icon name="ios-checkmark-outline" style={{color: 'transparent'}} />) <mask> } <mask> <mask> </ListItem> <mask> }> <mask> </List> </s> linter rules added and textinput alignment fix </s> remove (<Icon name="ios-checkmark-outline" />) </s> add (<Icon name='ios-checkmark-outline' />) </s> remove {(Platform.OS === 'ios') ? <Icon name={this.props.selected ? "ios-radio-button-on" : "ios-radio-button-off-outline"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> : <Icon name={this.props.selected ? "md-radio-button-on" : "md-radio-button-off"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> } </s> add {(Platform.OS === 'ios') ? <Icon name={this.props.selected ? 'ios-radio-button-on' : 'ios-radio-button-off-outline'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> : <Icon name={this.props.selected ? 'md-radio-button-on' : 'md-radio-button-off'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> } </s> remove <Icon name={(Platform.OS === 'ios') ? "ios-checkmark-outline" : "md-checkmark"} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : "transparent", lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} /> </s> add <Icon name={(Platform.OS === 'ios') ? 'ios-checkmark-outline' : 'md-checkmark'} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : 'transparent', lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} /> </s> remove <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : "large" } /> </s> add <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : 'large' } /> </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); </s> add newChildren.push(<Input key='inp' {...inputProps} />);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.ios.js
<mask> <mask> getInitialStyle() { <mask> return { <mask> picker: { <mask> // alignItems: 'flex-end' <mask> }, <mask> pickerItem: { <mask> <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove // console.log("this.getContextForegroundColor()", this.getContextForegroundColor()); // console.log("this.getTheme().borderWidth", this.getTheme().borderWidth); </s> add </s> remove if(item.type == Icon) { return true; } }); </s> add if(item.type == Icon) { return true; } }); </s> remove return { listItem: { borderBottomWidth: this.getTheme().borderWidth, marginLeft: 15, padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding, paddingLeft: 2, //borderRadius: 1, justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start', flexDirection: this.stackedPresent() ? 'column' : 'row', alignItems: 'center', borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor }, listItemDivider: { borderBottomWidth: this.getTheme().borderWidth, padding: this.getTheme().listItemPadding, backgroundColor: this.getTheme().listDividerBg, justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start', flexDirection: 'row', borderColor: this.getTheme().listBorderColor }, itemText: { fontSize: 16, marginLeft: (this.props.iconLeft) ? 10 : 0, color: this.getContextForegroundColor() }, dividerItemText: { fontSize: 16, fontWeight: '500' }, itemIcon: { fontSize: this.getTheme().iconFontSize, color: this.getContextForegroundColor(), lineHeight: (Platform.OS === 'ios') ? 34 : undefined }, itemNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, alignSelf: 'center', fontWeight: '100', flex: 1, textAlign: 'right' }, itemSubNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, lineHeight: 16 }, thumbnail: { alignSelf: 'center' }, fullImage: { width: 300, height: 300 }, itemButton: {} } } </s> add return { listItem: { borderBottomWidth: this.getTheme().borderWidth, marginLeft: 15, padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding, paddingLeft: 2, justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start', flexDirection: this.stackedPresent() ? 'column' : 'row', alignItems: 'center', borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor }, listItemDivider: { borderBottomWidth: this.getTheme().borderWidth, padding: this.getTheme().listItemPadding, backgroundColor: this.getTheme().listDividerBg, justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start', flexDirection: 'row', borderColor: this.getTheme().listBorderColor }, itemText: { fontSize: 16, marginLeft: (this.props.iconLeft) ? 10 : 0, color: this.getContextForegroundColor() }, dividerItemText: { fontSize: 16, fontWeight: '500' }, itemIcon: { fontSize: this.getTheme().iconFontSize, color: this.getContextForegroundColor(), lineHeight: (Platform.OS === 'ios') ? 34 : undefined }, itemNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, alignSelf: 'center', fontWeight: '100', flex: 1, textAlign: 'right' }, itemSubNote: { fontSize: this.getTheme().listNoteSize, color: this.getTheme().listNoteColor, lineHeight: 16 }, thumbnail: { alignSelf: 'center' }, fullImage: { width: 300, height: 300 }, itemButton: {} } } </s> remove borderColor: this.getTheme().listBorderColor </s> add borderColor: this.getTheme().listBorderColor </s> remove "no-unused-vars": 1 </s> add "no-unused-vars": 1, "quotes": ["error", "single"], "no-multi-spaces": 1
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.js
<Picker.Item {...this.props()}/> );
<mask> PickerNB.Item = React.createClass({ <mask> <mask> render: function() { <mask> return( <mask> <Picker.Item {...this.props()}/> <mask> ); <mask> } <mask> }); </s> linter rules added and textinput alignment fix </s> remove ); </s> add ); </s> remove }); console.log("title", ); </s> add }); </s> remove ); </s> add ); </s> remove render() { return( </s> add render() { return( </s> remove ); </s> add );
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Picker.js
import ProgressBar from 'ProgressBarAndroid';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React from 'react'; <mask> import ProgressBar from "ProgressBarAndroid"; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class SpinnerNB extends NativeBaseComponent { </s> linter rules added and textinput alignment fix </s> remove import Text from "./Text"; </s> add import Text from './Text'; </s> remove import Text from "./Text"; import View from "./View"; </s> add import Text from './Text'; import View from './View'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Button from "./Button"; import View from "./View"; import Title from "./Title"; import InputGroup from "./InputGroup"; import Subtitle from "./Subtitle"; </s> add import Button from './Button'; import View from './View'; import Title from './Title'; import InputGroup from './InputGroup'; import Subtitle from './Subtitle';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ProgressBar.android.js
<ProgressBar {...this.prepareRootProps()} styleAttr = 'Horizontal' indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} />
<mask> <mask> <mask> render() { <mask> return( <mask> <ProgressBar {...this.prepareRootProps()} styleAttr = "Horizontal" <mask> indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} <mask> color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : <mask> this.getTheme().defaultProgressColor} /> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> add render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> remove <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : "large" } /> </s> add <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : 'large' } /> </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity> </s> add <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity> </s> remove render() { return( </s> add render() { return(
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ProgressBar.android.js
render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); }
<mask> export default class ProgressBarNB extends NativeBaseComponent { <mask> <mask> <mask> <mask> render() { <mask> return( <mask> <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} <mask> progressTintColor={ this.props.color ? this.props.color : <mask> this.props.inverse ? this.getTheme().inverseProgressColor : <mask> this.getTheme().defaultProgressColor} /> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <ProgressBar {...this.prepareRootProps()} styleAttr = "Horizontal" indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> </s> add <ProgressBar {...this.prepareRootProps()} styleAttr = 'Horizontal' indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> </s> remove <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : "large" } /> </s> add <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : 'large' } /> </s> remove // console.log("this.getContextForegroundColor()", this.getContextForegroundColor()); // console.log("this.getTheme().borderWidth", this.getTheme().borderWidth); </s> add </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/ProgressBar.ios.js
import Icon from './Icon';
<mask> <mask> import React from 'react'; <mask> import {View, Platform} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import Icon from "./Icon"; <mask> <mask> export default class Radio extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> return { </s> linter rules added and textinput alignment fix </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Text from "./Text"; </s> add import Text from './Text'; </s> remove import Text from "./Text"; import View from "./View"; </s> add import Text from './Text'; import View from './View'; </s> remove import Button from "./Button"; import View from "./View"; import Title from "./Title"; import InputGroup from "./InputGroup"; import Subtitle from "./Subtitle"; </s> add import Button from './Button'; import View from './View'; import Title from './Title'; import InputGroup from './InputGroup'; import Subtitle from './Subtitle'; </s> remove import ProgressBar from "ProgressBarAndroid"; </s> add import ProgressBar from 'ProgressBarAndroid';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Radio.js
{(Platform.OS === 'ios') ? <Icon name={this.props.selected ? 'ios-radio-button-on' : 'ios-radio-button-off-outline'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> : <Icon name={this.props.selected ? 'md-radio-button-on' : 'md-radio-button-off'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> }
<mask> <mask> render() { <mask> return( <mask> <View > <mask> {(Platform.OS === 'ios') ? <mask> <Icon name={this.props.selected ? "ios-radio-button-on" : "ios-radio-button-off-outline"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} /> <mask> : <mask> <Icon name={this.props.selected ? "md-radio-button-on" : "md-radio-button-off"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} /> <mask> } <mask> </View> <mask> ); <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove <Icon name={(Platform.OS === 'ios') ? "ios-checkmark-outline" : "md-checkmark"} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : "transparent", lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} /> </s> add <Icon name={(Platform.OS === 'ios') ? 'ios-checkmark-outline' : 'md-checkmark'} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : 'transparent', lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} /> </s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor, </s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor, </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> add render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> remove <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : "large" } /> </s> add <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : 'large' } />
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Radio.js
<ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseSpinnerColor : this.getTheme().defaultSpinnerColor} size={this.props.size ? this.props.size : 'large' } />
<mask> <mask> <mask> render() { <mask> return( <mask> <ActivityIndicator {...this.prepareRootProps()} color={this.props.color ? this.props.color : this.props.inverse ? <mask> this.getTheme().inverseSpinnerColor : <mask> this.getTheme().defaultSpinnerColor} <mask> size={this.props.size ? this.props.size : "large" } /> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <ProgressBar {...this.prepareRootProps()} styleAttr = "Horizontal" indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> </s> add <ProgressBar {...this.prepareRootProps()} styleAttr = 'Horizontal' indeterminate = {false} progress={this.props.progress ? this.props.progress/100 : 0.5} color={this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> </s> remove render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> add render() { return( <ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5} progressTintColor={ this.props.color ? this.props.color : this.props.inverse ? this.getTheme().inverseProgressColor : this.getTheme().defaultProgressColor} /> ); } </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity> </s> add <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity> </s> remove render() { return( </s> add render() { return(
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Spinner.js
<ScrollableTabView {...this.prepareRootProps()} > {this.props.children} </ScrollableTabView>
<mask> } <mask> <mask> render() { <mask> return( <mask> <ScrollableTabView {...this.prepareRootProps()} > <mask> {this.props.children} <mask> </ScrollableTabView> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} > </s> remove render() { return( </s> add render() { return( </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove } </s> add </s> remove <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity> </s> add <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} > {this.renderChildren()} </TouchableOpacity>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Tabs.js
<mask> <mask> export default class Textarea extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> // console.log("this.getContextForegroundColor()", this.getContextForegroundColor()); <mask> // console.log("this.getTheme().borderWidth", this.getTheme().borderWidth); <mask> return { <mask> input: { <mask> height: this.props.rowSpan*25, <mask> color: this.getTheme().textColor, <mask> paddingLeft: 5, </s> linter rules added and textinput alignment fix </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon'; </s> remove // alignItems: 'flex-end' </s> add </s> remove import Text from "./Text"; </s> add import Text from './Text'; </s> remove import ProgressBar from "ProgressBarAndroid"; </s> add import ProgressBar from 'ProgressBarAndroid';
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Textarea.js
<TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' />
<mask> render() { <mask> <mask> return ( <mask> <View style={{ flex: 1, borderColor: this.getContextForegroundColor(),borderBottomWidth: this.getTheme().borderWidth }}> <mask> <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> <mask> </View> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove ); </s> add ); </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove render() { return( </s> add render() { return( </s> remove else </s> add else { </s> remove {this.renderChildren()} </s> add {this.renderChildren()}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Textarea.js
);
<mask> return ( <mask> <View style={{ flex: 1, borderColor: this.getContextForegroundColor(),borderBottomWidth: this.getTheme().borderWidth }}> <mask> <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> <mask> </View> <mask> ); <mask> } <mask> <mask> } </s> linter rules added and textinput alignment fix </s> remove <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> add <TextInput {...this.prepareRootProps()} multiline={true} placeholderTextColor={ this.getTheme().inputColorPlaceholder} underlineColorAndroid='rgba(0,0,0,0)' /> </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove else </s> add else { </s> remove enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> add enableEmptySections={true} dataSource={dataSource} renderRow={this.props.renderRow} /> </s> remove {this.renderChildren()} </s> add {this.renderChildren()}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Textarea.js
);
<mask> <mask> render() { <mask> return( <mask> <Image {...this.prepareRootProps()}/> <mask> ); <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove render() { return( </s> add render() { return( </s> remove ); </s> add ); </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove <TouchableOpacity {...this.prepareRootProps()} > </s> add <TouchableOpacity {...this.prepareRootProps()} > </s> remove ); </s> add );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Thumbnail.js
import Text from './Text'; import View from './View';
<mask> <mask> import React from 'react'; <mask> import { Platform } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import Text from "./Text"; <mask> import View from "./View"; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class Title extends NativeBaseComponent { <mask> </s> linter rules added and textinput alignment fix </s> remove import Text from "./Text"; </s> add import Text from './Text'; </s> remove import Button from "./Button"; import View from "./View"; import Title from "./Title"; import InputGroup from "./InputGroup"; import Subtitle from "./Subtitle"; </s> add import Button from './Button'; import View from './View'; import Title from './Title'; import InputGroup from './InputGroup'; import Subtitle from './Subtitle'; </s> remove import View from "./View"; import Text from "./Text"; import List from "./List"; import Icon from "./Icon"; import Container from "./Container"; import Content from "./Content"; import ListItem from "./ListItem"; import Button from "./Button"; import Header from "./Header"; import Title from "./Title"; import _ from "lodash"; </s> add import View from './View'; import Text from './Text'; import List from './List'; import Icon from './Icon'; import Container from './Container'; import Content from './Content'; import ListItem from './ListItem'; import Button from './Button'; import Header from './Header'; import Title from './Title'; import _ from 'lodash'; </s> remove import ProgressBar from "ProgressBarAndroid"; </s> add import ProgressBar from 'ProgressBarAndroid'; </s> remove import Icon from "./Icon"; </s> add import Icon from './Icon';
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Title.js
);
<mask> <mask> render() { <mask> return( <mask> <View style={{justifyContent: 'center'}}><Text {...this.prepareRootProps()}>{this.props.children}</Text></View> <mask> ); <mask> } <mask> } </s> linter rules added and textinput alignment fix </s> remove render() { return( </s> add render() { return( </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove ); </s> add ); </s> remove ); </s> add ); </s> remove } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/Title.js
);
<mask> <mask> render() { <mask> return( <mask> <View style={{padding: (this.props.padder) ? this.getTheme().contentPadding : 0, flex: 1}} {...this.props}></View> <mask> ); <mask> } <mask> } <mask> </s> linter rules added and textinput alignment fix </s> remove render() { return( </s> add render() { return( </s> remove ); </s> add ); </s> remove {this.renderChildren()} </s> add {this.renderChildren()} </s> remove return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> add return ( <View style={{ flex: 1}}> <TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' /> </View> ); } </s> remove ); </s> add );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600
Components/Widgets/View.js
import { TouchableOpacity, Platform, TouchableOpacityProps, } from 'react-native';
<mask> import React, { useContext } from 'react'; <mask> import { TouchableOpacity, Platform } from 'react-native'; <mask> import { mergeRefs } from './../../../utils'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { Center } from '../../composites/Center'; <mask> import { <mask> FormControlContext, </s> fix: checkbox v3 - cleanup </s> remove import { Box } from '..'; </s> add import Box from '../Box'; </s> remove let ref1 = React.useRef(); const ref2 = mergeRefs([ref, ref1]); </s> add let _ref = React.useRef(); const mergedRef = mergeRefs([ref, _ref]); </s> remove ref2 </s> add mergedRef
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a150c45b2cb8c9bca47d1d051528f7dc240c3bf
src/components/primitives/Checkbox/Checkbox.tsx
let _ref = React.useRef(); const mergedRef = mergeRefs([ref, _ref]);
<mask> ...checkboxGroupContext, <mask> ...formControlContext, <mask> ...props, <mask> }); <mask> let ref1 = React.useRef(); <mask> const ref2 = mergeRefs([ref, ref1]); <mask> let state = useToggleState({ ...props, isSelected: props.isChecked }); <mask> let groupState = useContext(CheckboxGroupContext); <mask> const { isHovered } = useHover({}, ref1); <mask> <mask> // Swap hooks depending on whether this checkbox is inside a CheckboxGroup. </s> fix: checkbox v3 - cleanup </s> remove ref2 </s> add mergedRef </s> remove import { Box } from '..'; </s> add import Box from '../Box'; </s> remove import { TouchableOpacity, Platform } from 'react-native'; </s> add import { TouchableOpacity, Platform, TouchableOpacityProps, } from 'react-native';
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a150c45b2cb8c9bca47d1d051528f7dc240c3bf
src/components/primitives/Checkbox/Checkbox.tsx
mergedRef
<mask> useCheckbox( <mask> props, <mask> state, <mask> //@ts-ignore <mask> ref2 <mask> ); <mask> <mask> const isChecked = inputProps.checked; <mask> const isDisabled = inputProps.disabled; <mask> const sizedIcon = icon </s> fix: checkbox v3 - cleanup </s> remove let ref1 = React.useRef(); const ref2 = mergeRefs([ref, ref1]); </s> add let _ref = React.useRef(); const mergedRef = mergeRefs([ref, _ref]); </s> remove import { Box } from '..'; </s> add import Box from '../Box'; </s> remove import { TouchableOpacity, Platform } from 'react-native'; </s> add import { TouchableOpacity, Platform, TouchableOpacityProps, } from 'react-native';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a150c45b2cb8c9bca47d1d051528f7dc240c3bf
src/components/primitives/Checkbox/Checkbox.tsx
import Box from '../Box';
<mask> FormControlContext, <mask> IFormControlContext, <mask> } from '../../composites/FormControl'; <mask> import type { ICheckboxGroupProps, ICheckboxContext } from './types'; <mask> import { Box } from '..'; <mask> <mask> export let CheckboxGroupContext = createContext<ICheckboxContext | null>(null); <mask> <mask> export function CheckboxGroup({ <mask> size, </s> fix: checkbox v3 - cleanup </s> remove import { TouchableOpacity, Platform } from 'react-native'; </s> add import { TouchableOpacity, Platform, TouchableOpacityProps, } from 'react-native'; </s> remove let ref1 = React.useRef(); const ref2 = mergeRefs([ref, ref1]); </s> add let _ref = React.useRef(); const mergedRef = mergeRefs([ref, _ref]); </s> remove ref2 </s> add mergedRef
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a150c45b2cb8c9bca47d1d051528f7dc240c3bf
src/components/primitives/Checkbox/CheckboxGroup.tsx
},__source:{fileName:_jsxFileName,lineNumber:67}},
<mask> visible:this.state.modalVisible, <mask> onRequestClose:function onRequestClose(){ <mask> _this2.state.callback(_this2.state.cancelButtonIndex); <mask> _this2.setState({modalVisible:false}); <mask> },__source:{fileName:_jsxFileName,lineNumber:66}}, <mask> <mask> _react2.default.createElement(_reactNative.TouchableOpacity,{ <mask> activeOpacity:1, <mask> onPress:function onPress(){ <mask> _this2.state.callback(_this2.state.cancelButtonIndex); </s> ActionSheet: Fixed as per design guidelines </s> remove style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:104}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:110}},item)): </s> add style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)): </s> remove style:{borderColor:"transparent"}, icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, </s> add style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}}, </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
<mask> }, <mask> style:{ <mask> backgroundColor:"rgba(0,0,0,0.4)", <mask> flex:1, <mask> justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, <mask> <mask> <mask> _react2.default.createElement(_reactNative.TouchableOpacity,{ <mask> activeOpacity:1, <mask> style:{ </s> ActionSheet: Fixed as per design guidelines </s> remove },__source:{fileName:_jsxFileName,lineNumber:66}}, </s> add },__source:{fileName:_jsxFileName,lineNumber:67}}, </s> remove style:{borderColor:"transparent"}, icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, </s> add style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}}, </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2, </s> remove _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, </s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
minHeight:56,
<mask> activeOpacity:1, <mask> style:{ <mask> backgroundColor:"#fff", <mask> height:this.state.length*80, <mask> maxHeight:_reactNative.Dimensions.get("window").height/2, <mask> padding:15, <mask> elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}}, </s> ActionSheet: Fixed as per design guidelines </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2, </s> remove elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, </s> add elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}}, </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove },__source:{fileName:_jsxFileName,lineNumber:66}}, </s> add },__source:{fileName:_jsxFileName,lineNumber:67}}, </s> remove this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, </s> add this.state.title? _react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title): null,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
maxHeight:_reactNative.Dimensions.get("window").height/2,
<mask> activeOpacity:1, <mask> style:{ <mask> backgroundColor:"#fff", <mask> height:this.state.length*80, <mask> maxHeight:"100%", <mask> padding:15, <mask> elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, <mask> <mask> <mask> this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, </s> ActionSheet: Fixed as per design guidelines </s> remove elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, </s> add elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}}, </s> remove this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, </s> add this.state.title? _react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title): null, </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, </s> add style:{ marginHorizontal:-15, marginTop:this.state.title?15:0},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}},
<mask> backgroundColor:"#fff", <mask> height:this.state.length*80, <mask> maxHeight:"100%", <mask> padding:15, <mask> elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, <mask> <mask> <mask> this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, <mask> _react2.default.createElement(_reactNative.FlatList,{ <mask> style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, </s> ActionSheet: Fixed as per design guidelines </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2, </s> remove this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, </s> add this.state.title? _react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title): null, </s> remove style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, </s> add style:{ marginHorizontal:-15, marginTop:this.state.title?15:0}, </s> remove export { StyledActionSheetContainer as ActionSheetContainer }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
this.state.title? _react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title): null,
<mask> padding:15, <mask> elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, <mask> <mask> <mask> this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, <mask> _react2.default.createElement(_reactNative.FlatList,{ <mask> style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, <mask> data:this.state.items, <mask> keyExtractor:function keyExtractor(item,index){return String(index);}, <mask> renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item; </s> ActionSheet: Fixed as per design guidelines </s> remove style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, </s> add style:{ marginHorizontal:-15, marginTop:this.state.title?15:0}, </s> remove elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, </s> add elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}}, </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2, </s> remove export { StyledActionSheetContainer as ActionSheetContainer }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
style:{ marginHorizontal:-15, marginTop:this.state.title?15:0},
<mask> <mask> <mask> this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, <mask> _react2.default.createElement(_reactNative.FlatList,{ <mask> style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, <mask> data:this.state.items, <mask> keyExtractor:function keyExtractor(item,index){return String(index);}, <mask> renderItem:function renderItem(_ref){var index=_ref.index,item=_ref.item; <mask> return typeof _this2.state.items[0]==="string"? <mask> _react2.default.createElement(_ListItem.ListItem,{ </s> ActionSheet: Fixed as per design guidelines </s> remove this.state.title?_react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:97}},this.state.title):null, </s> add this.state.title? _react2.default.createElement(_Text.Text,{style:{color:"#757575"},__source:{fileName:_jsxFileName,lineNumber:100}},this.state.title): null, </s> remove elevation:4},__source:{fileName:_jsxFileName,lineNumber:87}}, </s> add elevation:4},__source:{fileName:_jsxFileName,lineNumber:88}}, </s> remove style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:104}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:110}},item)): </s> add style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)): </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
<mask> onPress:function onPress(){ <mask> _this2.state.callback(parseInt(index)); <mask> _this2.setState({modalVisible:false}); <mask> }, <mask> style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:104}}, <mask> _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:110}},item)): <mask> <mask> <mask> _react2.default.createElement(_ListItem.ListItem,{ <mask> onPress:function onPress(){ <mask> _this2.state.callback(parseInt(index)); </s> ActionSheet: Fixed as per design guidelines </s> remove style:{borderColor:"transparent"}, icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, </s> add style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}}, </s> remove },__source:{fileName:_jsxFileName,lineNumber:66}}, </s> add },__source:{fileName:_jsxFileName,lineNumber:67}}, </s> remove style:{marginHorizontal:-15,marginTop:this.state.title?15:0}, </s> add style:{ marginHorizontal:-15, marginTop:this.state.title?15:0}, </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, </s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}},
<mask> onPress:function onPress(){ <mask> _this2.state.callback(parseInt(index)); <mask> _this2.setState({modalVisible:false}); <mask> }, <mask> style:{borderColor:"transparent"}, <mask> icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, <mask> <mask> _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, <mask> _react2.default.createElement(_Icon.Icon,{ <mask> name:item.icon, <mask> style:{ </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, </s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}}, </s> remove style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:104}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:110}},item)): </s> add style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)): </s> remove color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), </s> add color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})), </s> remove },__source:{fileName:_jsxFileName,lineNumber:66}}, </s> add },__source:{fileName:_jsxFileName,lineNumber:67}}, </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
<mask> }, <mask> style:{borderColor:"transparent"}, <mask> icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, <mask> <mask> _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, <mask> _react2.default.createElement(_Icon.Icon,{ <mask> name:item.icon, <mask> style:{ <mask> color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), <mask> </s> ActionSheet: Fixed as per design guidelines </s> remove style:{borderColor:"transparent"}, icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, </s> add style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}}, </s> remove color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), </s> add color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})), </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> add _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), </s> remove style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:104}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:110}},item)): </s> add style:{borderColor:"transparent",marginLeft:14},__source:{fileName:_jsxFileName,lineNumber:111}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:118}},item)):
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})),
<mask> _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, <mask> _react2.default.createElement(_Icon.Icon,{ <mask> name:item.icon, <mask> style:{ <mask> color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), <mask> <mask> <mask> <mask> _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, <mask> _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, </s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}}, </s> remove _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> add _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), </s> remove style:{borderColor:"transparent"}, icon:true,__source:{fileName:_jsxFileName,lineNumber:113}}, </s> add style:{ borderColor:"transparent", marginLeft:14, height:50}, icon:true,__source:{fileName:_jsxFileName,lineNumber:121}}, </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); </s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}})); </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
_react2.default.createElement(_Body.Body,{ style:{borderColor:"transparent",paddingLeft:7},__source:{fileName:_jsxFileName,lineNumber:141}},
<mask> <mask> <mask> <mask> <mask> _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), <mask> <mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}})); </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); </s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}})); </s> remove _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> add _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}}, </s> remove maxHeight:"100%", </s> add maxHeight:_reactNative.Dimensions.get("window").height/2,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
_react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)),
<mask> color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), <mask> <mask> <mask> <mask> _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, <mask> _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), <mask> <mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); <mask> <mask> <mask> },__source:{fileName:_jsxFileName,lineNumber:98}}))))); </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); </s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}})); </s> remove color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), </s> add color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})), </s> remove },__source:{fileName:_jsxFileName,lineNumber:98}}))))); </s> add },__source:{fileName:_jsxFileName,lineNumber:102}}))))); </s> remove _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:121}}, </s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:133}},
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}}));
<mask> <mask> _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, <mask> _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), <mask> <mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); <mask> <mask> <mask> },__source:{fileName:_jsxFileName,lineNumber:98}}))))); <mask> <mask> </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> add _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), </s> remove },__source:{fileName:_jsxFileName,lineNumber:98}}))))); </s> add },__source:{fileName:_jsxFileName,lineNumber:102}}))))); </s> remove color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:122}})), </s> add color:item.iconColor?item.iconColor:undefined},__source:{fileName:_jsxFileName,lineNumber:134}})), </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
},__source:{fileName:_jsxFileName,lineNumber:102}})))));
<mask> <mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); <mask> <mask> <mask> },__source:{fileName:_jsxFileName,lineNumber:98}}))))); <mask> <mask> <mask> <mask> <mask> </s> ActionSheet: Fixed as per design guidelines </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:132}})); </s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:146}})); </s> remove _react2.default.createElement(_Body.Body,{style:{borderColor:"transparent"},__source:{fileName:_jsxFileName,lineNumber:129}}, _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:130}},item.text)), </s> add _react2.default.createElement(_Text.Text,{__source:{fileName:_jsxFileName,lineNumber:144}},item.text)), </s> remove justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:75}}, </s> add justifyContent:"flex-end"},__source:{fileName:_jsxFileName,lineNumber:76}},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
dist/src/basic/Actionsheet.js
FlatList, Dimensions
<mask> Platform, <mask> ActionSheetIOS, <mask> TouchableOpacity, <mask> ViewPropTypes, <mask> FlatList <mask> } from "react-native"; <mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import { Text } from "./Text"; <mask> import { Button } from "./Button"; <mask> import { ViewNB } from "./View"; </s> ActionSheet: Fixed as per design guidelines </s> remove callback: callback, </s> add callback: callback </s> remove items: [], </s> add items: [] </s> remove export { StyledActionSheetContainer as ActionSheetContainer }; </s> add </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
items: []
<mask> constructor(props) { <mask> super(props); <mask> this.state = { <mask> modalVisible: false, <mask> items: [], <mask> }; <mask> } <mask> static actionsheetInstance; <mask> static show(config, callback) { <mask> this.actionsheetInstance._root.showActionSheet(config, callback); </s> ActionSheet: Fixed as per design guidelines </s> remove callback: callback, </s> add callback: callback </s> remove FlatList </s> add FlatList, Dimensions </s> remove export { StyledActionSheetContainer as ActionSheetContainer }; </s> add </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
callback: callback
<mask> message: config.message, <mask> destructiveButtonIndex: config.destructiveButtonIndex, <mask> cancelButtonIndex: config.cancelButtonIndex, <mask> modalVisible: true, <mask> callback: callback, <mask> }); <mask> } <mask> } <mask> componentDidMount() { <mask> if (!this.props.autoHide && this.props.duration) { </s> ActionSheet: Fixed as per design guidelines </s> remove FlatList </s> add FlatList, Dimensions </s> remove items: [], </s> add items: [] </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove export { StyledActionSheetContainer as ActionSheetContainer }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
minHeight: 56,
<mask> <TouchableOpacity <mask> activeOpacity={1} <mask> style={{ <mask> backgroundColor: "#fff", <mask> height: this.state.length * 80, <mask> maxHeight: Dimensions.get("window").height / 2, <mask> padding: 15, <mask> elevation: 4 </s> ActionSheet: Fixed as per design guidelines </s> remove maxHeight: "100%", </s> add maxHeight: Dimensions.get("window").height / 2, </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> ); </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} >
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
maxHeight: Dimensions.get("window").height / 2,
<mask> activeOpacity={1} <mask> style={{ <mask> backgroundColor: "#fff", <mask> height: this.state.length * 80, <mask> maxHeight: "100%", <mask> padding: 15, <mask> elevation: 4 <mask> }} <mask> > <mask> {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> ActionSheet: Fixed as per design guidelines </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
{this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null}
<mask> padding: 15, <mask> elevation: 4 <mask> }} <mask> > <mask> {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} <mask> <FlatList <mask> style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} <mask> data={this.state.items} <mask> keyExtractor={(item, index) => String(index)} <mask> renderItem={({ index, item }) => { </s> ActionSheet: Fixed as per design guidelines </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove maxHeight: "100%", </s> add maxHeight: Dimensions.get("window").height / 2, </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }}
<mask> }} <mask> > <mask> {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} <mask> <FlatList <mask> style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} <mask> data={this.state.items} <mask> keyExtractor={(item, index) => String(index)} <mask> renderItem={({ index, item }) => { <mask> return typeof this.state.items[0] === "string" ? ( <mask> <ListItem </s> ActionSheet: Fixed as per design guidelines </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove maxHeight: "100%", </s> add maxHeight: Dimensions.get("window").height / 2, </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
style={{ borderColor: "transparent", marginLeft: 14 }} >
<mask> onPress={() => { <mask> this.state.callback(parseInt(index)); <mask> this.setState({ modalVisible: false }); <mask> }} <mask> style={{ borderColor: "transparent" }}> <mask> <Text>{item}</Text> <mask> </ListItem> <mask> ) : ( <mask> <ListItem <mask> onPress={() => { </s> ActionSheet: Fixed as per design guidelines </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> ); </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove callback: callback, </s> add callback: callback
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
<ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }}
<mask> style={{ borderColor: "transparent" }}> <mask> <Text>{item}</Text> <mask> </ListItem> <mask> ) : ( <mask> <ListItem <mask> onPress={() => { <mask> this.state.callback(parseInt(index)); <mask> this.setState({ modalVisible: false }); <mask> }} <mask> style={{ borderColor: "transparent" }} <mask> icon <mask> > <mask> <Left> <mask> <Icon <mask> name={item.icon} <mask> style={{ </s> ActionSheet: Fixed as per design guidelines </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent" }}> <Text>{item.text}</Text> </Body> <Right /> </ListItem> ) </s> add <Text>{item.text}</Text> </Body> <Right /> </ListItem> ); </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove maxHeight: "100%", </s> add maxHeight: Dimensions.get("window").height / 2,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js
<Text>{item.text}</Text> </Body> <Right /> </ListItem> );
<mask> }} <mask> style={{ borderColor: "transparent" }} <mask> icon <mask> > <mask> <Left> <mask> <Icon <mask> name={item.icon} <mask> style={{ <mask> color: item.iconColor ? item.iconColor : undefined <mask> }} <mask> /> <mask> </Left> <mask> <Body style={{ borderColor: "transparent" }}> <mask> <Text>{item.text}</Text> <mask> </Body> <mask> <Right /> <mask> </ListItem> <mask> ) <mask> }} <mask> /> <mask> </TouchableOpacity> <mask> </TouchableOpacity> <mask> </Modal> </s> ActionSheet: Fixed as per design guidelines </s> remove <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent" }} icon </s> add <ListItem onPress={() => { this.state.callback(parseInt(index)); this.setState({ modalVisible: false }); }} style={{ borderColor: "transparent", marginLeft: 14, height: 50 }} icon > <Left> <Icon name={item.icon} style={{ color: item.iconColor ? item.iconColor : undefined }} /> </Left> <Body style={{ borderColor: "transparent", paddingLeft: 7 }} </s> remove style={{ borderColor: "transparent" }}> </s> add style={{ borderColor: "transparent", marginLeft: 14 }} > </s> remove {this.state.title ? <Text style={{ color: "#757575" }}>{this.state.title}</Text> : null} </s> add {this.state.title ? ( <Text style={{ color: "#757575" }}>{this.state.title}</Text> ) : null} </s> remove style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> add style={{ marginHorizontal: -15, marginTop: this.state.title ? 15 : 0 }} </s> remove maxHeight: "100%", </s> add maxHeight: Dimensions.get("window").height / 2,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca
src/basic/Actionsheet.js