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 |
|---|---|---|---|---|
isFocused: true
}) | <mask> }}
<mask> onBlur={(e) => {
<mask> inputProps.value
<mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length &&
<mask> this.setState({ isFocused: false });
<mask> inputProps.onBlur && inputProps.onBlur(e);
<mask> }}
<mask> onChangeText={text => {
</s> chore(): adss format script and formats files </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) </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 onBlur={(e) => {
</s> add onBlur={e => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
this.setState({ isFocused: false }); | <mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length &&
<mask> this.setState({ isFocused: false });
<mask> inputProps.onBlur && inputProps.onBlur(e);
<mask> }}
<mask> onChangeText={text => {
<mask> this.setState({ text });
<mask> inputProps.onChangeText && inputProps.onChangeText(text);
</s> chore(): adss format script and formats files </s> remove this.setState({ isFocused: false });
</s> add this.setState({ isFocused: false }); </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove onBlur={(e) => {
</s> add onBlur={e => { | [
"keep",
"keep",
"keep",
"keep",
"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 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
isFocused: true
}) | <mask> }}
<mask> onBlur={(e) => {
<mask> inputProps.value
<mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length &&
<mask> this.setState({ isFocused: false });
<mask> inputProps.onBlur && inputProps.onBlur(e);
<mask> }}
<mask> onChangeText={text => {
</s> chore(): adss format script and formats files | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
this.setState({ isFocused: false }); | <mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length &&
<mask> this.setState({ isFocused: false });
<mask> inputProps.onBlur && inputProps.onBlur(e);
<mask> }}
<mask> onChangeText={text => {
<mask> this.setState({ text });
<mask> inputProps.onChangeText && inputProps.onChangeText(text);
</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/Item.js |
left:
this.props.last && isImage
? 10
: this.props.last | <mask> this.setState({ text });
<mask> inputProps.onChangeText && inputProps.onChangeText(text);
<mask> }}
<mask> style={{
<mask> left: this.props.last && isImage
<mask> ? 10
<mask> : this.props.last
<mask> ? 4
<mask> : isImage
<mask> ? 10
<mask> : 0,
<mask> marginRight: 12
</s> chore(): adss format script and formats files </s> remove ? 10
: 0,
</s> add ? 10
: 0, </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 ? 15
: isIcon
? 26
: 0,
</s> add ? 15
: isIcon
? 26
: 0, </s> remove isFocused: true
})
</s> add isFocused: true
}) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
? 10
: 0, | <mask> ? 10
<mask> : this.props.last
<mask> ? 4
<mask> : isImage
<mask> ? 10
<mask> : 0,
<mask> marginRight: 12
<mask> }}
<mask> />
<mask> );
<mask> }
</s> chore(): adss format script and formats files </s> remove left: this.props.last && isImage
? 10
: this.props.last
</s> add left:
this.props.last && isImage
? 10
: this.props.last </s> remove ? 15
: isIcon
? 26
: 0,
</s> add ? 15
: isIcon
? 26
: 0, </s> remove ? this.props.icon
: "ios-arrow-down"
</s> add ? this.props.icon
: "ios-arrow-down" </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 ? "md-radio-button-on"
: "md-radio-button-off"
</s> add ? "md-radio-button-on"
: "md-radio-button-off" | [
"keep",
"keep",
"keep",
"keep",
"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 && this.setState({ isFocused: false });
</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 |
isFocused: true
}) | <mask> }}
<mask> onBlur={(e) => {
<mask> inputProps.value
<mask> ? this.setState({
<mask> isFocused: true
<mask> })
<mask> : !this.state.text.length && this.setState({ isFocused: false });
<mask> inputProps.onBlur && inputProps.onBlur(e);
<mask> }}
<mask> onChangeText={text => {
<mask> this.setState({ text });
</s> chore(): adss format script and formats files </s> remove isFocused: true
})
</s> add isFocused: true
}) </s> remove isFocused: true
})
</s> add isFocused: true
}) </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 onBlur={(e) => {
</s> add onBlur={e => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
const childrenType = function(props, propName, component) { | <mask> );
<mask> }
<mask> }
<mask>
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> if (!props.children.length) {
<mask> error = new Error(
<mask> `${component} should have both Label and Input components`
</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 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 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/Item.js |
<mask> const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
<mask> Item
<mask> );
<mask>
<mask> export { StyledItem as Item }; </s> chore(): adss format script and formats files </s> remove const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove ...Picker.Item.propTypes,
</s> add ...Picker.Item.propTypes </s> remove export { StyledList as List }; </s> add </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </s> remove const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
</s> add const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js | |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Label.propTypes = {
<mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledLabel = connectStyle("NativeBase.Label", {}, mapPropsToStyleNames)(Label);
<mask>
<mask> export { StyledLabel as Label };
</s> chore(): adss format script and formats files </s> remove const StyledLabel = connectStyle("NativeBase.Label", {}, mapPropsToStyleNames)(Label);
</s> add const StyledLabel = connectStyle("NativeBase.Label", {}, mapPropsToStyleNames)(
Label
); </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/Label.js |
const StyledLabel = connectStyle("NativeBase.Label", {}, mapPropsToStyleNames)(
Label
); | <mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledLabel = connectStyle("NativeBase.Label", {}, mapPropsToStyleNames)(Label);
<mask>
<mask> export { StyledLabel as Label };
</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/Label.js |
<mask> const StyledList = connectStyle("NativeBase.List", {}, mapPropsToStyleNames)(
<mask> List
<mask> );
<mask>
<mask> export { StyledList as List }; </s> chore(): adss format script and formats files </s> remove export { StyledItem as Item }; </s> add </s> remove const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </s> remove const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
</s> add const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); </s> remove const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(Title);
</s> add const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(
Title
); | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/List.js | |
<View {...this.props} testID={undefined}>
{this.props.children}
</View> | <mask> underlayColor={variables.listBtnUnderlayColor}
<mask> {...this.props}
<mask> style={this.props.touchableHighlightStyle}
<mask> >
<mask> <View {...this.props} testID={undefined}>{this.props.children}</View>
<mask> </TouchableHighlight>
<mask> );
<mask> } else {
<mask> return (
<mask> <TouchableNativeFeedback
</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 <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{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 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 <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/ListItem.js |
<TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> | <mask> </TouchableHighlight>
<mask> );
<mask> } else {
<mask> return (
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> >
<mask> <View style={{ marginLeft: -17, paddingLeft: 17 }}>
<mask> <View {...this.props} testID={undefined}>{this.props.children}</View>
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> );
</s> chore(): adss format script and formats files </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> </s> remove </View >
</s> add </View> </s> remove <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </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",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/ListItem.js |
<View {...this.props} testID={undefined}>
{this.props.children}
</View> | <mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> >
<mask> <View style={{ marginLeft: -17, paddingLeft: 17 }}>
<mask> <View {...this.props} testID={undefined}>{this.props.children}</View>
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> );
<mask> }
<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 <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{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 <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/ListItem.js |
import {
Picker,
Modal,
View,
ViewPropTypes,
FlatList,
Dimensions
} from "react-native"; | <mask> import React, { Component } from "react";
<mask> import PropTypes from "prop-types";
<mask> import createReactClass from "create-react-class";
<mask> import { Picker, Modal, View, ViewPropTypes, FlatList, Dimensions } from "react-native";
<mask> import _ from "lodash";
<mask> import { Text } from "./Text";
<mask> import { List } from "./List";
<mask> import { IconNB as Icon } from "./IconNB";
<mask> import { Radio } from "./Radio";
</s> chore(): adss format script and formats files </s> remove import { Animated, PanResponder, Platform, StyleSheet, TouchableOpacity, View } from "react-native";
</s> add import {
Animated,
PanResponder,
Platform,
StyleSheet,
TouchableOpacity,
View
} from "react-native"; </s> remove import pickerTheme from "./Picker"
</s> add import pickerTheme from "./Picker"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Picker.ios.js |
children = [].concat.apply([], children); | <mask> getChildren(children) {
<mask> if (children && !Array.isArray(children)) {
<mask> return [].concat(children);
<mask> }
<mask> children = [].concat.apply([], children)
<mask> return children;
<mask> }
<mask>
<mask> renderIcon() {
<mask> return React.cloneElement(this.props.iosIcon, {
</s> chore(): adss format script and formats files </s> remove })
</s> add }); </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 {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; </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 <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/Picker.ios.js |
<Text
style={[
this.props.textStyle,
{ width: Dimensions.get("window").width - 50 }
]}
note={this.props.note}
numberOfLines={1}
ellipsizeMode="tail"
> | <mask> transparent
<mask> onPress={onPress}
<mask> >
<mask> {this.state.currentLabel ? (
<mask> <Text style={[this.props.textStyle, { width: Dimensions.get("window").width - 50 }]} note={this.props.note} numberOfLines={1} ellipsizeMode="tail">
<mask> {this.state.currentLabel}
<mask> </Text>
<mask> ) : (
<mask> <Text
<mask> style={[this.props.textStyle, this.props.placeholderStyle, { width: Dimensions.get("window").width - 50 }]}
</s> chore(): adss format script and formats files </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 <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 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 onPress={() => this.closeToast('user')}
</s> add onPress={() => this.closeToast("user")} </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/Picker.ios.js |
<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>
)} | <mask> <Text style={[this.props.textStyle, { width: Dimensions.get("window").width - 50 }]} note={this.props.note} numberOfLines={1} ellipsizeMode="tail">
<mask> {this.state.currentLabel}
<mask> </Text>
<mask> ) : (
<mask> <Text
<mask> style={[this.props.textStyle, this.props.placeholderStyle, { width: Dimensions.get("window").width - 50 }]}
<mask> note={this.props.note === false ? false : true}
<mask> numberOfLines={1}
<mask> ellipsizeMode="tail"
<mask> >
<mask> {this.props.placeholder}
<mask> </Text>
<mask> )}
<mask> {this.props.iosIcon === undefined ? null : this.renderIcon()}
<mask> </Button>
<mask> );
<mask> }
<mask>
</s> chore(): adss format script and formats files </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 ? 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 </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 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Picker.ios.js |
<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>
); | <mask> renderHeader() {
<mask> return this.props.renderHeader ? (
<mask> this.props.renderHeader(() => this._setModalVisible(false))
<mask> ) : (
<mask> <Header style={this.props.headerStyle}>
<mask> <Left>
<mask> <Button
<mask> style={{
<mask> shadowOffset: null,
<mask> shadowColor: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> marginLeft: 3,
<mask> ...this.props.headerBackButtonStyle
<mask> }}
<mask> transparent
<mask> onPress={() => {
<mask> this._setModalVisible(false);
<mask> }}
<mask> >
<mask> <Text style={this.props.headerBackButtonTextStyle}>
<mask> {this.props.headerBackButtonText || "Back"}
<mask> </Text>
<mask> </Button>
<mask> </Left>
<mask> <Body>
<mask> <Title style={this.props.headerTitleStyle}>
<mask> {this.props.iosHeader || "Select One"}
<mask> </Title>
<mask> </Body>
<mask> <Right />
<mask> </Header>
<mask> );
<mask> }
<mask>
<mask> render() {
<mask> return (
<mask> <View ref={c => (this._root = c)}>
</s> chore(): adss format script and formats files </s> remove height: platform === "android" ? variables.toolbarHeight + StatusBar.currentHeight : variables.toolbarHeight
</s> add height:
platform === "android"
? variables.toolbarHeight + StatusBar.currentHeight
: variables.toolbarHeight </s> remove onPress={() => this.closeToast('user')}
</s> add onPress={() => this.closeToast("user")} </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 <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Picker.ios.js |
supportedOrientations={["portrait", "landscape"]} | <mask> <View ref={c => (this._root = c)}>
<mask> {this.renderButton()}
<mask> <Modal
<mask> // supportedOrientations={this.props.supportedOrientations || null}
<mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType="slide"
<mask> transparent={false}
<mask> visible={this.state.modalVisible}
<mask> onRequestClose={() => {
<mask> this._setModalVisible(false);
</s> chore(): adss format script and formats files </s> remove supportedOrientations={['portrait', 'landscape']}
</s> add supportedOrientations={["portrait", "landscape"]} </s> remove onRequestClose={() => { }}
</s> add onRequestClose={() => {}} </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 <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> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Picker.ios.js |
<Radio selected={false} />
)} | <mask> <Right>
<mask> {item.props.value === this.props.selectedValue ? (
<mask> <Radio selected />
<mask> ) : (
<mask> <Radio selected={false} />
<mask> )}
<mask> </Right>
<mask> </ListItem>
<mask> )}
<mask> />
<mask> </Container>
</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 <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </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 ? "md-radio-button-on"
: "md-radio-button-off"
</s> add ? "md-radio-button-on"
: "md-radio-button-off" </s> remove ? "light-content"
: variables.iosStatusbar
</s> add ? "light-content"
: variables.iosStatusbar | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Picker.ios.js |
...Picker.Item.propTypes | <mask> }
<mask> }
<mask>
<mask> Item.propTypes = {
<mask> ...Picker.Item.propTypes,
<mask> };
<mask>
<mask> const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
<mask>
<mask> export { StyledItem as Item };
</s> chore(): adss format script and formats files </s> remove const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove export { StyledItem as Item }; </s> add </s> remove ...Switch.propTypes,
</s> add ...Switch.propTypes </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/PickerItem.js |
const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); | <mask> Item.propTypes = {
<mask> ...Picker.Item.propTypes,
<mask> };
<mask>
<mask> const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
<mask>
<mask> export { StyledItem as Item };
</s> chore(): adss format script and formats files </s> remove ...Picker.Item.propTypes,
</s> add ...Picker.Item.propTypes </s> remove export { StyledItem as Item }; </s> add </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </s> remove ...Switch.propTypes,
</s> add ...Switch.propTypes | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/PickerItem.js |
: variables.radioSelectedColorAndroid
: this.props.color
? this.props.color
: undefined, | <mask> ? this.props.color
<mask> : undefined
<mask> : this.props.selected
<mask> ? this.props.selectedColor
<mask> ? this.props.selectedColor
<mask> : variables.radioSelectedColorAndroid
<mask> : this.props.color
<mask> ? this.props.color
<mask> : undefined,
<mask> lineHeight: variables.radioBtnLineHeight,
<mask> fontSize: variables.radioBtnSize
<mask> }}
<mask> name={
<mask> Platform.OS === "ios"
</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 borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
</s> add borderColor: this.props.color
? this.props.color
: variables.checkboxBgColor, </s> remove ? this.props.color ? this.props.color : variables.checkboxBgColor
: "transparent",
},
</s> add ? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} </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: Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid,
</s> add color:
Platform.OS === "ios"
? variables.radioColor
: variables.radioSelectedColorAndroid, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Radio.js |
? "md-radio-button-on"
: "md-radio-button-off" | <mask> ? this.props.selected
<mask> ? "ios-radio-button-on"
<mask> : "ios-radio-button-off"
<mask> : this.props.selected
<mask> ? "md-radio-button-on"
<mask> : "md-radio-button-off"
<mask> }
<mask> />
<mask> )}
<mask> </TouchableOpacity>
<mask> );
</s> chore(): adss format script and formats files </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 <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 name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
</s> add name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} </s> remove ? this.props.icon
: "ios-arrow-down"
</s> add ? this.props.icon
: "ios-arrow-down" | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Radio.js |
if (c) ActionSheet.actionsheetInstance = c; | <mask> }}
<mask> />
<mask> <ActionSheet
<mask> ref={c => {
<mask> if (c)
<mask> ActionSheet.actionsheetInstance = c;
<mask> }}
<mask> />
<mask> </View>
<mask> );
<mask> }
</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 <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 <View ref={c => (this._root = c)} {...this.props} />
)}
</s> add <View ref={c => (this._root = c)} {...this.props} />
)} </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 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",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Root.js |
theme: PropTypes.object | <mask> import mapPropsToStyleNames from "../utils/mapPropsToStyleNames";
<mask>
<mask> class Spinner extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask> render() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> return (
<mask> <ActivityIndicator
</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 theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; </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/Spinner.js |
const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask> render() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> return (
<mask> <ActivityIndicator
<mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> color={
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </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 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 ? 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/Spinner.js |
<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"}
/> | <mask> };
<mask> render() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> return (
<mask> <ActivityIndicator
<mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> color={
<mask> this.props.color
<mask> ? this.props.color
<mask> : this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor
<mask> }
<mask> size={this.props.size ? this.props.size : "large"}
<mask> />
<mask> );
<mask> }
<mask> }
<mask>
<mask> Spinner.propTypes = {
</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 <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 ? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable;
</s> add ? 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}
/> | [
"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/Spinner.js |
inverse: PropTypes.bool | <mask>
<mask> Spinner.propTypes = {
<mask> ...ActivityIndicator.propTypes,
<mask> color: PropTypes.string,
<mask> inverse: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledSpinner = connectStyle("NativeBase.Spinner", {}, mapPropsToStyleNames)(Spinner);
<mask>
<mask> export { StyledSpinner as Spinner };
</s> chore(): adss format script and formats files </s> remove const StyledSpinner = connectStyle("NativeBase.Spinner", {}, mapPropsToStyleNames)(Spinner);
</s> add const StyledSpinner = connectStyle(
"NativeBase.Spinner",
{},
mapPropsToStyleNames
)(Spinner); </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 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); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Spinner.js |
const StyledSpinner = connectStyle(
"NativeBase.Spinner",
{},
mapPropsToStyleNames
)(Spinner); | <mask> color: PropTypes.string,
<mask> inverse: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledSpinner = connectStyle("NativeBase.Spinner", {}, mapPropsToStyleNames)(Spinner);
<mask>
<mask> export { StyledSpinner as Spinner };
</s> chore(): adss format script and formats files </s> remove inverse: PropTypes.bool,
</s> add inverse: PropTypes.bool </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 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); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Spinner.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Subtitle.propTypes = {
<mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledSubtitle = connectStyle("NativeBase.Subtitle", {}, mapPropsToStyleNames)(Subtitle);
<mask> export { StyledSubtitle as Subtitle };
</s> chore(): adss format script and formats files </s> remove const StyledSubtitle = connectStyle("NativeBase.Subtitle", {}, mapPropsToStyleNames)(Subtitle);
</s> add const StyledSubtitle = connectStyle(
"NativeBase.Subtitle",
{},
mapPropsToStyleNames
)(Subtitle); </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"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Subtitle.js |
const StyledSubtitle = connectStyle(
"NativeBase.Subtitle",
{},
mapPropsToStyleNames
)(Subtitle); | <mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledSubtitle = connectStyle("NativeBase.Subtitle", {}, mapPropsToStyleNames)(Subtitle);
<mask> export { StyledSubtitle as Subtitle };
</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"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Subtitle.js |
import {
Animated,
PanResponder,
Platform,
StyleSheet,
TouchableOpacity,
View
} from "react-native"; | <mask> import React, { Component } from "react";
<mask> import PropTypes from "prop-types";
<mask> import { Animated, PanResponder, Platform, StyleSheet, TouchableOpacity, View } from "react-native";
<mask> import { connectStyle } from "native-base-shoutem-theme";
<mask> import { Text } from "./Text";
<mask> import { Left } from "./Left";
<mask> import { Right } from "./Right";
<mask> import { Body } from "./Body";
</s> chore(): adss format script and formats files </s> remove import { Picker, Modal, View, ViewPropTypes, FlatList, Dimensions } from "react-native";
</s> add import {
Picker,
Modal,
View,
ViewPropTypes,
FlatList,
Dimensions
} from "react-native"; </s> remove import pickerTheme from "./Picker"
</s> add import pickerTheme from "./Picker"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
swipeToOpenPercent: 50 | <mask> recalculateHiddenLayout: false,
<mask> preview: false,
<mask> previewDuration: 300,
<mask> directionalDistanceChangeThreshold: 2,
<mask> swipeToOpenPercent: 50,
<mask> };
<mask> constructor(props) {
<mask> super(props);
<mask> this.horizontalSwipeGestureBegan = false;
<mask> this.swipeInitialX = null;
</s> chore(): adss format script and formats files </s> remove // reset everything
</s> add // reset everything </s> remove hiddenWidth: 0,
</s> add hiddenWidth: 0 </s> remove chosenDate: !props.placeHolderText && props.defaultDate ? props.defaultDate : undefined
</s> add chosenDate:
!props.placeHolderText && props.defaultDate
? props.defaultDate
: undefined </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 StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
hiddenWidth: 0 | <mask> this.ranPreview = false;
<mask> this.state = {
<mask> dimensionsSet: false,
<mask> hiddenHeight: 0,
<mask> hiddenWidth: 0,
<mask> };
<mask> this._translateX = new Animated.Value(0);
<mask> }
<mask>
<mask> componentWillMount() {
</s> chore(): adss format script and formats files </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </s> remove chosenDate: !props.placeHolderText && props.defaultDate ? props.defaultDate : undefined
</s> add chosenDate:
!props.placeHolderText && props.defaultDate
? props.defaultDate
: undefined </s> remove swipeToOpenPercent: 50,
</s> add swipeToOpenPercent: 50 </s> remove // reset everything
</s> add // reset everything </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();
}
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
onMoveShouldSetPanResponder: (e, gs) =>
this.handleOnMoveShouldSetPanResponder(e, gs), | <mask> }
<mask>
<mask> componentWillMount() {
<mask> this._panResponder = PanResponder.create({
<mask> onMoveShouldSetPanResponder: (e, gs) => this.handleOnMoveShouldSetPanResponder(e, gs),
<mask> onPanResponderMove: (e, gs) => this.handlePanResponderMove(e, gs),
<mask> onPanResponderRelease: (e, gs) => this.handlePanResponderEnd(e, gs),
<mask> onPanResponderTerminate: (e, gs) => this.handlePanResponderEnd(e, gs),
<mask> onShouldBlockNativeResponder: _ => false,
<mask> });
</s> chore(): adss format script and formats files </s> remove onShouldBlockNativeResponder: _ => false,
</s> add onShouldBlockNativeResponder: _ => false </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: 0,
</s> add hiddenWidth: 0 </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);
}); </s> remove onBlur={(e) => {
</s> add onBlur={e => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
onShouldBlockNativeResponder: _ => false | <mask> onMoveShouldSetPanResponder: (e, gs) => this.handleOnMoveShouldSetPanResponder(e, gs),
<mask> onPanResponderMove: (e, gs) => this.handlePanResponderMove(e, gs),
<mask> onPanResponderRelease: (e, gs) => this.handlePanResponderEnd(e, gs),
<mask> onPanResponderTerminate: (e, gs) => this.handlePanResponderEnd(e, gs),
<mask> onShouldBlockNativeResponder: _ => false,
<mask> });
<mask> }
<mask>
<mask> getPreviewAnimation(toValue, delay) {
<mask> return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });
</s> chore(): adss format script and formats files </s> remove onMoveShouldSetPanResponder: (e, gs) => this.handleOnMoveShouldSetPanResponder(e, gs),
</s> add onMoveShouldSetPanResponder: (e, gs) =>
this.handleOnMoveShouldSetPanResponder(e, gs), </s> remove return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });
</s> add return Animated.timing(this._translateX, {
duration: this.props.previewDuration,
toValue,
delay
}); </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 this.setState({ containerWidth: width });
this.requestAnimationFrame(() => {
this.goToPage(this.state.currentPage);
});
</s> add this.setState({ containerWidth: width });
this.requestAnimationFrame(() => {
this.goToPage(this.state.currentPage);
}); </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/SwipeRow.js |
return Animated.timing(this._translateX, {
duration: this.props.previewDuration,
toValue,
delay
}); | <mask> });
<mask> }
<mask>
<mask> getPreviewAnimation(toValue, delay) {
<mask> return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });
<mask> }
<mask>
<mask> onContentLayout(e) {
<mask> this.setState({
<mask> dimensionsSet: !this.props.recalculateHiddenLayout,
</s> chore(): adss format script and formats files </s> remove onShouldBlockNativeResponder: _ => false,
</s> add onShouldBlockNativeResponder: _ => false </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </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);
}); </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 })
</s> add }); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
hiddenWidth: e.nativeEvent.layout.width | <mask> onContentLayout(e) {
<mask> this.setState({
<mask> dimensionsSet: !this.props.recalculateHiddenLayout,
<mask> hiddenHeight: e.nativeEvent.layout.height,
<mask> hiddenWidth: e.nativeEvent.layout.width,
<mask> });
<mask>
<mask> if (this.props.preview && !this.ranPreview) {
<mask> this.ranPreview = true;
<mask> let previewOpenValue = this.props.previewOpenValue || this.props.rightOpenValue * 0.5;
</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: 0,
</s> add hiddenWidth: 0 </s> remove return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });
</s> add return Animated.timing(this._translateX, {
duration: this.props.previewDuration,
toValue,
delay
}); </s> remove if (this.props.children[i].props.name && this.props.children[i].type.displayName !== "Styled(Input)") {
</s> add if (
this.props.children[i].props.name &&
this.props.children[i].type.displayName !== "Styled(Input)"
) { </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",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
let previewOpenValue =
this.props.previewOpenValue || this.props.rightOpenValue * 0.5;
this.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(
_ => {
this.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();
}
); | <mask> });
<mask>
<mask> if (this.props.preview && !this.ranPreview) {
<mask> this.ranPreview = true;
<mask> let previewOpenValue = this.props.previewOpenValue || this.props.rightOpenValue * 0.5;
<mask> this.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(_ => {
<mask> this.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();
<mask> });
<mask> }
<mask> }
<mask>
<mask> handleOnMoveShouldSetPanResponder(e, gs) {
<mask> const { dx } = gs;
</s> chore(): adss format script and formats files </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </s> remove if (this.props.children[i].props.name && this.props.children[i].type.displayName !== "Styled(Input)") {
</s> add if (
this.props.children[i].props.name &&
this.props.children[i].type.displayName !== "Styled(Input)"
) { </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);
}); </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 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",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here | <mask> const { dx, dy } = gestureState;
<mask> const absDx = Math.abs(dx);
<mask> const absDy = Math.abs(dy);
<mask>
<mask> // this check may not be necessary because we don't capture the move until we pass the threshold
<mask> // just being extra safe here
<mask> if (
<mask> absDx > this.props.directionalDistanceChangeThreshold ||
<mask> absDy > this.props.directionalDistanceChangeThreshold
<mask> ) {
<mask> // we have enough to determine direction
</s> chore(): adss format script and formats files </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle </s> remove clearTimeout(this.closeTimeout)
</s> add clearTimeout(this.closeTimeout); </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 // trying to open right
if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction | <mask>
<mask> // this check may not be necessary because we don't capture the move until we pass the threshold
<mask> // just being extra safe here
<mask> if (
<mask> absDx > this.props.directionalDistanceChangeThreshold ||
<mask> absDy > this.props.directionalDistanceChangeThreshold
<mask> ) {
<mask> // we have enough to determine direction
<mask> if (absDy > absDx && !this.horizontalSwipeGestureBegan) {
<mask> // user is moving vertically, do nothing, listView will handle
<mask> return;
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </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. | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// user is moving vertically, do nothing, listView will handle | <mask> absDy > this.props.directionalDistanceChangeThreshold
<mask> ) {
<mask> // we have enough to determine direction
<mask> if (absDy > absDx && !this.horizontalSwipeGestureBegan) {
<mask> // user is moving vertically, do nothing, listView will handle
<mask> return;
<mask> }
<mask>
<mask> // user is moving horizontally
<mask> if (this.parentScrollEnabled) {
</s> chore(): adss format script and formats files </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </s> remove // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove // set tranlateX value when user started swiping
</s> add // set tranlateX value when user started swiping | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// user is moving horizontally | <mask> // user is moving vertically, do nothing, listView will handle
<mask> return;
<mask> }
<mask>
<mask> // user is moving horizontally
<mask> if (this.parentScrollEnabled) {
<mask> // disable scrolling on the listView parent
<mask> this.parentScrollEnabled = false;
<mask> this.props.setScrollEnabled && this.props.setScrollEnabled(false);
<mask> }
</s> chore(): adss format script and formats files </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle </s> remove // re-enable scrolling on listView parent
</s> add // re-enable scrolling on listView parent </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction </s> remove // set tranlateX value when user started swiping
</s> add // set tranlateX value when user started swiping | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// disable scrolling on the listView parent | <mask> }
<mask>
<mask> // user is moving horizontally
<mask> if (this.parentScrollEnabled) {
<mask> // disable scrolling on the listView parent
<mask> this.parentScrollEnabled = false;
<mask> this.props.setScrollEnabled && this.props.setScrollEnabled(false);
<mask> }
<mask>
<mask> if (this.swipeInitialX === null) {
</s> chore(): adss format script and formats files </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // re-enable scrolling on listView parent
</s> add // re-enable scrolling on listView parent </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle </s> remove // set tranlateX value when user started swiping
</s> add // set tranlateX value when user started swiping </s> remove // finish up the animation
</s> add // finish up the animation | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// set tranlateX value when user started swiping | <mask> this.props.setScrollEnabled && this.props.setScrollEnabled(false);
<mask> }
<mask>
<mask> if (this.swipeInitialX === null) {
<mask> // set tranlateX value when user started swiping
<mask> this.swipeInitialX = this._translateX._value;
<mask> }
<mask> if (!this.horizontalSwipeGestureBegan) {
<mask> this.horizontalSwipeGestureBegan = true;
<mask> this.props.swipeGestureBegan && this.props.swipeGestureBegan();
</s> chore(): adss format script and formats files </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // reset everything
</s> add // reset everything </s> remove // re-enable scrolling on listView parent
</s> add // re-enable scrolling on listView parent </s> remove // finish up the animation
</s> add // finish up the animation | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// re-enable scrolling on listView parent | <mask> }
<mask> }
<mask>
<mask> handlePanResponderEnd(e, gestureState) {
<mask> // re-enable scrolling on listView parent
<mask> if (!this.parentScrollEnabled) {
<mask> this.parentScrollEnabled = true;
<mask> this.props.setScrollEnabled && this.props.setScrollEnabled(true);
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // finish up the animation
</s> add // finish up the animation </s> remove // set tranlateX value when user started swiping
</s> add // set tranlateX value when user started swiping </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// finish up the animation | <mask> this.parentScrollEnabled = true;
<mask> this.props.setScrollEnabled && this.props.setScrollEnabled(true);
<mask> }
<mask>
<mask> // finish up the animation
<mask> let toValue = 0;
<mask> if (this._translateX._value >= 0) {
<mask> // trying to open right
<mask> if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
<mask> // we're more than halfway
</s> chore(): adss format script and formats files </s> remove // trying to open right
if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </s> remove // trying to open left
if (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open left
if (
this._translateX._value <
this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </s> remove // re-enable scrolling on listView parent
</s> add // re-enable scrolling on listView parent </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent </s> remove // user is moving horizontally
</s> add // user is moving horizontally | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway | <mask>
<mask> // finish up the animation
<mask> let toValue = 0;
<mask> if (this._translateX._value >= 0) {
<mask> // trying to open right
<mask> if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
<mask> // we're more than halfway
<mask> toValue = this.props.leftOpenValue;
<mask> }
<mask> } else {
<mask> // trying to open left
<mask> if (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {
</s> chore(): adss format script and formats files </s> remove // finish up the animation
</s> add // finish up the animation </s> remove // trying to open left
if (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open left
if (
this._translateX._value <
this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
</s> add const duration = config.duration > 0 ? config.duration : 1500;
this.closeTimeout = setTimeout(
this.closeToast.bind(this, "timeout"),
duration
); </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 clearTimeout(this.closeTimeout)
</s> add clearTimeout(this.closeTimeout); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// trying to open left
if (
this._translateX._value <
this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway | <mask> // we're more than halfway
<mask> toValue = this.props.leftOpenValue;
<mask> }
<mask> } else {
<mask> // trying to open left
<mask> if (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {
<mask> // we're more than halfway
<mask> toValue = this.props.rightOpenValue;
<mask> }
<mask> }
<mask>
<mask> this.manuallySwipeRow(toValue);
</s> chore(): adss format script and formats files </s> remove // trying to open right
if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </s> remove // finish up the animation
</s> add // finish up the animation </s> remove // reset everything
</s> add // reset everything </s> remove // re-enable scrolling on listView parent
</s> add // re-enable scrolling on listView parent </s> remove // disable scrolling on the listView parent
</s> add // disable scrolling on the listView parent | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
/*
* This method is called by SwipeListView
*/ | <mask>
<mask> this.manuallySwipeRow(toValue);
<mask> }
<mask>
<mask> /*
<mask> * This method is called by SwipeListView
<mask> */
<mask> closeRow() {
<mask> this.manuallySwipeRow(0);
<mask> }
<mask>
<mask> openLeftRow() {
</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 openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
}
</s> add openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
} </s> remove // trying to open left
if (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open left
if (
this._translateX._value <
this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </s> remove // user is moving horizontally
</s> add // user is moving horizontally </s> remove // user is moving vertically, do nothing, listView will handle
</s> add // user is moving vertically, do nothing, listView will handle | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
} | <mask> closeRow() {
<mask> this.manuallySwipeRow(0);
<mask> }
<mask>
<mask> openLeftRow() {
<mask> this.manuallySwipeRow(this.props.leftOpenValue);
<mask> }
<mask>
<mask> openRightRow() {
<mask> this.manuallySwipeRow(this.props.rightOpenValue);
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
}
</s> add openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
} </s> remove /*
* This method is called by SwipeListView
*/
</s> add /*
* This method is called by SwipeListView
*/ </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 const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; </s> remove const { props: { active } } = this;
</s> add const {
props: { active }
} = this; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
} | <mask> openLeftRow() {
<mask> this.manuallySwipeRow(this.props.leftOpenValue);
<mask> }
<mask>
<mask> openRightRow() {
<mask> this.manuallySwipeRow(this.props.rightOpenValue);
<mask> }
<mask>
<mask> manuallySwipeRow(toValue) {
<mask> Animated.spring(this._translateX, {
<mask> toValue,
<mask> friction: this.props.friction,
</s> chore(): adss format script and formats files </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 openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
}
</s> add openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
} </s> remove return Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });
</s> add return Animated.timing(this._translateX, {
duration: this.props.previewDuration,
toValue,
delay
}); </s> remove /*
* This method is called by SwipeListView
*/
</s> add /*
* This method is called by SwipeListView
*/ </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
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();
}
}); | <mask> openRightRow() {
<mask> this.manuallySwipeRow(this.props.rightOpenValue);
<mask> }
<mask>
<mask> manuallySwipeRow(toValue) {
<mask> Animated.spring(this._translateX, {
<mask> toValue,
<mask> friction: this.props.friction,
<mask> tension: this.props.tension,
<mask> }).start(_ => {
<mask> if (toValue === 0) {
<mask> this.props.onRowDidClose && this.props.onRowDidClose();
<mask> } else {
<mask> this.props.onRowDidOpen && this.props.onRowDidOpen();
<mask> }
<mask> });
<mask>
<mask> if (toValue === 0) {
<mask> this.props.onRowClose && this.props.onRowClose();
<mask> } else {
<mask> this.props.onRowOpen && this.props.onRowOpen(toValue);
</s> chore(): adss format script and formats files </s> remove openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
}
</s> add openRightRow() {
this.manuallySwipeRow(this.props.rightOpenValue);
} </s> remove // reset everything
</s> add // reset everything </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 if (style && typeof style === "object" && styleName !== "fontVariant" && styleName !== "transform") {
</s> add if (
style &&
typeof style === "object" &&
styleName !== "fontVariant" &&
styleName !== "transform"
) { </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; | [
"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/SwipeRow.js |
// reset everything | <mask> } else {
<mask> this.props.onRowOpen && this.props.onRowOpen(toValue);
<mask> }
<mask>
<mask> // reset everything
<mask> this.swipeInitialX = null;
<mask> this.horizontalSwipeGestureBegan = false;
<mask> }
<mask>
<mask> renderMainContent() {
</s> chore(): adss format script and formats files </s> remove swipeToOpenPercent: 50,
</s> add swipeToOpenPercent: 50 </s> remove // set tranlateX value when user started swiping
</s> add // set tranlateX value when user started swiping </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 // 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 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/SwipeRow.js |
// We do this annoying if statement for performance.
// We don't want the onLayout func to run after it runs once. | <mask> this.horizontalSwipeGestureBegan = false;
<mask> }
<mask>
<mask> renderMainContent() {
<mask> // We do this annoying if statement for performance.
<mask> // We don't want the onLayout func to run after it runs once.
<mask> if (this.state.dimensionsSet) {
<mask> return (
<mask> <Animated.View
<mask> {...this._panResponder.panHandlers}
<mask> style={{
</s> chore(): adss format script and formats files </s> remove <Animated.View
{...this._panResponder.panHandlers}
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}
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 // reset everything
</s> add // reset everything </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction </s> remove // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove clearTimeout(this.closeTimeout)
</s> add clearTimeout(this.closeTimeout); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
<Animated.View
{...this._panResponder.panHandlers}
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> | <mask> // We do this annoying if statement for performance.
<mask> // We don't want the onLayout func to run after it runs once.
<mask> if (this.state.dimensionsSet) {
<mask> return (
<mask> <Animated.View
<mask> {...this._panResponder.panHandlers}
<mask> style={{
<mask> transform: [{ translateX: this._translateX }],
<mask> zIndex: 2,
<mask> }}
<mask> >
<mask> {!this.props.list
<mask> ? <ListItem list style={this.props.style}>
<mask> {this.props.body}
<mask> </ListItem>
<mask> : <View style={[{ backgroundColor: '#FFF' },this.props.style]}>
<mask> {this.props.body}
<mask> </View>}
<mask> </Animated.View>
<mask> );
<mask> } else {
<mask> return (
<mask> <Animated.View
<mask> {...this._panResponder.panHandlers}
</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 <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 absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction </s> remove // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove // trying to open right
if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
<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> | <mask> </Animated.View>
<mask> );
<mask> } else {
<mask> return (
<mask> <Animated.View
<mask> {...this._panResponder.panHandlers}
<mask> onLayout={e => this.onContentLayout(e)}
<mask> style={{
<mask> transform: [{ translateX: this._translateX }],
<mask> zIndex: 2,
<mask> }}
<mask> >
<mask> {!this.props.list
<mask> ? <ListItem list style={this.props.style}>
<mask> {this.props.body}
<mask> </ListItem>
<mask> : <View style={[{ backgroundColor: '#FFF' },this.props.style]}>
<mask> {this.props.body}
<mask> </View>}
<mask> </Animated.View>
<mask> );
<mask> }
<mask> }
<mask>
<mask> render() {
</s> chore(): adss format script and formats files </s> remove <Animated.View
{...this._panResponder.panHandlers}
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}
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 <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 </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 <TouchableNativeFeedback
ref={c => (this._root = c)}
{...this.props}
>
</s> add <TouchableNativeFeedback ref={c => (this._root = c)} {...this.props}> </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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
<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> | <mask> }
<mask>
<mask> render() {
<mask> return (
<mask> <View style={this.props.style ? this.props.style : undefined}>
<mask> <View
<mask> style={[
<mask> styles.hidden,
<mask> {
<mask> height: this.state.hiddenHeight,
<mask> flex:1,
<mask> flexDirection: "row",
<mask> justifyContent: "space-between",
<mask> },
<mask> ]}
<mask> >
<mask> <Left style={{ width: this.props.leftOpenValue, zIndex: 1 }}>
<mask> {this.props.left}
<mask> </Left>
<mask> <Body style={{ flex: 0 }} />
<mask> <Right style={{ width: -this.props.rightOpenValue, zIndex: 1 }}>
<mask> {this.props.right}
<mask> </Right>
<mask> </View>
<mask> {this.renderMainContent()}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask>
<mask> const styles = {
</s> chore(): adss format script and formats files </s> remove <View {...this.props} testID={undefined}>{this.props.children}</View>
</s> add <View {...this.props} testID={undefined}>
{this.props.children}
</View> </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 <Animated.View
{...this._panResponder.panHandlers}
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}
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 <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>
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
// As of RN 0.29 flex: 1 is causing all rows to be the same height
// flex: 1 | <mask> }
<mask>
<mask> const styles = {
<mask> container: {
<mask> // As of RN 0.29 flex: 1 is causing all rows to be the same height
<mask> // flex: 1
<mask> },
<mask> hidden: {
<mask> bottom: 0,
<mask> left: 0,
<mask> overflow: "hidden",
</s> chore(): adss format script and formats files </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove top: 0,
},
</s> add top: 0
} </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 // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
top: 0
} | <mask> left: 0,
<mask> overflow: "hidden",
<mask> position: "absolute",
<mask> right: 0,
<mask> top: 0,
<mask> },
<mask> };
<mask>
<mask> const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
<mask> export { StyledSwipeRow as SwipeRow };
</s> chore(): adss format script and formats files </s> remove const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
</s> add const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); </s> remove // As of RN 0.29 flex: 1 is causing all rows to be the same height
// flex: 1
</s> add // As of RN 0.29 flex: 1 is causing all rows to be the same height
// flex: 1 </s> remove ? Platform.OS === "ios" ? 8 : 8
</s> add ? Platform.OS === "ios"
? 8
: 8 </s> remove ? Platform.OS === "ios" ? 50 : 8
</s> add ? Platform.OS === "ios"
? 50
: 8 </s> remove ? 15
: isIcon
? 26
: 0,
</s> add ? 15
: isIcon
? 26
: 0, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
const StyledSwipeRow = connectStyle(
"NativeBase.SwipeRow",
{},
mapPropsToStyleNames
)(SwipeRow); | <mask> top: 0,
<mask> },
<mask> };
<mask>
<mask> const StyledSwipeRow = connectStyle("NativeBase.SwipeRow", {}, mapPropsToStyleNames)(SwipeRow);
<mask> export { StyledSwipeRow as SwipeRow };
</s> chore(): adss format script and formats files </s> remove top: 0,
},
</s> add top: 0
} </s> remove const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </s> remove ...Switch.propTypes,
</s> add ...Switch.propTypes | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/SwipeRow.js |
...Switch.propTypes | <mask> }
<mask> }
<mask>
<mask> Switch.propTypes = {
<mask> ...Switch.propTypes,
<mask> };
<mask>
<mask> const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
<mask>
<mask> export { StyledSwitch as Switch };
</s> chore(): adss format script and formats files </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove ...Picker.Item.propTypes,
</s> add ...Picker.Item.propTypes </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/Switch.js |
const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); | <mask> Switch.propTypes = {
<mask> ...Switch.propTypes,
<mask> };
<mask>
<mask> const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
<mask>
<mask> export { StyledSwitch as Switch };
</s> chore(): adss format script and formats files </s> remove ...Switch.propTypes,
</s> add ...Switch.propTypes </s> remove const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </s> remove ...Picker.Item.propTypes,
</s> add ...Picker.Item.propTypes </s> remove inverse: PropTypes.bool,
</s> add inverse: PropTypes.bool | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Switch.js |
return <TouchableOpacity {...props}>{props.children}</TouchableOpacity>; | <mask> const ReactNative = require("react-native");
<mask> const { TouchableOpacity, View } = ReactNative;
<mask>
<mask> const Button = props => {
<mask> return (
<mask> <TouchableOpacity {...props}>
<mask> {props.children}
<mask> </TouchableOpacity>
<mask> );
<mask> };
<mask>
<mask> module.exports = Button;
<mask> //export default Button;
</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 const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${props.style
.height}`;
</s> add const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${
props.style.height
}`; </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 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 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
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Tabs/Button.js |
if (
!width ||
width <= 0 ||
Math.round(width) === Math.round(this.state.containerWidth)
) { | <mask>
<mask> _handleLayout(e) {
<mask> const { width } = e.nativeEvent.layout;
<mask>
<mask> if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) {
<mask> return;
<mask> }
<mask> this.setState({ containerWidth: width });
<mask> this.requestAnimationFrame(() => {
<mask> this.goToPage(this.state.currentPage);
</s> chore(): adss format script and formats files </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);
}); </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 const { props: { active } } = this;
</s> add const {
props: { active }
} = this; </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </s> remove const { props: { direction, position } } = this;
</s> add const {
props: { direction, position }
} = this; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Tabs/index.js |
this.setState({ containerWidth: width });
this.requestAnimationFrame(() => {
this.goToPage(this.state.currentPage);
}); | <mask>
<mask> if (!width || width <= 0 || Math.round(width) === Math.round(this.state.containerWidth)) {
<mask> return;
<mask> }
<mask> this.setState({ containerWidth: width });
<mask> this.requestAnimationFrame(() => {
<mask> this.goToPage(this.state.currentPage);
<mask> });
<mask> },
<mask>
<mask> _children(children = this.props.children) {
<mask> return React.Children.map(children, child => child);
<mask> },
</s> chore(): adss format script and formats files </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 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 uppercase: variables.btnUppercaseAndroidText,
...child.props
})
</s> add uppercase: variables.btnUppercaseAndroidText,
...child.props
}) </s> remove hiddenWidth: e.nativeEvent.layout.width,
</s> add hiddenWidth: e.nativeEvent.layout.width </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Tabs/index.js |
const { uppercase, children } = this.props; | <mask> import mapPropsToStyleNames from "../utils/mapPropsToStyleNames";
<mask>
<mask> class Text extends Component {
<mask> render() {
<mask> const {
<mask> uppercase,
<mask> children,
<mask> } = this.props;
<mask>
<mask> let text;
<mask> if (uppercase) {
<mask> text = React.Children.map(children, child => {
<mask> if (_.isString(child)) {
</s> chore(): adss format script and formats files </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </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 theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </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",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Text.js |
}); | <mask> return _.toUpper(child);
<mask> } else {
<mask> return child;
<mask> }
<mask> })
<mask> } else {
<mask> text = children;
<mask> }
<mask>
<mask> return (
</s> chore(): adss format script and formats files </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 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 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 <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 children = [].concat.apply([], children)
</s> add children = [].concat.apply([], children); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Text.js |
<RNText ref={c => (this._root = c)} {...this.props}>
{text}
</RNText> | <mask> text = children;
<mask> }
<mask>
<mask> return (
<mask> <RNText ref={c => (this._root = c)} {...this.props}>
<mask> {text}
<mask> </RNText>
<mask> );
<mask> }
<mask> }
<mask>
<mask> Text.propTypes = {
</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 <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 <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",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Text.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> Text.propTypes = {
<mask> ...RNText.propTypes,
<mask> uppercase: PropTypes.bool,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> Text.defaultProps = {
<mask> uppercase: false,
<mask> };
</s> chore(): adss format script and formats files </s> remove uppercase: false,
</s> add uppercase: false </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </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/Text.js |
uppercase: false | <mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> Text.defaultProps = {
<mask> uppercase: false,
<mask> };
<mask>
<mask> const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
<mask>
<mask> export { StyledText as Text };
</s> chore(): adss format script and formats files </s> remove const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
</s> add const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); </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/Text.js |
const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(
Text
); | <mask> Text.defaultProps = {
<mask> uppercase: false,
<mask> };
<mask>
<mask> const StyledText = connectStyle("NativeBase.Text", {}, mapPropsToStyleNames)(Text);
<mask>
<mask> export { StyledText as Text };
</s> chore(): adss format script and formats files </s> remove uppercase: false,
</s> add uppercase: false </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 StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(Item);
</s> add const StyledItem = connectStyle("NativeBase.Item", {}, mapPropsToStyleNames)(
Item
); </s> remove const StyledSwitch = connectStyle("NativeBase.Switch", {}, mapPropsToStyleNames)(Switch);
</s> add const StyledSwitch = connectStyle(
"NativeBase.Switch",
{},
mapPropsToStyleNames
)(Switch); </s> remove ...Picker.Item.propTypes,
</s> add ...Picker.Item.propTypes | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Text.js |
height: this.props.rowSpan ? this.props.rowSpan * 25 : 60
} | <mask> class Textarea extends Component {
<mask> getStyle() {
<mask> return {
<mask> textarea: {
<mask> height: this.props.rowSpan ? this.props.rowSpan * 25 : 60,
<mask> },
<mask> };
<mask> }
<mask>
<mask> prepareRootProps() {
<mask> const defaultProps = {
</s> chore(): adss format script and formats files </s> remove style: this.getStyle().textarea,
</s> add style: this.getStyle().textarea </s> remove theme: PropTypes.object,
</s> add theme: PropTypes.object </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = this.props; </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",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Textarea.js |
style: this.getStyle().textarea | <mask> }
<mask>
<mask> prepareRootProps() {
<mask> const defaultProps = {
<mask> style: this.getStyle().textarea,
<mask> };
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
<mask> return (
</s> chore(): adss format script and formats files </s> remove style: this.getInitialStyle(variables).checkStyle,
</s> add style: this.getInitialStyle(variables).checkStyle </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 height: this.props.rowSpan ? this.props.rowSpan * 25 : 60,
},
</s> add height: this.props.rowSpan ? this.props.rowSpan * 25 : 60
} </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/Textarea.js |
<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}
/> | <mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
<mask> return (
<mask> <TextInput
<mask> ref={c => {
<mask> this._textInput = c;
<mask> this._root = c;
<mask> }}
<mask> {...this.prepareRootProps()}
<mask> multiline
<mask> placeholderTextColor={
<mask> this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder
<mask> }
<mask> underlineColorAndroid="rgba(0,0,0,0)"
<mask> editable={this.props.disabled ? false : true}
<mask> />
<mask> );
<mask> }
<mask> }
<mask>
<mask> Textarea.propTypes = {
</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 ? 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 if (c)
ActionSheet.actionsheetInstance = c;
</s> add if (c) ActionSheet.actionsheetInstance = c; </s> remove style: this.getStyle().textarea,
</s> add style: this.getStyle().textarea | [
"keep",
"keep",
"keep",
"keep",
"replace",
"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/Textarea.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> Textarea.propTypes = {
<mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> rowSpan: PropTypes.number,
<mask> bordered: PropTypes.bool,
<mask> underline: PropTypes.bool,
<mask> };
<mask>
</s> chore(): adss format script and formats files </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
]) </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/Textarea.js |
underline: PropTypes.bool | <mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> rowSpan: PropTypes.number,
<mask> bordered: PropTypes.bool,
<mask> underline: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
<mask>
<mask> export { StyledTextarea as Textarea };
</s> chore(): adss format script and formats files </s> remove const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
</s> add const StyledTextarea = connectStyle(
"NativeBase.Textarea",
{},
mapPropsToStyleNames
)(Textarea); </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 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
]) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Textarea.js |
const StyledTextarea = connectStyle(
"NativeBase.Textarea",
{},
mapPropsToStyleNames
)(Textarea); | <mask> bordered: PropTypes.bool,
<mask> underline: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledTextarea = connectStyle("NativeBase.Textarea", {}, mapPropsToStyleNames)(Textarea);
<mask>
<mask> export { StyledTextarea as Textarea };
</s> chore(): adss format script and formats files </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 button: PropTypes.bool,
</s> add button: PropTypes.bool </s> remove const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
</s> add const StyledCardItem = connectStyle(
"NativeBase.CardItem",
{},
mapPropsToStyleNames
)(CardItem); </s> remove size: PropTypes.number,
</s> add size: PropTypes.number | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Textarea.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> Thumbnail.propTypes = {
<mask> ...Image.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> square: PropTypes.bool,
<mask> circular: PropTypes.bool,
<mask> size: PropTypes.number,
<mask> };
<mask>
</s> chore(): adss format script and formats files </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
]), </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/Thumbnail.js |
size: PropTypes.number | <mask> ...Image.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> square: PropTypes.bool,
<mask> circular: PropTypes.bool,
<mask> size: PropTypes.number,
<mask> };
<mask>
<mask> const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
<mask>
<mask> export { StyledThumbnail as Thumbnail };
</s> chore(): adss format script and formats files </s> remove const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
</s> add const StyledThumbnail = connectStyle(
"NativeBase.Thumbnail",
{},
mapPropsToStyleNames
)(Thumbnail); </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 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
]), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Thumbnail.js |
const StyledThumbnail = connectStyle(
"NativeBase.Thumbnail",
{},
mapPropsToStyleNames
)(Thumbnail); | <mask> circular: PropTypes.bool,
<mask> size: PropTypes.number,
<mask> };
<mask>
<mask> const StyledThumbnail = connectStyle("NativeBase.Thumbnail", {}, mapPropsToStyleNames)(Thumbnail);
<mask>
<mask> export { StyledThumbnail as Thumbnail };
</s> chore(): adss format script and formats files </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
]), </s> remove underline: PropTypes.bool,
</s> add underline: PropTypes.bool </s> remove button: PropTypes.bool,
</s> add button: PropTypes.bool </s> remove onPress: PropTypes.func,
</s> add onPress: PropTypes.func | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Thumbnail.js |
return (
<Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />
); | <mask> import mapPropsToStyleNames from "../utils/mapPropsToStyleNames";
<mask>
<mask> class Title extends Component {
<mask> render() {
<mask> return <Text ref={c => (this._root = c)} numberOfLines={1} {...this.props} />;
<mask> }
<mask> }
<mask>
<mask> Title.propTypes = {
<mask> ...Text.propTypes,
</s> chore(): adss format script and formats files </s> remove const {
uppercase,
children,
} = this.props;
</s> add const { uppercase, children } = 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 <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 theme: PropTypes.object,
</s> add theme: PropTypes.object </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/Title.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Title.propTypes = {
<mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(Title);
<mask> export { StyledTitle as Title };
</s> chore(): adss format script and formats files </s> remove const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(Title);
</s> add const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(
Title
); </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"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Title.js |
const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(
Title
); | <mask> ...Text.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledTitle = connectStyle("NativeBase.Title", {}, mapPropsToStyleNames)(Title);
<mask> export { StyledTitle as Title };
</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"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Title.js |
clearTimeout(this.closeTimeout); | <mask> onClose: config.onClose
<mask> });
<mask> // If we have a toast already open, cut off its close timeout so that it won't affect *this* toast.
<mask> if (this.closeTimeout) {
<mask> clearTimeout(this.closeTimeout)
<mask> }
<mask> // Set the toast to close after the duration.
<mask> if (config.duration !== 0) {
<mask> const duration = (config.duration > 0) ? config.duration : 1500;
<mask> this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
</s> chore(): adss format script and formats files </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
</s> add const duration = config.duration > 0 ? config.duration : 1500;
this.closeTimeout = setTimeout(
this.closeToast.bind(this, "timeout"),
duration
); </s> remove // finish up the animation
</s> add // finish up the animation </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 // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here </s> remove absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction
</s> add absDx > this.props.directionalDistanceChangeThreshold ||
absDy > this.props.directionalDistanceChangeThreshold
) {
// we have enough to determine direction | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/ToastContainer.js |
const duration = config.duration > 0 ? config.duration : 1500;
this.closeTimeout = setTimeout(
this.closeToast.bind(this, "timeout"),
duration
); | <mask> clearTimeout(this.closeTimeout)
<mask> }
<mask> // Set the toast to close after the duration.
<mask> if (config.duration !== 0) {
<mask> const duration = (config.duration > 0) ? config.duration : 1500;
<mask> this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
<mask> }
<mask> // Fade the toast in now.
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 1,
<mask> duration: 200
</s> chore(): adss format script and formats files </s> remove clearTimeout(this.closeTimeout)
</s> add clearTimeout(this.closeTimeout); </s> remove // finish up the animation
</s> add // finish up the animation </s> remove // trying to open right
if (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {
// we're more than halfway
</s> add // trying to open right
if (
this._translateX._value >
this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)
) {
// we're more than halfway </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 // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here
</s> add // this check may not be necessary because we don't capture the move until we pass the threshold
// just being extra safe here | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/ToastContainer.js |
onPress={() => this.closeToast("user")} | <mask> <Text style={this.state.textStyle}>{this.state.text}</Text>
<mask> {this.state.buttonText && (
<mask> <Button
<mask> style={this.state.buttonStyle}
<mask> onPress={() => this.closeToast('user')}
<mask> >
<mask> <Text style={this.state.buttonTextStyle}>
<mask> {this.state.buttonText}
<mask> </Text>
<mask> </Button>
</s> chore(): adss format script and formats files </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 <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 onRequestClose={() => { }}
</s> add onRequestClose={() => {}} </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]}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/ToastContainer.js |
import variable from "./../variables/platform"; | <mask> // @flow
<mask>
<mask> import variable from './../variables/platform';
<mask>
<mask> export default (variables /*: * */ = variable) => {
<mask> const bodyTheme = {
<mask> flex: 1,
<mask> alignItems: 'center',
</s> chore(): adss format script and formats files </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Body.js |
alignItems: "center",
alignSelf: "center" | <mask>
<mask> export default (variables /*: * */ = variable) => {
<mask> const bodyTheme = {
<mask> flex: 1,
<mask> alignItems: 'center',
<mask> alignSelf: 'center',
<mask> };
<mask>
<mask> return bodyTheme;
<mask> };
</s> chore(): adss format script and formats files </s> remove alignSelf: 'center',
alignItems: 'flex-start',
</s> add alignSelf: "center",
alignItems: "flex-start" </s> remove import variable from './../variables/platform';
</s> add import variable from "./../variables/platform"; </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 alignSelf: 'center',
alignItems: 'flex-end',
</s> add alignSelf: "center",
alignItems: "flex-end" | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Body.js |
fontSize: 22 | <mask>
<mask> ".large": {
<mask> height: 60,
<mask> "NativeBase.Text": {
<mask> fontSize: 22,
<mask> }
<mask> },
<mask>
<mask> ".capitalize": {},
<mask>
</s> chore(): adss format script and formats files </s> remove 'NativeBase.Text': {
</s> add "NativeBase.Text": { </s> remove '.large': {
</s> add ".large": { </s> remove height: this.props.rowSpan ? this.props.rowSpan * 25 : 60,
},
</s> add height: this.props.rowSpan ? this.props.rowSpan * 25 : 60
} </s> remove '.large': {
</s> add ".large": { </s> remove '.noTopBorder': {
borderTopWidth: 0,
</s> add ".noTopBorder": {
borderTopWidth: 0 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Button.js |
marginRight: 0 | <mask> "NativeBase.Icon": {
<mask> alignSelf: "center",
<mask> fontSize: 20,
<mask> marginLeft: 0,
<mask> marginRight: 0,
<mask> },
<mask> "NativeBase.IconNB": {
<mask> alignSelf: "center",
<mask> fontSize: 20,
<mask> marginLeft: 0,
</s> chore(): adss format script and formats files </s> remove marginRight: 0,
},
},
</s> add marginRight: 0
}
} </s> remove marginLeft: 0,
</s> add marginLeft: 0 </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Fab.js |
marginRight: 0
}
} | <mask> "NativeBase.IconNB": {
<mask> alignSelf: "center",
<mask> fontSize: 20,
<mask> marginLeft: 0,
<mask> marginRight: 0,
<mask> },
<mask> },
<mask> };
<mask>
<mask> return fabTheme;
<mask> };
</s> chore(): adss format script and formats files </s> remove marginRight: 0,
</s> add marginRight: 0 </s> remove marginLeft: 0,
</s> add marginLeft: 0 </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Fab.js |
...iconNBCommon | <mask> ...textCommon
<mask> },
<mask> alignSelf: null,
<mask> ...iconCommon,
<mask> ...iconNBCommon,
<mask> // ...textCommon
<mask> },
<mask> flex: 1,
<mask> alignSelf: "center",
<mask> alignItems: "flex-start"
</s> chore(): adss format script and formats files </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove alignSelf: 'center',
alignItems: 'flex-end',
</s> add alignSelf: "center",
alignItems: "flex-end" </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Footer.js |
...iconNBCommon | <mask> paddingBottom: variables.footerPaddingBottom,
<mask> flex: 1
<mask> },
<mask> ...iconCommon,
<mask> ...iconNBCommon,
<mask> // ...textCommon
<mask> }
<mask> },
<mask> "NativeBase.Right": {
<mask> "NativeBase.Button": {
</s> chore(): adss format script and formats files </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove // As of RN 0.29 flex: 1 is causing all rows to be the same height
// flex: 1
</s> add // As of RN 0.29 flex: 1 is causing all rows to be the same height
// flex: 1 </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Footer.js |
...iconNBCommon | <mask> ...textCommon
<mask> },
<mask> alignSelf: null,
<mask> ...iconCommon,
<mask> ...iconNBCommon,
<mask> // ...textCommon
<mask> },
<mask> flex: 1,
<mask> alignSelf: "center",
<mask> alignItems: "flex-end"
</s> chore(): adss format script and formats files </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove alignSelf: 'center',
alignItems: 'flex-end',
</s> add alignSelf: "center",
alignItems: "flex-end" </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} </s> remove ...iconNBCommon,
</s> add ...iconNBCommon </s> remove borderRadius: 0,
},
</s> add borderRadius: 0
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/theme/components/Footer.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.