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 |
|---|---|---|---|---|
"format": "prettier --write \"src/**/*.{js,json}\"", | <mask> "scripts": {
<mask> "compile": "rm -rf dist/* && babel . --out-dir dist --ignore node_modules,dist --source-maps ",
<mask> "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon",
<mask> "prepublish": "npm run transpile",
<mask> "postinstall": "node addEjectScript.js",
<mask> "flow": "flow"
</s> chore(): adss format script and formats files </s> remove // We do this annoying if statement for performance.
// We don't want the onLayout func to run after it runs once.
</s> add // We do this annoying if statement for performance.
// We don't want the onLayout func to run after it runs once. </s> remove manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension,
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
});
</s> add manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
}); </s> remove if (style && typeof style === "object" && styleName !== "fontVariant" && styleName !== "transform") {
</s> add if (
style &&
typeof style === "object" &&
styleName !== "fontVariant" &&
styleName !== "transform"
) { </s> remove onBlur={(e) => {
</s> add onBlur={e => { </s> remove onBlur={(e) => {
</s> add onBlur={e => { | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | package.json |
"prettier": "1.16.4", | <mask> "typings": "./index.d.ts",
<mask> "optionalDependencies": {},
<mask> "peerDependencies": {
<mask> "react": ">=16.4.1",
<mask> "react-native": ">=0.56.0"
<mask> },
<mask> "readmeFilename": "README.md",
<mask> "repository": {
</s> chore(): adss format script and formats files </s> remove fontSize: 22,
</s> add fontSize: 22 </s> remove '.bordered': {
'.noTopBorder': {
borderTopWidth: 0,
</s> add ".bordered": {
".noTopBorder": {
borderTopWidth: 0 </s> remove const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
</s> add const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); </s> remove '.noTopBorder': {
borderTopWidth: 0,
</s> add ".noTopBorder": {
borderTopWidth: 0 </s> remove '.large': {
</s> add ".large": { | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | package.json |
? this.props.iconStyle
: { color: variables.iconStyle } | <mask> ? this.props.expandedIcon && this.props.expandedIconStyle
<mask> ? this.props.expandedIconStyle
<mask> : { color: variables.expandedIconStyle }
<mask> : this.props.icon && this.props.iconStyle
<mask> ? this.props.iconStyle
<mask> : { color: variables.iconStyle }
<mask> ]}
<mask> name={
<mask> this.props.expanded
<mask> ? this.props.expandedIcon
<mask> ? this.props.expandedIcon
</s> chore(): adss format script and formats files </s> remove ? this.props.icon
: "ios-arrow-down"
</s> add ? this.props.icon
: "ios-arrow-down" </s> remove this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
</s> add this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} </s> remove color: Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid,
</s> add color:
Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid, </s> remove name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
</s> add name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
? this.props.icon
: "ios-arrow-down" | <mask> ? this.props.expandedIcon
<mask> ? this.props.expandedIcon
<mask> : "ios-arrow-up"
<mask> : this.props.icon
<mask> ? this.props.icon
<mask> : "ios-arrow-down"
<mask> }
<mask> />
<mask> </View>
<mask> );
<mask> }
</s> chore(): adss format script and formats files </s> remove ? this.props.iconStyle
: { color: variables.iconStyle }
</s> add ? this.props.iconStyle
: { color: variables.iconStyle } </s> remove <DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)}
</s> add <DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)} </s> remove ? "md-radio-button-on"
: "md-radio-button-off"
</s> add ? "md-radio-button-on"
: "md-radio-button-off" </s> remove ? 10
: 0,
</s> add ? 10
: 0, </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
<DefaultHeader
title={this.props.item.title}
expanded={this.props.expanded}
headerStyle={this.props.headerStyle}
icon={this.props.icon}
iconStyle={this.props.iconStyle}
expandedIcon={this.props.expandedIcon}
expandedIconStyle={this.props.expandedIconStyle}
/>
)} | <mask> <View>
<mask> {this.props.renderHeader ? (
<mask> this.props.renderHeader(this.props.item, this.props.expanded)
<mask> ) : (
<mask> <DefaultHeader
<mask> title={this.props.item.title}
<mask> expanded={this.props.expanded}
<mask> headerStyle={this.props.headerStyle}
<mask> icon={this.props.icon}
<mask> iconStyle={this.props.iconStyle}
<mask> expandedIcon={this.props.expandedIcon}
<mask> expandedIconStyle={this.props.expandedIconStyle}
<mask> />
<mask> )}
<mask> </View>
<mask> </TouchableWithoutFeedback>
<mask> {this.props.expanded ? (
<mask> <AccordionSubItem>
<mask> {this.props.renderContent ? (
</s> chore(): adss format script and formats files </s> remove <DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)}
</s> add <DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)} </s> remove <Radio selected={false} />
)}
</s> add <Radio selected={false} />
)} </s> remove <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </s> remove variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
</s> add variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}> </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
<DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)} | <mask> <AccordionSubItem>
<mask> {this.props.renderContent ? (
<mask> this.props.renderContent(this.props.item)
<mask> ) : (
<mask> <DefaultContent
<mask> content={this.props.item.content}
<mask> contentStyle={this.props.contentStyle}
<mask> />
<mask> )}
<mask> </AccordionSubItem>
<mask> ) : null}
<mask> </View>
<mask> );
<mask> }
</s> chore(): adss format script and formats files </s> remove <DefaultHeader
title={this.props.item.title}
expanded={this.props.expanded}
headerStyle={this.props.headerStyle}
icon={this.props.icon}
iconStyle={this.props.iconStyle}
expandedIcon={this.props.expandedIcon}
expandedIconStyle={this.props.expandedIconStyle}
/>
)}
</s> add <DefaultHeader
title={this.props.item.title}
expanded={this.props.expanded}
headerStyle={this.props.headerStyle}
icon={this.props.icon}
iconStyle={this.props.iconStyle}
expandedIcon={this.props.expandedIcon}
expandedIconStyle={this.props.expandedIconStyle}
/>
)} </s> remove <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </s> remove <Radio selected={false} />
)}
</s> add <Radio selected={false} />
)} </s> remove </TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}>
{this.renderFab()}
</View>
</TouchableNativeFeedback>
)}
</s> add </View>
</TouchableNativeFeedback>
)} </s> remove <Animated.View
{...this._panResponder.panHandlers}
onLayout={e => this.onContentLayout(e)}
style={{
transform: [{ translateX: this._translateX }],
zIndex: 2,
}}
>
{!this.props.list
? <ListItem list style={this.props.style}>
{this.props.body}
</ListItem>
: <View style={[{ backgroundColor: '#FFF' },this.props.style]}>
{this.props.body}
</View>}
</Animated.View>
</s> add <Animated.View
{...this._panResponder.panHandlers}
onLayout={e => this.onContentLayout(e)}
style={{
transform: [{ translateX: this._translateX }],
zIndex: 2
}}
>
{!this.props.list ? (
<ListItem list style={this.props.style}>
{this.props.body}
</ListItem>
) : (
<View style={[{ backgroundColor: "#FFF" }, this.props.style]}>
{this.props.body}
</View>
)}
</Animated.View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
foregroundColor: PropTypes.string | <mask>
<mask> export default class NativeBaseComponent extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> static propTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
</s> chore(): adss format script and formats files </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
foregroundColor: PropTypes.string | <mask> };
<mask>
<mask> static propTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> static childContextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
</s> chore(): adss format script and formats files </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
foregroundColor: PropTypes.string | <mask> };
<mask>
<mask> static childContextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> getChildContext() {
<mask> return {
<mask> theme: this.props.theme ? this.props.theme : this.context.theme,
</s> chore(): adss format script and formats files </s> remove theme: this.props.theme ? this.props.theme : this.context.theme,
</s> add theme: this.props.theme ? this.props.theme : this.context.theme </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
theme: this.props.theme ? this.props.theme : this.context.theme | <mask> };
<mask>
<mask> getChildContext() {
<mask> return {
<mask> theme: this.props.theme ? this.props.theme : this.context.theme,
<mask> };
<mask> }
<mask>
<mask> getContextForegroundColor() {
<mask> return this.context.foregroundColor;
</s> chore(): adss format script and formats files </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
if (Array.isArray(this.props.style)) {
const flattenedStyle = this.props.style.reduce(
(accumulator, currentValue) => accumulator.concat(currentValue),
[]
);
return computeProps(
{ ...this.props, style: flattenedStyle },
defaultProps
); | <mask> const defaultProps = {
<mask> style: this.getInitialStyle().borderedBtn
<mask> };
<mask>
<mask> if(Array.isArray(this.props.style)){
<mask> const flattenedStyle = this.props.style.reduce(( accumulator, currentValue ) => accumulator.concat(currentValue), []);
<mask> return computeProps({...this.props, style: flattenedStyle}, defaultProps);
<mask> }
<mask>
<mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
</s> chore(): adss format script and formats files </s> remove style: this.getInitialStyle(variables).checkStyle,
</s> add style: this.getInitialStyle(variables).checkStyle </s> remove style: this.getStyle().textarea,
</s> add style: this.getStyle().textarea </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/> </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
: React.Children.map(this.props.children, child => | <mask> : variable;
<mask> const children =
<mask> Platform.OS === "ios"
<mask> ? this.props.children
<mask> : React.Children.map(
<mask> this.props.children,
<mask> child =>
<mask> child && child.type === Text
<mask> ? React.cloneElement(child, {
<mask> uppercase: variables.btnUppercaseAndroidText,
<mask> ...child.props
<mask> })
</s> chore(): adss format script and formats files </s> remove uppercase: variables.btnUppercaseAndroidText,
...child.props
})
</s> add uppercase: variables.btnUppercaseAndroidText,
...child.props
}) </s> remove );
</s> add ); </s> remove color: Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid,
</s> add color:
Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid, </s> remove lineHeight: Platform.OS === "ios"
? undefined
: variables.radioBtnLineHeight,
</s> add lineHeight:
Platform.OS === "ios" ? undefined : variables.radioBtnLineHeight, </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
uppercase: variables.btnUppercaseAndroidText,
...child.props
}) | <mask> this.props.children,
<mask> child =>
<mask> child && child.type === Text
<mask> ? React.cloneElement(child, {
<mask> uppercase: variables.btnUppercaseAndroidText,
<mask> ...child.props
<mask> })
<mask> : child
<mask> );
<mask> if (
<mask> Platform.OS === "ios" ||
<mask> Platform.OS === "web" ||
</s> chore(): adss format script and formats files </s> remove : React.Children.map(
this.props.children,
child =>
</s> add : React.Children.map(this.props.children, child => </s> remove );
</s> add ); </s> remove lineHeight: Platform.OS === "ios"
? undefined
: variables.radioBtnLineHeight,
</s> add lineHeight:
Platform.OS === "ios" ? undefined : variables.radioBtnLineHeight, </s> remove color: Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid,
</s> add color:
Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid, </s> remove this.setState({ containerWidth: width });
this.requestAnimationFrame(() => {
this.goToPage(this.state.currentPage);
});
</s> add this.setState({ containerWidth: width });
this.requestAnimationFrame(() => {
this.goToPage(this.state.currentPage);
}); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
); | <mask> uppercase: variables.btnUppercaseAndroidText,
<mask> ...child.props
<mask> })
<mask> : child
<mask> );
<mask> if (
<mask> Platform.OS === "ios" ||
<mask> Platform.OS === "web" ||
<mask> variables.androidRipple === false ||
<mask> Platform["Version"] < 21
</s> chore(): adss format script and formats files </s> remove uppercase: variables.btnUppercaseAndroidText,
...child.props
})
</s> add uppercase: variables.btnUppercaseAndroidText,
...child.props
}) </s> remove variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
</s> add variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}> </s> remove : React.Children.map(
this.props.children,
child =>
</s> add : React.Children.map(this.props.children, child => </s> remove platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
</s> add platform === "ios" &&
(deviceHeight === 812 ||
deviceWidth === 812 ||
deviceHeight === 896 ||
deviceWidth === 896); </s> remove platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
</s> add platform === "ios" &&
(deviceHeight === 812 ||
deviceWidth === 812 ||
deviceHeight === 896 ||
deviceWidth === 896); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | <mask> );
<mask> } else {
<mask> if (this.props.rounded) {
<mask> let buttonStyle = { ...this.prepareRootProps().style };
<mask> let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
<mask> return (
<mask> <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> background={
</s> chore(): adss format script and formats files </s> remove <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
</s> add <View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> </s> remove </View >
</s> add </View> </s> remove ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
</s> add ? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> | <mask> if (this.props.rounded) {
<mask> let buttonStyle = { ...this.prepareRootProps().style };
<mask> let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
<mask> return (
<mask> <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> background={
<mask> this.props.androidRippleColor
<mask> ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
</s> chore(): adss format script and formats files </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; </s> remove ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
</s> add ? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) </s> remove </View >
</s> add </View> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) | <mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> background={
<mask> this.props.androidRippleColor
<mask> ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
<mask> : TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
<mask> }
<mask> {...this.prepareRootProps()}
<mask> >
<mask> <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
<mask> {children}
</s> chore(): adss format script and formats files </s> remove <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
</s> add <View
style={[
styles.childContainer,
{
paddingTop: buttonStyle.paddingTop,
paddingBottom: buttonStyle.paddingBottom,
height: buttonStyle.height,
flexGrow: buttonFlex
}
]}
> </s> remove </View >
</s> add </View> </s> remove <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
</s> add <View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> </s> remove background={this.props.transparent ? TouchableNativeFeedback.Ripple('transparent') : TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
</s> add background={
this.props.transparent
? TouchableNativeFeedback.Ripple("transparent")
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)
} </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<View
style={[
styles.childContainer,
{
paddingTop: buttonStyle.paddingTop,
paddingBottom: buttonStyle.paddingBottom,
height: buttonStyle.height,
flexGrow: buttonFlex
}
]}
> | <mask> : TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
<mask> }
<mask> {...this.prepareRootProps()}
<mask> >
<mask> <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
<mask> {children}
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> </View >
<mask> );
</s> chore(): adss format script and formats files </s> remove </View >
</s> add </View> </s> remove ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
</s> add ? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) </s> remove <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
</s> add <View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> </s> remove background={this.props.transparent ? TouchableNativeFeedback.Ripple('transparent') : TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
</s> add background={
this.props.transparent
? TouchableNativeFeedback.Ripple("transparent")
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)
} </s> remove </TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}>
{this.renderFab()}
</View>
</TouchableNativeFeedback>
)}
</s> add </View>
</TouchableNativeFeedback>
)} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
</View> | <mask> <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
<mask> {children}
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> </View >
<mask> );
<mask> } else {
<mask> return (
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
</s> chore(): adss format script and formats files </s> remove <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
</s> add <View
style={[
styles.childContainer,
{
paddingTop: buttonStyle.paddingTop,
paddingBottom: buttonStyle.paddingBottom,
height: buttonStyle.height,
flexGrow: buttonFlex
}
]}
> </s> remove ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
</s> add ? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
background={
this.props.transparent
? TouchableNativeFeedback.Ripple("transparent")
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)
} | <mask> return (
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> onPress={this.props.onPress}
<mask> background={this.props.transparent ? TouchableNativeFeedback.Ripple('transparent') : TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
<mask> {...this.prepareRootProps()}
<mask> >
<mask> <View {...this.prepareRootProps()}>{children}</View>
<mask> </TouchableNativeFeedback>
<mask> );
</s> chore(): adss format script and formats files </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
</s> add ? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) </s> remove </View >
</s> add </View> </s> remove </TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}>
{this.renderFab()}
</View>
</TouchableNativeFeedback>
)}
</s> add </View>
</TouchableNativeFeedback>
)} </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
flexDirection: "row",
justifyContent: "center",
alignItems: "center"
} | <mask>
<mask> const styles = StyleSheet.create({
<mask> childContainer: {
<mask> flexShrink: 1,
<mask> flexDirection: 'row',
<mask> justifyContent: 'center',
<mask> alignItems: 'center'
<mask> },
<mask> });
<mask>
<mask> const StyledButton = connectStyle(
<mask> "NativeBase.Button",
<mask> {},
</s> chore(): adss format script and formats files </s> remove alignItems: 'center',
alignSelf: 'center',
</s> add alignItems: "center",
alignSelf: "center" </s> remove alignSelf: 'center',
alignItems: 'flex-start',
</s> add alignSelf: "center",
alignItems: "flex-start" </s> remove 'NativeBase.Button': {
alignSelf: null,
</s> add "NativeBase.Button": {
alignSelf: null </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | <mask> class CardItem extends Component {
<mask> render() {
<mask> if (this.props.button) {
<mask> return (
<mask> <TouchableOpacity
<mask> ref={c => (this._root = c)}
<mask> activeOpacity={0.2}
<mask> {...this.props}
<mask> >
<mask> {this.props.children}
<mask> </TouchableOpacity>
<mask> );
<mask> } else {
<mask> return (
<mask> <View ref={c => (this._root = c)} {...this.props}>
<mask> {this.props.children}
</s> chore(): adss format script and formats files </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
<View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | <mask> </TouchableOpacity>
<mask> );
<mask> } else {
<mask> return (
<mask> <View ref={c => (this._root = c)} {...this.props}>
<mask> {this.props.children}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove <RNText ref={c => (this._root = c)} {...this.props}>
{text}
</RNText>
</s> add <RNText ref={c => (this._root = c)} {...this.props}>
{text}
</RNText> </s> remove <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> CardItem.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> header: PropTypes.bool,
<mask> cardBody: PropTypes.bool,
<mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool,
<mask> };
</s> chore(): adss format script and formats files </s> remove button: PropTypes.bool,
</s> add button: PropTypes.bool </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove onPress: PropTypes.func,
</s> add onPress: PropTypes.func | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
button: PropTypes.bool | <mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> header: PropTypes.bool,
<mask> cardBody: PropTypes.bool,
<mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
<mask>
<mask> export { StyledCardItem as CardItem };
</s> chore(): adss format script and formats files </s> remove const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
</s> add const StyledCardItem = connectStyle(
"NativeBase.CardItem",
{},
mapPropsToStyleNames
)(CardItem); </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool </s> remove size: PropTypes.number,
</s> add size: PropTypes.number </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
const StyledCardItem = connectStyle(
"NativeBase.CardItem",
{},
mapPropsToStyleNames
)(CardItem); | <mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
<mask>
<mask> export { StyledCardItem as CardItem };
</s> chore(): adss format script and formats files </s> remove button: PropTypes.bool,
</s> add button: PropTypes.bool </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
</s> add const StyledTextarea = connectStyle(
"NativeBase.Textarea",
{},
mapPropsToStyleNames
)(Textarea); </s> remove size: PropTypes.number,
</s> add size: PropTypes.number </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
theme: PropTypes.object | <mask> import computeProps from "../utils/computeProps";
<mask>
<mask> class CheckBox extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getInitialStyle(variables) {
<mask> return {
<mask> checkStyle: {
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
borderColor: this.props.color
? this.props.color
: variables.checkboxBgColor, | <mask>
<mask> getInitialStyle(variables) {
<mask> return {
<mask> checkStyle: {
<mask> borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
<mask> backgroundColor:
<mask> this.props.checked === true
<mask> ? this.props.color ? this.props.color : variables.checkboxBgColor
<mask> : "transparent",
<mask> },
</s> chore(): adss format script and formats files </s> remove ? this.props.color ? this.props.color : variables.checkboxBgColor
: "transparent",
},
</s> add ? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} </s> remove ? this.props.selectedColor
: variables.radioSelectedColorAndroid
: this.props.color
? this.props.color
: undefined,
</s> add : variables.radioSelectedColorAndroid
: this.props.color
? this.props.color
: undefined, </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> </s> remove color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
</s> add color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} | <mask> checkStyle: {
<mask> borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
<mask> backgroundColor:
<mask> this.props.checked === true
<mask> ? this.props.color ? this.props.color : variables.checkboxBgColor
<mask> : "transparent",
<mask> },
<mask> };
<mask> }
<mask>
<mask> prepareRootProps(variables) {
<mask> const defaultProps = {
</s> chore(): adss format script and formats files </s> remove borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
</s> add borderColor: this.props.color
? this.props.color
: variables.checkboxBgColor, </s> remove ? this.props.selectedColor
: variables.radioSelectedColorAndroid
: this.props.color
? this.props.color
: undefined,
</s> add : variables.radioSelectedColorAndroid
: this.props.color
? this.props.color
: undefined, </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> </s> remove color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
</s> add color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", </s> remove style: this.getInitialStyle(variables).checkStyle,
</s> add style: this.getInitialStyle(variables).checkStyle | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
style: this.getInitialStyle(variables).checkStyle | <mask> }
<mask>
<mask> prepareRootProps(variables) {
<mask> const defaultProps = {
<mask> style: this.getInitialStyle(variables).checkStyle,
<mask> };
<mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
</s> chore(): adss format script and formats files </s> remove style: this.getStyle().textarea,
</s> add style: this.getStyle().textarea </s> remove if(Array.isArray(this.props.style)){
const flattenedStyle = this.props.style.reduce(( accumulator, currentValue ) => accumulator.concat(currentValue), []);
return computeProps({...this.props, style: flattenedStyle}, defaultProps);
</s> add if (Array.isArray(this.props.style)) {
const flattenedStyle = this.props.style.reduce(
(accumulator, currentValue) => accumulator.concat(currentValue),
[]
);
return computeProps(
{ ...this.props, style: flattenedStyle },
defaultProps
); </s> remove ? this.props.color ? this.props.color : variables.checkboxBgColor
: "transparent",
},
</s> add ? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask> return (
<mask> <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
<mask> <IconNB
</s> chore(): adss format script and formats files </s> remove <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
{...this.prepareRootProps(variables)}
> </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
<TouchableOpacity
ref={c => (this._root = c)}
{...this.prepareRootProps(variables)}
> | <mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask> return (
<mask> <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
<mask> <IconNB
<mask> style={{
<mask> color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
<mask> fontSize: variables.CheckboxFontSize,
<mask> lineHeight: variables.CheckboxIconSize,
</s> chore(): adss format script and formats files </s> remove color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
</s> add color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", | <mask> return (
<mask> <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
<mask> <IconNB
<mask> style={{
<mask> color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
<mask> fontSize: variables.CheckboxFontSize,
<mask> lineHeight: variables.CheckboxIconSize,
<mask> marginTop: variables.CheckboxIconMarginTop,
<mask> textShadowRadius: 0
<mask> }}
</s> chore(): adss format script and formats files </s> remove <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
{...this.prepareRootProps(variables)}
> </s> remove name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
</s> add name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} | <mask> lineHeight: variables.CheckboxIconSize,
<mask> marginTop: variables.CheckboxIconMarginTop,
<mask> textShadowRadius: 0
<mask> }}
<mask> name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
<mask> />
<mask> </TouchableOpacity>
<mask> );
<mask> }
<mask> }
</s> chore(): adss format script and formats files </s> remove color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
</s> add color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", </s> remove shadowOffset: platformStyle === "material"
? { width: 0, height: 2 }
: undefined,
</s> add shadowOffset:
platformStyle === "material" ? { width: 0, height: 2 } : undefined, </s> remove ? "light-content"
: variables.iosStatusbar
</s> add ? "light-content"
: variables.iosStatusbar </s> remove lineHeight: Platform.OS === "ios"
? undefined
: variables.radioBtnLineHeight,
</s> add lineHeight:
Platform.OS === "ios" ? undefined : variables.radioBtnLineHeight, </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> CheckBox.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
</s> chore(): adss format script and formats files </s> remove onPress: PropTypes.func,
</s> add onPress: PropTypes.func </s> remove const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
</s> add const StyledCheckBox = connectStyle(
"NativeBase.CheckBox",
{},
mapPropsToStyleNames
)(CheckBox); </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
onPress: PropTypes.func | <mask> CheckBox.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
<mask>
<mask> export { StyledCheckBox as CheckBox };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
</s> add const StyledCheckBox = connectStyle(
"NativeBase.CheckBox",
{},
mapPropsToStyleNames
)(CheckBox); </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove size: PropTypes.number,
</s> add size: PropTypes.number </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
const StyledCheckBox = connectStyle(
"NativeBase.CheckBox",
{},
mapPropsToStyleNames
)(CheckBox); | <mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
<mask>
<mask> export { StyledCheckBox as CheckBox };
</s> chore(): adss format script and formats files </s> remove onPress: PropTypes.func,
</s> add onPress: PropTypes.func </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
</s> add const StyledTextarea = connectStyle(
"NativeBase.Textarea",
{},
mapPropsToStyleNames
)(Textarea); </s> remove const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
</s> add const StyledCardItem = connectStyle(
"NativeBase.CardItem",
{},
mapPropsToStyleNames
)(CardItem); </s> remove button: PropTypes.bool,
</s> add button: PropTypes.bool | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
<View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | <mask>
<mask> class Container extends Component {
<mask> render() {
<mask> return (
<mask> <View ref={c => (this._root = c)} {...this.props}>
<mask> {this.props.children}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask>
<mask> Container.propTypes = {
</s> chore(): adss format script and formats files </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove <RNText ref={c => (this._root = c)} {...this.props}>
{text}
</RNText>
</s> add <RNText ref={c => (this._root = c)} {...this.props}>
{text}
</RNText> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Container.propTypes = {
<mask> ...ViewPropTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledContainer = connectStyle("NativeBase.Container", {}, mapPropsToStyleNames)(Container);
<mask>
<mask> export { StyledContainer as Container };
</s> chore(): adss format script and formats files </s> remove const StyledContainer = connectStyle("NativeBase.Container", {}, mapPropsToStyleNames)(Container);
</s> add const StyledContainer = connectStyle(
"NativeBase.Container",
{},
mapPropsToStyleNames
)(Container); </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
const StyledContainer = connectStyle(
"NativeBase.Container",
{},
mapPropsToStyleNames
)(Container); | <mask> ...ViewPropTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledContainer = connectStyle("NativeBase.Container", {}, mapPropsToStyleNames)(Container);
<mask>
<mask> export { StyledContainer as Container };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
paddingRight: this.calculateRight(
this.state.orientation,
variables.Inset
) | <mask> paddingLeft: this.calculateLeft(
<mask> this.state.orientation,
<mask> variables.Inset
<mask> ),
<mask> paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
<mask> }
<mask> ]}
<mask> contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
<mask> >
<mask> {this.props.children}
</s> chore(): adss format script and formats files </s> remove contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
</s> add contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} </s> remove <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
>
{this.props.children}
</KeyboardAwareScrollView>
);
</s> add <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} </s> remove this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
</s> add this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} | <mask> ),
<mask> paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
<mask> }
<mask> ]}
<mask> contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
<mask> >
<mask> {this.props.children}
<mask> </KeyboardAwareScrollView>
<mask> ) : (
<mask> <KeyboardAwareScrollView
</s> chore(): adss format script and formats files </s> remove paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
</s> add paddingRight: this.calculateRight(
this.state.orientation,
variables.Inset
) </s> remove <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
>
{this.props.children}
</KeyboardAwareScrollView>
);
</s> add <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} </s> remove this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
</s> add this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle </s> remove <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddingTop: undefined, paddingBottom: undefined }]} >
</s> add <View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
<KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); | <mask> >
<mask> {this.props.children}
<mask> </KeyboardAwareScrollView>
<mask> ) : (
<mask> <KeyboardAwareScrollView
<mask> automaticallyAdjustContentInsets={false}
<mask> resetScrollToCoords={
<mask> this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
<mask> }
<mask> keyboardShouldPersistTaps={
<mask> this.props.keyboardShouldPersistTaps
<mask> ? this.props.keyboardShouldPersistTaps
<mask> : "handled"
<mask> }
<mask> ref={c => {
<mask> this._scrollview = c;
<mask> this._root = c;
<mask> }}
<mask> {...this.props}
<mask> contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
<mask> >
<mask> {this.props.children}
<mask> </KeyboardAwareScrollView>
<mask> );
<mask> }
<mask> }
<mask>
<mask> Content.propTypes = {
<mask> style: PropTypes.oneOfType([
</s> chore(): adss format script and formats files </s> remove contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
</s> add contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} </s> remove paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
</s> add paddingRight: this.calculateRight(
this.state.orientation,
variables.Inset
) </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
{...this.props}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
{...this.props}
/> </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/> </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"... | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Content);
<mask>
<mask> export { StyledContent as Content }; </s> chore(): adss format script and formats files </s> remove export { StyledHeader as Header }; </s> add </s> remove export { StyledFooter as Footer }; </s> add </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
</s> add const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); </s> remove const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
</s> add const StyledThumbnail = connectStyle(
"NativeBase.Thumbnail",
{},
mapPropsToStyleNames
)(Thumbnail); | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js | |
chosenDate:
!props.placeHolderText && props.defaultDate
? props.defaultDate
: undefined | <mask> super(props);
<mask> this.state = {
<mask> modalVisible: false,
<mask> defaultDate: props.defaultDate ? props.defaultDate : new Date(),
<mask> chosenDate: !props.placeHolderText && props.defaultDate ? props.defaultDate : undefined
<mask> };
<mask> }
<mask>
<mask> setDate(date) {
<mask> this.setState({ chosenDate: new Date(date) });
</s> chore(): adss format script and formats files </s> remove hiddenWidth: 0,
</s> add hiddenWidth: 0 </s> remove onBlur={(e) => {
</s> add onBlur={e => { </s> remove this.setState({ isFocused: false });
</s> add this.setState({ isFocused: false }); </s> remove this.setState({ isFocused: false });
</s> add this.setState({ isFocused: false }); </s> remove isFocused: true
})
</s> add isFocused: true
}) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
return [date.getDate(), date.getMonth() + 1, date.getFullYear()].join("/"); | <mask> formatChosenDate(date) {
<mask> if (this.props.formatChosenDate) {
<mask> return this.props.formatChosenDate(date);
<mask> }
<mask> return [
<mask> date.getDate(),
<mask> date.getMonth() + 1,
<mask> date.getFullYear(),
<mask> ].join('/');
<mask> }
<mask>
<mask> render() {
<mask> const variables = this.context.theme
<mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables
</s> chore(): adss format script and formats files </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} | <mask> return (
<mask> <View>
<mask> <View>
<mask> <Text
<mask> onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
<mask> style={[
<mask> { padding: 10, color: variables.datePickerTextColor },
<mask> this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
<mask> ]}
<mask> >
</s> chore(): adss format script and formats files </s> remove this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
</s> add this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle </s> remove contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
</s> add contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} </s> remove <Text
style={[this.props.textStyle, this.props.placeholderStyle, { width: Dimensions.get("window").width - 50 }]}
note={this.props.note === false ? false : true}
numberOfLines={1}
ellipsizeMode="tail"
>
{this.props.placeholder}
</Text>
)}
</s> add <Text
style={[
this.props.textStyle,
this.props.placeholderStyle,
{ width: Dimensions.get("window").width - 50 }
]}
note={this.props.note === false ? false : true}
numberOfLines={1}
ellipsizeMode="tail"
>
{this.props.placeholder}
</Text>
)} </s> remove <Text style={[this.props.textStyle, { width: Dimensions.get("window").width - 50 }]} note={this.props.note} numberOfLines={1} ellipsizeMode="tail">
</s> add <Text
style={[
this.props.textStyle,
{ width: Dimensions.get("window").width - 50 }
]}
note={this.props.note}
numberOfLines={1}
ellipsizeMode="tail"
> </s> remove <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
>
{this.props.children}
</KeyboardAwareScrollView>
);
</s> add <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle | <mask> <Text
<mask> onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
<mask> style={[
<mask> { padding: 10, color: variables.datePickerTextColor },
<mask> this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
<mask> ]}
<mask> >
<mask> {this.state.chosenDate
<mask> ? this.formatChosenDate(this.state.chosenDate)
<mask> : this.props.placeHolderText
</s> chore(): adss format script and formats files </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} </s> remove ? this.props.placeHolderText
: "Select Date"}
</s> add ? this.props.placeHolderText
: "Select Date"} </s> remove contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
</s> add contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} </s> remove <Text
style={[this.props.textStyle, this.props.placeholderStyle, { width: Dimensions.get("window").width - 50 }]}
note={this.props.note === false ? false : true}
numberOfLines={1}
ellipsizeMode="tail"
>
{this.props.placeholder}
</Text>
)}
</s> add <Text
style={[
this.props.textStyle,
this.props.placeholderStyle,
{ width: Dimensions.get("window").width - 50 }
]}
note={this.props.note === false ? false : true}
numberOfLines={1}
ellipsizeMode="tail"
>
{this.props.placeholder}
</Text>
)} </s> remove <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
>
{this.props.children}
</KeyboardAwareScrollView>
);
</s> add <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
? this.props.placeHolderText
: "Select Date"} | <mask> >
<mask> {this.state.chosenDate
<mask> ? this.formatChosenDate(this.state.chosenDate)
<mask> : this.props.placeHolderText
<mask> ? this.props.placeHolderText
<mask> : "Select Date"}
<mask> </Text>
<mask> <View>
<mask> <Modal
<mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType={this.props.animationType}
</s> chore(): adss format script and formats files </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove this.state.chosenDate ? this.props.textStyle : this.props.placeHolderTextStyle
</s> add this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle </s> remove onRequestClose={() => { }}
</s> add onRequestClose={() => {}} </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
supportedOrientations={["portrait", "landscape"]} | <mask> : "Select Date"}
<mask> </Text>
<mask> <View>
<mask> <Modal
<mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType={this.props.animationType}
<mask> transparent={this.props.modalTransparent} //from api
<mask> visible={this.state.modalVisible}
<mask> onRequestClose={() => { }}
<mask> >
</s> chore(): adss format script and formats files </s> remove onRequestClose={() => { }}
</s> add onRequestClose={() => {}} </s> remove ? this.props.placeHolderText
: "Select Date"}
</s> add ? this.props.placeHolderText
: "Select Date"} </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove <Header style={this.props.headerStyle}>
<Left>
<Button
style={{
shadowOffset: null,
shadowColor: null,
shadowRadius: null,
shadowOpacity: null,
marginLeft: 3,
...this.props.headerBackButtonStyle
}}
transparent
onPress={() => {
this._setModalVisible(false);
}}
>
<Text style={this.props.headerBackButtonTextStyle}>
{this.props.headerBackButtonText || "Back"}
</Text>
</Button>
</Left>
<Body>
<Title style={this.props.headerTitleStyle}>
{this.props.iosHeader || "Select One"}
</Title>
</Body>
<Right />
</Header>
);
</s> add <Header style={this.props.headerStyle}>
<Left>
<Button
style={{
shadowOffset: null,
shadowColor: null,
shadowRadius: null,
shadowOpacity: null,
marginLeft: 3,
...this.props.headerBackButtonStyle
}}
transparent
onPress={() => {
this._setModalVisible(false);
}}
>
<Text style={this.props.headerBackButtonTextStyle}>
{this.props.headerBackButtonText || "Back"}
</Text>
</Button>
</Left>
<Body>
<Title style={this.props.headerTitleStyle}>
{this.props.iosHeader || "Select One"}
</Title>
</Body>
<Right />
</Header>
); </s> remove onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
</s> add onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
onRequestClose={() => {}} | <mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType={this.props.animationType}
<mask> transparent={this.props.modalTransparent} //from api
<mask> visible={this.state.modalVisible}
<mask> onRequestClose={() => { }}
<mask> >
<mask> <Text
<mask> onPress={() => this.setState({ modalVisible: false })}
<mask> style={{ backgroundColor: variables.datePickerBg, flex: 1 }}
<mask> />
</s> chore(): adss format script and formats files </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove <View style={this.props.style ? this.props.style : undefined}>
<View
style={[
styles.hidden,
{
height: this.state.hiddenHeight,
flex:1,
flexDirection: "row",
justifyContent: "space-between",
},
]}
>
<Left style={{ width: this.props.leftOpenValue, zIndex: 1 }}>
{this.props.left}
</Left>
<Body style={{ flex: 0 }} />
<Right style={{ width: -this.props.rightOpenValue, zIndex: 1 }}>
{this.props.right}
</Right>
</View>
{this.renderMainContent()}
</View>
</s> add <View style={this.props.style ? this.props.style : undefined}>
<View
style={[
styles.hidden,
{
height: this.state.hiddenHeight,
flex: 1,
flexDirection: "row",
justifyContent: "space-between"
}
]}
>
<Left style={{ width: this.props.leftOpenValue, zIndex: 1 }}>
{this.props.left}
</Left>
<Body style={{ flex: 0 }} />
<Right style={{ width: -this.props.rightOpenValue, zIndex: 1 }}>
{this.props.right}
</Right>
</View>
{this.renderMainContent()}
</View> </s> remove <Header style={this.props.headerStyle}>
<Left>
<Button
style={{
shadowOffset: null,
shadowColor: null,
shadowRadius: null,
shadowOpacity: null,
marginLeft: 3,
...this.props.headerBackButtonStyle
}}
transparent
onPress={() => {
this._setModalVisible(false);
}}
>
<Text style={this.props.headerBackButtonTextStyle}>
{this.props.headerBackButtonText || "Back"}
</Text>
</Button>
</Left>
<Body>
<Title style={this.props.headerTitleStyle}>
{this.props.iosHeader || "Select One"}
</Title>
</Body>
<Right />
</Header>
);
</s> add <Header style={this.props.headerStyle}>
<Left>
<Button
style={{
shadowOffset: null,
shadowColor: null,
shadowRadius: null,
shadowOpacity: null,
marginLeft: 3,
...this.props.headerBackButtonStyle
}}
transparent
onPress={() => {
this._setModalVisible(false);
}}
>
<Text style={this.props.headerBackButtonTextStyle}>
{this.props.headerBackButtonText || "Back"}
</Text>
</Button>
</Left>
<Body>
<Title style={this.props.headerTitleStyle}>
{this.props.iosHeader || "Select One"}
</Title>
</Body>
<Right />
</Header>
); </s> remove isFocused: true
})
</s> add isFocused: true
}) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
elevation: 5 | <mask> drawer: {
<mask> shadowColor: "#000000",
<mask> shadowOpacity: 0,
<mask> shadowRadius: 0,
<mask> elevation: 5,
<mask> },
<mask> mainOverlay: {
<mask> opacity: 0,
<mask> backgroundColor: "rgba(0, 0, 0, 0.8)",
<mask> elevation: 0,
</s> chore(): adss format script and formats files </s> remove elevation: 0,
},
</s> add elevation: 0
} </s> remove mainOverlay: { opacity: ratio / 2 },
}),
</s> add mainOverlay: { opacity: ratio / 2 }
}) </s> remove height: platform === "android" ? variables.toolbarHeight + StatusBar.currentHeight : variables.toolbarHeight
</s> add height:
platform === "android"
? variables.toolbarHeight + StatusBar.currentHeight
: variables.toolbarHeight </s> remove shadowOffset: platformStyle === "material"
? { width: 0, height: 2 }
: undefined,
</s> add shadowOffset:
platformStyle === "material" ? { width: 0, height: 2 } : undefined, </s> remove backgroundColor: '#F0EFF5',
</s> add backgroundColor: "#F0EFF5", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
elevation: 0
} | <mask> },
<mask> mainOverlay: {
<mask> opacity: 0,
<mask> backgroundColor: "rgba(0, 0, 0, 0.8)",
<mask> elevation: 0,
<mask> },
<mask> },
<mask> tweenHandler: ratio => ({
<mask> mainOverlay: { opacity: ratio / 2 },
<mask> }),
<mask> };
</s> chore(): adss format script and formats files </s> remove mainOverlay: { opacity: ratio / 2 },
}),
</s> add mainOverlay: { opacity: ratio / 2 }
}) </s> remove elevation: 5,
</s> add elevation: 5 </s> remove '.noBottomBorder': {
borderBottomWidth: 0,
</s> add ".noBottomBorder": {
borderBottomWidth: 0 </s> remove backgroundColor: "#FFF",
</s> add backgroundColor: "#FFF" </s> remove marginLeft: 0,
</s> add marginLeft: 0 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
mainOverlay: { opacity: ratio / 2 }
}) | <mask> elevation: 0,
<mask> },
<mask> },
<mask> tweenHandler: ratio => ({
<mask> mainOverlay: { opacity: ratio / 2 },
<mask> }),
<mask> };
</s> chore(): adss format script and formats files </s> remove elevation: 0,
},
</s> add elevation: 0
} </s> remove elevation: 5,
</s> add elevation: 5 </s> remove '.bordered': {
'.noTopBorder': {
borderTopWidth: 0,
</s> add ".bordered": {
".noTopBorder": {
borderTopWidth: 0 </s> remove '.large': {
</s> add ".large": { </s> remove '.noBottomBorder': {
borderBottomWidth: 0,
</s> add ".noBottomBorder": {
borderBottomWidth: 0 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
pos?: string,
top?: number,
left?: number,
right?: number,
bottom?: number | <mask> const AnimatedFab = Animated.createAnimatedComponent(Button);
<mask>
<mask> class Fab extends Component {
<mask> props: Animated.props & {
<mask> pos?: string;
<mask> top?: number;
<mask> left?: number;
<mask> right?: number;
<mask> bottom?: number;
<mask> };
<mask>
<mask> state: {
<mask> buttons: void | React$Element<Button>,
<mask> active: boolean
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 5 | <mask> return {
<mask> top: undefined,
<mask> bottom:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 5
<mask> : i * 50 + 65,
<mask> left: 8,
<mask> right: 0
<mask> };
<mask> } else if (direction === "left") {
</s> chore(): adss format script and formats files </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
: i * 50 + 50
</s> add ? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 </s> remove return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
</s> add return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 8
: 8 | <mask> top: 8,
<mask> bottom: 0,
<mask> left:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : -(i * 50 + 58),
<mask> right: 0
<mask> };
<mask> } else if (direction === "down") {
<mask> return {
</s> chore(): adss format script and formats files </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 </s> remove ? Platform.OS === "ios" ? 8 : 8
: i * 50 + 50
</s> add ? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 </s> remove return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
</s> add return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 8 | <mask> } else if (direction === "down") {
<mask> return {
<mask> top:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 8
<mask> : i * 50 + 73,
<mask> bottom: 0,
<mask> left: 8,
<mask> right: 0
<mask> };
</s> chore(): adss format script and formats files </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 </s> remove ? Platform.OS === "ios" ? 8 : 8
: i * 50 + 50
</s> add ? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 </s> remove return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
</s> add return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 8 | <mask> top: 8,
<mask> bottom: 0,
<mask> left:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 8
<mask> : i * 50 + 73,
<mask> right: 0
<mask> };
<mask> }
<mask> }
</s> chore(): adss format script and formats files </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 </s> remove ? Platform.OS === "ios" ? 8 : 8
: i * 50 + 50
</s> add ? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 </s> remove return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
</s> add return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 | <mask> : 0,
<mask> bottom: this.props.direction
<mask> ? this.fabOtherBtns(this.props.direction, i).bottom
<mask> : this.props.active === false
<mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : i * 50 + 50
<mask> };
<mask>
<mask> return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
<mask> }
<mask> prepareButtonProps(child) {
</s> chore(): adss format script and formats files </s> remove return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
</s> add return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | <mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : i * 50 + 50
<mask> };
<mask>
<mask> return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
<mask> }
<mask> prepareButtonProps(child) {
<mask> var inp = _.clone(child.props);
<mask> delete inp.style;
<mask>
</s> chore(): adss format script and formats files </s> remove ? Platform.OS === "ios" ? 8 : 8
: i * 50 + 50
</s> add ? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
const {
props: { direction, position }
} = this; | <mask> }).start();
<mask> }
<mask> }
<mask> _animate() {
<mask> const { props: { direction, position } } = this;
<mask> if (this.props.direction) {
<mask> if (this.props.direction === "up") {
<mask> this.upAnimate();
<mask> } else if (this.props.direction === "left") {
<mask> this.leftAnimate();
</s> chore(): adss format script and formats files </s> remove const { props: { active } } = this;
</s> add const {
props: { active }
} = this; </s> remove manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension,
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
});
</s> add manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
}); </s> remove return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
const {
props: { active }
} = this; | <mask> }
<mask> }
<mask>
<mask> render() {
<mask> const { props: { active } } = this;
<mask>
<mask> return (
<mask> <Animated.View style={this.getContainerStyle()}>
<mask> {this.renderButtons()}
<mask> {Platform.OS === "ios" ||
</s> chore(): adss format script and formats files </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; </s> remove style: this.getStyle().textarea,
</s> add style: this.getStyle().textarea </s> remove variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
</s> add variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}> </s> remove if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) {
</s> add if (
!width ||
width <= 0 ||
Math.round(width) === Math.round(this.state.containerWidth)
) { </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}> | <mask> return (
<mask> <Animated.View style={this.getContainerStyle()}>
<mask> {this.renderButtons()}
<mask> {Platform.OS === "ios" ||
<mask> variables.androidRipple === false ||
<mask> Platform["Version"] <= 21 ? (
<mask> <TouchableOpacity
<mask> onPress={() => this.fabOnPress()}
<mask> {...this.prepareFabProps()}
<mask> activeOpacity={1}
<mask> >
<mask> {this.renderFab()}
<mask> </TouchableOpacity>
<mask> ) : (
<mask> <TouchableNativeFeedback
<mask> onPress={() => this.fabOnPress()}
</s> chore(): adss format script and formats files </s> remove </TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}>
{this.renderFab()}
</View>
</TouchableNativeFeedback>
)}
</s> add </View>
</TouchableNativeFeedback>
)} </s> remove );
</s> add ); </s> remove const { props: { active } } = this;
</s> add const {
props: { active }
} = this; </s> remove if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) {
</s> add if (
!width ||
width <= 0 ||
Math.round(width) === Math.round(this.state.containerWidth)
) { </s> remove onPress={() => this.closeToast('user')}
</s> add onPress={() => this.closeToast("user")} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
</View>
</TouchableNativeFeedback>
)} | <mask> {...this.prepareFabProps()}
<mask> activeOpacity={1}
<mask> >
<mask> {this.renderFab()}
<mask> </TouchableOpacity>
<mask> ) : (
<mask> <TouchableNativeFeedback
<mask> onPress={() => this.fabOnPress()}
<mask> background={TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
<mask> {...this.prepareFabProps()}
<mask> >
<mask> <View style={[this.getInitialStyle().fab, this.props.style]}>
<mask> {this.renderFab()}
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> )}
<mask> </Animated.View>
<mask> );
<mask> }
<mask> }
<mask> const StyledFab = connectStyle("NativeBase.Fab", {}, mapPropsToStyleNames)(Fab);
</s> chore(): adss format script and formats files </s> remove variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
</s> add variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
<TouchableNativeFeedback
onPress={() => this.fabOnPress()}
background={TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)}
{...this.prepareFabProps()}
>
<View style={[this.getInitialStyle().fab, this.props.style]}> </s> remove background={this.props.transparent ? TouchableNativeFeedback.Ripple('transparent') : TouchableNativeFeedback.Ripple(variables.androidRippleColor, false)}
</s> add background={
this.props.transparent
? TouchableNativeFeedback.Ripple("transparent")
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)
} </s> remove <Animated.View
{...this._panResponder.panHandlers}
onLayout={e => this.onContentLayout(e)}
style={{
transform: [{ translateX: this._translateX }],
zIndex: 2,
}}
>
{!this.props.list
? <ListItem list style={this.props.style}>
{this.props.body}
</ListItem>
: <View style={[{ backgroundColor: '#FFF' },this.props.style]}>
{this.props.body}
</View>}
</Animated.View>
</s> add <Animated.View
{...this._panResponder.panHandlers}
onLayout={e => this.onContentLayout(e)}
style={{
transform: [{ translateX: this._translateX }],
zIndex: 2
}}
>
{!this.props.list ? (
<ListItem list style={this.props.style}>
{this.props.body}
</ListItem>
) : (
<View style={[{ backgroundColor: "#FFF" }, this.props.style]}>
{this.props.body}
</View>
)}
</Animated.View> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </s> remove </View >
</s> add </View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
} else if (this.props.style[1]) {
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; | <mask> const InsetValues = mode === "portrait" ? inset.portrait : inset.landscape;
<mask> let oldHeight = null;
<mask> if (this.props.style.height != undefined) {
<mask> oldHeight = this.props.style.height;
<mask> }else if(this.props.style[1]){
<mask> oldHeight= this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
<mask> } else {
<mask> oldHeight = this.props.style[0].height;
<mask> }
<mask> let height = oldHeight + InsetValues.bottomInset;
<mask> return height;
</s> chore(): adss format script and formats files </s> remove oldHeight = this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
</s> add oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; </s> remove topPadder = (style.paddingTop ? style.paddingTop : style.padding) + InsetValues.topInset;
</s> add topPadder =
(style.paddingTop ? style.paddingTop : style.padding) +
InsetValues.topInset; </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Footer.js |
<mask> "NativeBase.Footer",
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Footer);
<mask> export { StyledFooter as Footer }; </s> chore(): adss format script and formats files </s> remove export { StyledContent as Content }; </s> add </s> remove export { StyledHeader as Header }; </s> add </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
</s> add const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); </s> remove const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
</s> add const StyledThumbnail = connectStyle(
"NativeBase.Thumbnail",
{},
mapPropsToStyleNames
)(Thumbnail); | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Footer.js | |
const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${
props.style.height
}`; | <mask>
<mask> render() {
<mask> const props = this.prepareRootProps();
<mask>
<mask> const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${props.style
<mask> .height}`;
<mask> return <Image ref={c => (this._root = c)} {...props} source={{ uri }} />;
<mask> }
<mask> }
<mask>
<mask> Gravatar.propTypes = {
</s> chore(): adss format script and formats files </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Gravatar.js |
const childrenType = function(props, propName, component) { | <mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask>
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof child !== "string" && typeof child !== "number") {
<mask> error = new Error(`${component} should have only string or number`);
</s> chore(): adss format script and formats files </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H1.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H1.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH1 = connectStyle("NativeBase.H1", {}, mapPropsToStyleNames)(H1);
<mask>
<mask> export { StyledH1 as H1 };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H1.js |
const childrenType = function(props, propName, component) { | <mask> render() {
<mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof child !== "string" && typeof child !== "number") {
<mask> error = new Error(`${component} should have only string or number`);
</s> chore(): adss format script and formats files </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove const childrenType = function (props, propName, component) {
</s> add const childrenType = function(props, propName, component) { </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H2.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H2.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH2 = connectStyle("NativeBase.H2", {}, mapPropsToStyleNames)(H2);
<mask>
<mask> export { StyledH2 as H2 };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H2.js |
const childrenType = function(props, propName, component) { | <mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask>
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof child !== "string" && typeof child !== "number") {
<mask> error = new Error(`${component} should have only string or number`);
</s> chore(): adss format script and formats files | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H3.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H3.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH3 = connectStyle("NativeBase.H3", {}, mapPropsToStyleNames)(H3);
<mask>
<mask> export { StyledH3 as H3 };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H3.js |
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; | <mask> let oldHeight = null;
<mask> if (this.props.style.height != undefined) {
<mask> oldHeight = this.props.style.height;
<mask> } else if (this.props.style[1]) {
<mask> oldHeight = this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
<mask> } else {
<mask> oldHeight = this.props.style[0].height;
<mask> }
<mask> let height = oldHeight + InsetValues.topInset;
<mask> return height;
</s> chore(): adss format script and formats files </s> remove }else if(this.props.style[1]){
oldHeight= this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
</s> add } else if (this.props.style[1]) {
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; </s> remove topPadder = (style.paddingTop ? style.paddingTop : style.padding) + InsetValues.topInset;
</s> add topPadder =
(style.paddingTop ? style.paddingTop : style.padding) +
InsetValues.topInset; </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
topPadder =
(style.paddingTop ? style.paddingTop : style.padding) +
InsetValues.topInset; | <mask> const InsetValues = mode === "portrait" ? inset.portrait : inset.landscape;
<mask> let topPadder = null;
<mask> let style = StyleSheet.flatten(this.props.style);
<mask> if (style.padding !== undefined || style.paddingTop !== undefined) {
<mask> topPadder = (style.paddingTop ? style.paddingTop : style.padding) + InsetValues.topInset;
<mask> } else {
<mask> topPadder = InsetValues.topInset;
<mask> }
<mask> return topPadder;
<mask> }
</s> chore(): adss format script and formats files </s> remove }else if(this.props.style[1]){
oldHeight= this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
</s> add } else if (this.props.style[1]) {
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; </s> remove oldHeight = this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
</s> add oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
</s> add let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
? "light-content"
: variables.iosStatusbar | <mask> barStyle={
<mask> this.props.iosBarStyle
<mask> ? this.props.iosBarStyle
<mask> : platformStyle === "material"
<mask> ? "light-content"
<mask> : variables.iosStatusbar
<mask> }
<mask> translucent={this.props.transparent ? true : this.props.translucent}
<mask> />
<mask> {variables.isIphoneX ? (
<mask> <View
</s> chore(): adss format script and formats files </s> remove shadowOffset: platformStyle === "material"
? { width: 0, height: 2 }
: undefined,
</s> add shadowOffset:
platformStyle === "material" ? { width: 0, height: 2 } : undefined, </s> remove name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
</s> add name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} </s> remove ? this.props.color ? this.props.color : variables.checkboxBgColor
: "transparent",
},
</s> add ? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} </s> remove ? this.props.icon
: "ios-arrow-down"
</s> add ? this.props.icon
: "ios-arrow-down" </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
<View ref={c => (this._root = c)} {...this.props} />
)} | <mask> }
<mask> ]}
<mask> />
<mask> ) : (
<mask> <View ref={c => (this._root = c)} {...this.props} />
<mask> )}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); </s> remove <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View>
</s> add <View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
<mask> "NativeBase.Header",
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Header);
<mask> export { StyledHeader as Header }; </s> chore(): adss format script and formats files </s> remove export { StyledContent as Content }; </s> add </s> remove export { StyledFooter as Footer }; </s> add </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
</s> add const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); </s> remove const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
</s> add const StyledThumbnail = connectStyle(
"NativeBase.Thumbnail",
{},
mapPropsToStyleNames
)(Thumbnail); | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js | |
<mask> "default": "ios-woman",
<mask> "active": "ios-woman"
<mask> }
<mask> }
<mask> } </s> chore(): adss format script and formats files </s> remove openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
}
</s> add openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
} </s> remove const { props: { active } } = this;
</s> add const {
props: { active }
} = this; </s> remove })
</s> add }); </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/NBIcons.json | |
} | <mask> "active": "ios-woman"
<mask> }
<mask> }
<mask> }
</s> chore(): adss format script and formats files </s> remove } </s> add </s> remove openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
}
</s> add openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
} </s> remove const { props: { active } } = this;
</s> add const {
props: { active }
} = this; </s> remove })
</s> add }); </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/NBIcons.json |
theme: PropTypes.object | <mask> import mapPropsToStyleNames from "../../utils/mapPropsToStyleNames";
<mask>
<mask> class Icon extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getName() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getName() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask>
<mask> if ((this.props.type || variables.iconFamily) === "Ionicons") {
<mask> if (typeof ic[this.props.name] !== "object") {
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
{...this.prepareRootProps(variables)}
> </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; | <mask> return this.props.name;
<mask> } else if (typeof ic[this.props.name] === "object") {
<mask> let name;
<mask> if (platform === "ios" && platformStyle !== "material") {
<mask> name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
<mask> } else {
<mask> name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
<mask> }
<mask> return name;
<mask> }
</s> chore(): adss format script and formats files </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | <mask> let name;
<mask> if (platform === "ios" && platformStyle !== "material") {
<mask> name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
<mask> } else {
<mask> name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
<mask> }
<mask> return name;
<mask> }
<mask> } else {
<mask> return this.props.name;
</s> chore(): adss format script and formats files </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove topPadder = (style.paddingTop ? style.paddingTop : style.padding) + InsetValues.topInset;
</s> add topPadder =
(style.paddingTop ? style.paddingTop : style.padding) +
InsetValues.topInset; </s> remove oldHeight = this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
</s> add oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; | <mask> if (Platform.OS === "ios") {
<mask> if (this.props.ios) {
<mask> return this.props.ios;
<mask> } else {
<mask> return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
<mask> }
<mask> } else if (this.props.android) {
<mask> return this.props.android;
<mask> } else {
<mask> return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> chore(): adss format script and formats files </s> remove return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | <mask> }
<mask> } else if (this.props.android) {
<mask> return this.props.android;
<mask> } else {
<mask> return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> if (this.props.ios && this.props.android) {
</s> chore(): adss format script and formats files </s> remove return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove name = this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
</s> add name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> </s> remove manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension,
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
});
</s> add manuallySwipeRow(toValue) {
Animated.spring(this._translateX, {
toValue,
friction: this.props.friction,
tension: this.props.tension
}).start(_ => {
if (toValue === 0) {
this.props.onRowDidClose && this.props.onRowDidClose();
} else {
this.props.onRowDidOpen && this.props.onRowDidOpen();
}
}); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> | <mask>
<mask> render() {
<mask> if (this.props.ios && this.props.android) {
<mask> return (
<mask> <IconNB
<mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> name={Platform.OS === "ios" ? this.props.ios : this.props.android}
<mask> />
<mask> );
<mask> } else if (this.props.name && (this.props.android || this.props.ios)) {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
<mask> } else {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> chore(): adss format script and formats files </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); | <mask> name={Platform.OS === "ios" ? this.props.ios : this.props.android}
<mask> />
<mask> );
<mask> } else if (this.props.name && (this.props.android || this.props.ios)) {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
<mask> } else {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
<mask> }
<mask> }
<mask> }
</s> chore(): adss format script and formats files </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); | <mask> );
<mask> } else if (this.props.name && (this.props.android || this.props.ios)) {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
<mask> } else {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} />;
<mask> }
<mask> }
<mask> }
<mask>
<mask> Icon.propTypes = {
</s> chore(): adss format script and formats files </s> remove return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
</s> add return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); </s> remove <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/>
</s> add <IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> </s> remove return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
</s> add return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); </s> remove <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity>
</s> add <TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> </s> remove <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> Icon.propTypes = {
<mask> ...IconNB.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> name: PropTypes.string,
<mask> ios: PropTypes.string,
<mask> android: PropTypes.string,
<mask> active: PropTypes.bool,
<mask> type: PropTypes.string,
</s> chore(): adss format script and formats files </s> remove type: PropTypes.string,
</s> add type: PropTypes.string </s> remove const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
</s> add const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string </s> remove inverse: PropTypes.bool,
</s> add inverse: PropTypes.bool | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
type: PropTypes.string | <mask> name: PropTypes.string,
<mask> ios: PropTypes.string,
<mask> android: PropTypes.string,
<mask> active: PropTypes.bool,
<mask> type: PropTypes.string,
<mask> };
<mask>
<mask> const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
<mask>
<mask> export { StyledIcon as Icon };
</s> chore(): adss format script and formats files </s> remove const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
</s> add const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove inverse: PropTypes.bool,
</s> add inverse: PropTypes.bool </s> remove const StyledSpinner = connectStyle("NativeBase.Spinner", {}, mapPropsToStyleNames)(Spinner);
</s> add const StyledSpinner = connectStyle(
"NativeBase.Spinner",
{},
mapPropsToStyleNames
)(Spinner); </s> remove foregroundColor: PropTypes.string,
</s> add foregroundColor: PropTypes.string | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); | <mask> active: PropTypes.bool,
<mask> type: PropTypes.string,
<mask> };
<mask>
<mask> const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
<mask>
<mask> export { StyledIcon as Icon };
</s> chore(): adss format script and formats files </s> remove type: PropTypes.string,
</s> add type: PropTypes.string </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), </s> remove inverse: PropTypes.bool,
</s> add inverse: PropTypes.bool </s> remove const StyledSpinner = connectStyle("NativeBase.Spinner", {}, mapPropsToStyleNames)(Spinner);
</s> add const StyledSpinner = connectStyle(
"NativeBase.Spinner",
{},
mapPropsToStyleNames
)(Spinner); </s> remove const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
</s> add const StyledTextarea = connectStyle(
"NativeBase.Textarea",
{},
mapPropsToStyleNames
)(Textarea); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask>
<mask> class Input extends NativeBaseComponent {
<mask> render() {
<mask> const variables = this.context.theme
<mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables
<mask> : variable;
<mask> return (
<mask> <TextInput
<mask> ref={c => {
<mask> this._textInput = c;
<mask> this._root = c;
</s> chore(): adss format script and formats files </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
{...this.props}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
{...this.props}
/> </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/> </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
<TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
{...this.props}
/> | <mask> const variables = this.context.theme
<mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables
<mask> : variable;
<mask> return (
<mask> <TextInput
<mask> ref={c => {
<mask> this._textInput = c;
<mask> this._root = c;
<mask> }}
<mask> editable={this.props.disabled ? false : true}
<mask> underlineColorAndroid="rgba(0,0,0,0)"
<mask> placeholderTextColor={
<mask> this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
<mask> }
<mask> {...this.props}
<mask> />
<mask> );
<mask> }
<mask> }
<mask>
<mask> Input.propTypes = {
</s> chore(): adss format script and formats files </s> remove <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/>
</s> add <TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
{...this.prepareRootProps()}
multiline
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextColor
: variables.inputColorPlaceholder
}
underlineColorAndroid="rgba(0,0,0,0)"
editable={this.props.disabled ? false : true}
/> </s> remove ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
>
{this.props.children}
</KeyboardAwareScrollView>
);
</s> add <KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTaps
: "handled"
}
ref={c => {
this._scrollview = c;
this._root = c;
}}
{...this.props}
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]}
>
{this.props.children}
</KeyboardAwareScrollView>
); </s> remove const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
</s> add const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </s> remove <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/>
</s> add <ActivityIndicator
ref={c => (this._root = c)}
{...this.props}
color={
this.props.color
? this.props.color
: this.props.inverse
? variables.inverseSpinnerColor
: variables.defaultSpinnerColor
}
size={this.props.size ? this.props.size : "large"}
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Input.propTypes = {
<mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(Input);
<mask>
<mask> export { StyledInput as Input };
</s> chore(): adss format script and formats files </s> remove const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(Input);
</s> add const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(
Input
); </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(
Input
); | <mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(Input);
<mask>
<mask> export { StyledInput as Input };
</s> chore(): adss format script and formats files </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) </s> remove style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
</s> add style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
if (
this.props.children[i].props.name &&
this.props.children[i].type.displayName !== "Styled(Input)"
) { | <mask> });
<mask> if (this.props.floatingLabel && icon.length) {
<mask> let isIcon = false;
<mask> for (let i = 0; i < this.props.children.length; i++) {
<mask> if (this.props.children[i].props.name && this.props.children[i].type.displayName !== "Styled(Input)") {
<mask> isIcon = true;
<mask> newChildren.push(
<mask> <Icon key={[i]} {...this.props.children[i].props} />
<mask> );
<mask> }
</s> chore(): adss format script and formats files </s> remove let previewOpenValue = this.props.previewOpenValue || this.props.rightOpenValue * 0.5;
this.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(_ => {
this.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();
});
</s> add let previewOpenValue =
this.props.previewOpenValue || this.props.rightOpenValue * 0.5;
this.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(
_ => {
this.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();
}
); </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </s> remove if (style && typeof style === "object" && styleName !== "fontVariant" && styleName !== "transform") {
</s> add if (
style &&
typeof style === "object" &&
styleName !== "fontVariant" &&
styleName !== "transform"
) { </s> remove // finish up the animation
</s> add // finish up the animation </s> remove name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
</s> add name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
? 15
: isIcon
? 26
: 0, | <mask> left:
<mask> this.props.last && isIcon
<mask> ? 40
<mask> : this.props.last
<mask> ? 15
<mask> : isIcon
<mask> ? 26
<mask> : 0,
<mask> right: 0,
<mask> top: this.state.topAnim,
<mask> opacity: this.state.opacAnim,
<mask> paddingTop: Platform.OS === "ios" ? undefined : undefined,
<mask> paddingBottom: Platform.OS === "ios" ? undefined : 12
</s> chore(): adss format script and formats files </s> remove lineHeight: Platform.OS === "ios"
? undefined
: variables.radioBtnLineHeight,
</s> add lineHeight:
Platform.OS === "ios" ? undefined : variables.radioBtnLineHeight, </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove left: this.props.last && isImage
? 10
: this.props.last
</s> add left:
this.props.last && isImage
? 10
: this.props.last </s> remove ? Platform.OS === "ios" ? 50 : 5
</s> add ? Platform.OS === "ios"
? 50
: 5 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
onBlur={e => { | <mask> onFocus={() => {
<mask> this.setState({ isFocused: true });
<mask> inputProps.onFocus && inputProps.onFocus();
<mask> }}
<mask> onBlur={(e) => {
<mask> inputProps.value
<mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length &&
</s> chore(): adss format script and formats files </s> remove onBlur={(e) => {
</s> add onBlur={e => { </s> remove onBlur={(e) => {
</s> add onBlur={e => { </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.