docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
"format": "prettier --write \"src/**/*.{js,json}\"", | <mask> "scripts": {
<mask> "compile": "rm -rf dist/* && babel . --out-dir dist --ignore node_modules,dist --source-maps ",
<mask> "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon",
<mask> "prepublish": "npm run transpile",
<mask> "postinstall": "node addEjectScr... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | package.json |
"prettier": "1.16.4", | <mask> "typings": "./index.d.ts",
<mask> "optionalDependencies": {},
<mask> "peerDependencies": {
<mask> "react": ">=16.4.1",
<mask> "react-native": ">=0.56.0"
<mask> },
<mask> "readmeFilename": "README.md",
<mask> "repository": {
</s> chore(): adss format script and formats files </s> rem... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | package.json |
? this.props.iconStyle
: { color: variables.iconStyle } | <mask> ? this.props.expandedIcon && this.props.expandedIconStyle
<mask> ? this.props.expandedIconStyle
<mask> : { color: variables.expandedIconStyle }
<mask> : this.props.icon && this.props.iconStyle
<mask> ? this.props.iconStyle
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
? this.props.icon
: "ios-arrow-down" | <mask> ? this.props.expandedIcon
<mask> ? this.props.expandedIcon
<mask> : "ios-arrow-up"
<mask> : this.props.icon
<mask> ? this.props.icon
<mask> : "ios-arrow-down"
<mask> }
<mask> />
<mask> </V... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
<DefaultHeader
title={this.props.item.title}
expanded={this.props.expanded}
headerStyle={this.props.headerStyle}
icon={this.props.icon}
iconStyle={this.props.iconStyle}
expandedIcon={this.props.expandedIcon}
... | <mask> <View>
<mask> {this.props.renderHeader ? (
<mask> this.props.renderHeader(this.props.item, this.props.expanded)
<mask> ) : (
<mask> <DefaultHeader
<mask> title={this.props.item.title}
<mask> expanded={this.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
<DefaultContent
content={this.props.item.content}
contentStyle={this.props.contentStyle}
/>
)} | <mask> <AccordionSubItem>
<mask> {this.props.renderContent ? (
<mask> this.props.renderContent(this.props.item)
<mask> ) : (
<mask> <DefaultContent
<mask> content={this.props.item.content}
<mask> contentStyle={thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Accordion.js |
foregroundColor: PropTypes.string | <mask>
<mask> export default class NativeBaseComponent extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> static propTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropT... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
foregroundColor: PropTypes.string | <mask> };
<mask>
<mask> static propTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> static childContextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
</s> chore(): adss format script and... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
foregroundColor: PropTypes.string | <mask> };
<mask>
<mask> static childContextTypes = {
<mask> theme: PropTypes.object,
<mask> foregroundColor: PropTypes.string,
<mask> };
<mask>
<mask> getChildContext() {
<mask> return {
<mask> theme: this.props.theme ? this.props.theme : this.context.theme,
</s> chore(): adss for... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
theme: this.props.theme ? this.props.theme : this.context.theme | <mask> };
<mask>
<mask> getChildContext() {
<mask> return {
<mask> theme: this.props.theme ? this.props.theme : this.context.theme,
<mask> };
<mask> }
<mask>
<mask> getContextForegroundColor() {
<mask> return this.context.foregroundColor;
</s> chore(): adss format script and form... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Base/NativeBaseComponent.js |
if (Array.isArray(this.props.style)) {
const flattenedStyle = this.props.style.reduce(
(accumulator, currentValue) => accumulator.concat(currentValue),
[]
);
return computeProps(
{ ...this.props, style: flattenedStyle },
defaultProps
); | <mask> const defaultProps = {
<mask> style: this.getInitialStyle().borderedBtn
<mask> };
<mask>
<mask> if(Array.isArray(this.props.style)){
<mask> const flattenedStyle = this.props.style.reduce(( accumulator, currentValue ) => accumulator.concat(currentValue), []);
<mask> return co... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
: React.Children.map(this.props.children, child => | <mask> : variable;
<mask> const children =
<mask> Platform.OS === "ios"
<mask> ? this.props.children
<mask> : React.Children.map(
<mask> this.props.children,
<mask> child =>
<mask> child && child.type === Text
<mask> ? React.cloneEle... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
uppercase: variables.btnUppercaseAndroidText,
...child.props
}) | <mask> this.props.children,
<mask> child =>
<mask> child && child.type === Text
<mask> ? React.cloneElement(child, {
<mask> uppercase: variables.btnUppercaseAndroidText,
<mask> ...child.props
<mask> })
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
); | <mask> uppercase: variables.btnUppercaseAndroidText,
<mask> ...child.props
<mask> })
<mask> : child
<mask> );
<mask> if (
<mask> Platform.OS === "ios" ||
<mask> Platform.OS === "web" ||
<mask> variables.androidRipple === ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
let buttonFlex =
this.props.full || this.props.block ? 1 : buttonStyle.flex; | <mask> );
<mask> } else {
<mask> if (this.props.rounded) {
<mask> let buttonStyle = { ...this.prepareRootProps().style };
<mask> let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
<mask> return (
<mask> <View style={[{ maxHeight: butto... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<View
style={[
{ maxHeight: buttonStyle.height },
buttonStyle,
{ paddingTop: undefined, paddingBottom: undefined }
]}
> | <mask> if (this.props.rounded) {
<mask> let buttonStyle = { ...this.prepareRootProps().style };
<mask> let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
<mask> return (
<mask> <View style={[{ maxHeight: buttonStyle.height }, buttonStyle, { paddin... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
? TouchableNativeFeedback.Ripple(
this.props.androidRippleColor,
true
)
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
true
) | <mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> background={
<mask> this.props.androidRippleColor
<mask> ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
<mask> : TouchableNat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<View
style={[
styles.childContainer,
{
paddingTop: buttonStyle.paddingTop,
paddingBottom: buttonStyle.paddingBottom,
height: buttonStyle.height,
flexGrow: buttonFlex
... | <mask> : TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
<mask> }
<mask> {...this.prepareRootProps()}
<mask> >
<mask> <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.padd... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
</View> | <mask> <View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height, flexGrow: buttonFlex }]}>
<mask> {children}
<mask> </View>
<mask> </TouchableNativeFeedback>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
background={
this.props.transparent
? TouchableNativeFeedback.Ripple("transparent")
: TouchableNativeFeedback.Ripple(
variables.androidRippleColor,
false
)
} | <mask> return (
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> onPress={this.props.onPress}
<mask> background={this.props.transparent ? TouchableNativeFeedback.Ripple('transparent') : TouchableNativeFeedback.Ripple(variables.androidRi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
flexDirection: "row",
justifyContent: "center",
alignItems: "center"
} | <mask>
<mask> const styles = StyleSheet.create({
<mask> childContainer: {
<mask> flexShrink: 1,
<mask> flexDirection: 'row',
<mask> justifyContent: 'center',
<mask> alignItems: 'center'
<mask> },
<mask> });
<mask>
<mask> const StyledButton = connectStyle(
<mask> "NativeBase.Button",
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Button.js |
<TouchableOpacity
ref={c => (this._root = c)}
activeOpacity={0.2}
{...this.props}
>
{this.props.children}
</TouchableOpacity> | <mask> class CardItem extends Component {
<mask> render() {
<mask> if (this.props.button) {
<mask> return (
<mask> <TouchableOpacity
<mask> ref={c => (this._root = c)}
<mask> activeOpacity={0.2}
<mask> {...this.props}
<mask> >
<mask> {this.props.children}
<mask> </... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
<View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | <mask> </TouchableOpacity>
<mask> );
<mask> } else {
<mask> return (
<mask> <View ref={c => (this._root = c)} {...this.props}>
<mask> {this.props.children}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask> }
<mask>
</s> chore(): adss format script and formats ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> CardItem.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> header: PropTypes.bool,
<mask> cardBody: PropTypes.bool,
<mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
button: PropTypes.bool | <mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> header: PropTypes.bool,
<mask> cardBody: PropTypes.bool,
<mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledCardItem = connectStyle("NativeBase.CardItem", {}... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
const StyledCardItem = connectStyle(
"NativeBase.CardItem",
{},
mapPropsToStyleNames
)(CardItem); | <mask> footer: PropTypes.bool,
<mask> button: PropTypes.bool,
<mask> };
<mask>
<mask> const StyledCardItem = connectStyle("NativeBase.CardItem", {}, mapPropsToStyleNames)(CardItem);
<mask>
<mask> export { StyledCardItem as CardItem };
</s> chore(): adss format script and formats files </s> remove butto... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/CardItem.js |
theme: PropTypes.object | <mask> import computeProps from "../utils/computeProps";
<mask>
<mask> class CheckBox extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getInitialStyle(variables) {
<mask> return {
<mask> checkStyle: {
</s> chore(): adss format sc... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
borderColor: this.props.color
? this.props.color
: variables.checkboxBgColor, | <mask>
<mask> getInitialStyle(variables) {
<mask> return {
<mask> checkStyle: {
<mask> borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
<mask> backgroundColor:
<mask> this.props.checked === true
<mask> ? this.props.color ? this.prop... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
? this.props.color
? this.props.color
: variables.checkboxBgColor
: "transparent"
} | <mask> checkStyle: {
<mask> borderColor: this.props.color ? this.props.color : variables.checkboxBgColor,
<mask> backgroundColor:
<mask> this.props.checked === true
<mask> ? this.props.color ? this.props.color : variables.checkboxBgColor
<mask> : "transparen... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
style: this.getInitialStyle(variables).checkStyle | <mask> }
<mask>
<mask> prepareRootProps(variables) {
<mask> const defaultProps = {
<mask> style: this.getInitialStyle(variables).checkStyle,
<mask> };
<mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
</s> chore(): adss format script and form... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
<TouchableOpacity
ref={c => (this._root = c)}
{...this.prepareRootProps(variables)}
> | <mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask> return (
<mask> <TouchableOpacity ref={c => (this._root = c)} {...this.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
color:
this.props.checked === true
? variables.checkboxTickColor
: "transparent", | <mask> return (
<mask> <TouchableOpacity ref={c => (this._root = c)} {...this.prepareRootProps(variables)}>
<mask> <IconNB
<mask> style={{
<mask> color: this.props.checked === true ? variables.checkboxTickColor : "transparent",
<mask> fontSize: variables.Checkbo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
name={
platform === "ios" && platformStyle !== "material"
? "ios-checkmark"
: "md-checkmark"
} | <mask> lineHeight: variables.CheckboxIconSize,
<mask> marginTop: variables.CheckboxIconMarginTop,
<mask> textShadowRadius: 0
<mask> }}
<mask> name={platform === "ios" && platformStyle !== "material" ? "ios-checkmark" : "md-checkmark"}
<mask> />
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> CheckBox.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("N... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
onPress: PropTypes.func | <mask> CheckBox.propTypes = {
<mask> ...TouchableOpacity.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("NativeBase.CheckBox"... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
const StyledCheckBox = connectStyle(
"NativeBase.CheckBox",
{},
mapPropsToStyleNames
)(CheckBox); | <mask> checked: PropTypes.bool,
<mask> onPress: PropTypes.func,
<mask> };
<mask>
<mask> const StyledCheckBox = connectStyle("NativeBase.CheckBox", {}, mapPropsToStyleNames)(CheckBox);
<mask>
<mask> export { StyledCheckBox as CheckBox };
</s> chore(): adss format script and formats files </s> remove onP... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Checkbox.js |
<View ref={c => (this._root = c)} {...this.props}>
{this.props.children}
</View> | <mask>
<mask> class Container extends Component {
<mask> render() {
<mask> return (
<mask> <View ref={c => (this._root = c)} {...this.props}>
<mask> {this.props.children}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask>
<mask> Container.propTypes = {
</s> chore(): adss format scrip... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Container.propTypes = {
<mask> ...ViewPropTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledContainer = connectStyle("NativeBase.Container", {}, mapPropsToStyleNames)(Container);
<mask>
<mask> expo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
const StyledContainer = connectStyle(
"NativeBase.Container",
{},
mapPropsToStyleNames
)(Container); | <mask> ...ViewPropTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledContainer = connectStyle("NativeBase.Container", {}, mapPropsToStyleNames)(Container);
<mask>
<mask> export { StyledContainer as Container };
</s> chore():... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Container.js |
paddingRight: this.calculateRight(
this.state.orientation,
variables.Inset
) | <mask> paddingLeft: this.calculateLeft(
<mask> this.state.orientation,
<mask> variables.Inset
<mask> ),
<mask> paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
<mask> }
<mask> ]}
<mask> contentCon... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
contentContainerStyle={[
{ padding: this.props.padder ? variables.contentPadding : undefined },
this.props.contentContainerStyle
]} | <mask> ),
<mask> paddingRight: this.calculateRight(this.state.orientation, variables.Inset)
<mask> }
<mask> ]}
<mask> contentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}
<mask> >
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
<KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
resetScrollToCoords={
this.props.disableKBDismissScroll ? null : { x: 0, y: 0 }
}
keyboardShouldPersistTaps={
this.props.keyboardShouldPersistTaps
? this.props.keyboardShouldPersistTap... | <mask> >
<mask> {this.props.children}
<mask> </KeyboardAwareScrollView>
<mask> ) : (
<mask> <KeyboardAwareScrollView
<mask> automaticallyAdjustContentInsets={false}
<mask> resetScrollToCoords={
<mask> this.props.disableKBDismissScroll ? null : { x:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"... | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js |
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Content);
<mask>
<mask> export { StyledContent as Content }; </s> chore(): adss format script and formats files </s> remove export { StyledHeader as Header }; </s> add </s> remove export { StyledFooter as Footer }; </s> add </s> remove const StyledSwitch = co... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Content.js | |
chosenDate:
!props.placeHolderText && props.defaultDate
? props.defaultDate
: undefined | <mask> super(props);
<mask> this.state = {
<mask> modalVisible: false,
<mask> defaultDate: props.defaultDate ? props.defaultDate : new Date(),
<mask> chosenDate: !props.placeHolderText && props.defaultDate ? props.defaultDate : undefined
<mask> };
<mask> }
<mask>
<mask> setDa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
return [date.getDate(), date.getMonth() + 1, date.getFullYear()].join("/"); | <mask> formatChosenDate(date) {
<mask> if (this.props.formatChosenDate) {
<mask> return this.props.formatChosenDate(date);
<mask> }
<mask> return [
<mask> date.getDate(),
<mask> date.getMonth() + 1,
<mask> date.getFullYear(),
<mask> ].join('/');
<mask> }
<mask>
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
onPress={
!this.props.disabled ? this.showDatePicker.bind(this) : undefined
} | <mask> return (
<mask> <View>
<mask> <View>
<mask> <Text
<mask> onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
<mask> style={[
<mask> { padding: 10, color: variables.datePickerTextColor },
<mask> this.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
this.state.chosenDate
? this.props.textStyle
: this.props.placeHolderTextStyle | <mask> <Text
<mask> onPress={ !this.props.disabled ? this.showDatePicker.bind(this) : undefined }
<mask> style={[
<mask> { padding: 10, color: variables.datePickerTextColor },
<mask> this.state.chosenDate ? this.props.textStyle : this.props.placeHolderT... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
? this.props.placeHolderText
: "Select Date"} | <mask> >
<mask> {this.state.chosenDate
<mask> ? this.formatChosenDate(this.state.chosenDate)
<mask> : this.props.placeHolderText
<mask> ? this.props.placeHolderText
<mask> : "Select Date"}
<mask> </Text>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
supportedOrientations={["portrait", "landscape"]} | <mask> : "Select Date"}
<mask> </Text>
<mask> <View>
<mask> <Modal
<mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType={this.props.animationType}
<mask> transparent={this.props.modalTransparent} //... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
onRequestClose={() => {}} | <mask> supportedOrientations={['portrait', 'landscape']}
<mask> animationType={this.props.animationType}
<mask> transparent={this.props.modalTransparent} //from api
<mask> visible={this.state.modalVisible}
<mask> onRequestClose={() => { }}
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/DatePicker.js |
elevation: 5 | <mask> drawer: {
<mask> shadowColor: "#000000",
<mask> shadowOpacity: 0,
<mask> shadowRadius: 0,
<mask> elevation: 5,
<mask> },
<mask> mainOverlay: {
<mask> opacity: 0,
<mask> backgroundColor: "rgba(0, 0, 0, 0.8)",
<mask> elevation: 0,
</s> chore(): adss ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
elevation: 0
} | <mask> },
<mask> mainOverlay: {
<mask> opacity: 0,
<mask> backgroundColor: "rgba(0, 0, 0, 0.8)",
<mask> elevation: 0,
<mask> },
<mask> },
<mask> tweenHandler: ratio => ({
<mask> mainOverlay: { opacity: ratio / 2 },
<mask> }),
<mask> };
</s> chore(): adss format script... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
mainOverlay: { opacity: ratio / 2 }
}) | <mask> elevation: 0,
<mask> },
<mask> },
<mask> tweenHandler: ratio => ({
<mask> mainOverlay: { opacity: ratio / 2 },
<mask> }),
<mask> };
</s> chore(): adss format script and formats files </s> remove elevation: 0,
},
</s> add elevation: 0
} </s> remove elevation... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Drawer/index.js |
pos?: string,
top?: number,
left?: number,
right?: number,
bottom?: number | <mask> const AnimatedFab = Animated.createAnimatedComponent(Button);
<mask>
<mask> class Fab extends Component {
<mask> props: Animated.props & {
<mask> pos?: string;
<mask> top?: number;
<mask> left?: number;
<mask> right?: number;
<mask> bottom?: number;
<mask> };
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 5 | <mask> return {
<mask> top: undefined,
<mask> bottom:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 5
<mask> : i * 50 + 65,
<mask> left: 8,
<mask> right: 0
<mask> };
<mask> } else if (direction === "le... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 8
: 8 | <mask> top: 8,
<mask> bottom: 0,
<mask> left:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : -(i * 50 + 58),
<mask> right: 0
<mask> };
<mask> } else if (direction === "down") {
<mask> return {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 8 | <mask> } else if (direction === "down") {
<mask> return {
<mask> top:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 8
<mask> : i * 50 + 73,
<mask> bottom: 0,
<mask> left: 8,
<mask> right: 0
<mask> };
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 50
: 8 | <mask> top: 8,
<mask> bottom: 0,
<mask> left:
<mask> this.props.active === false
<mask> ? Platform.OS === "ios" ? 50 : 8
<mask> : i * 50 + 73,
<mask> right: 0
<mask> };
<mask> }
<mask> }
</s> chore(): adss format script and format... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
? Platform.OS === "ios"
? 8
: 8
: i * 50 + 50 | <mask> : 0,
<mask> bottom: this.props.direction
<mask> ? this.fabOtherBtns(this.props.direction, i).bottom
<mask> : this.props.active === false
<mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : i * 50 + 50
<mask> };
<mask>
<mask> return _.merge(this.getI... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
return _.merge(
this.getInitialStyle().buttonStyle,
StyleSheet.flatten(child.props.style),
type
); | <mask> ? Platform.OS === "ios" ? 8 : 8
<mask> : i * 50 + 50
<mask> };
<mask>
<mask> return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);
<mask> }
<mask> prepareButtonProps(child) {
<mask> var inp = _.clone(child.props);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
const {
props: { direction, position }
} = this; | <mask> }).start();
<mask> }
<mask> }
<mask> _animate() {
<mask> const { props: { direction, position } } = this;
<mask> if (this.props.direction) {
<mask> if (this.props.direction === "up") {
<mask> this.upAnimate();
<mask> } else if (this.props.direction === "left") {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
const {
props: { active }
} = this; | <mask> }
<mask> }
<mask>
<mask> render() {
<mask> const { props: { active } } = this;
<mask>
<mask> return (
<mask> <Animated.View style={this.getContainerStyle()}>
<mask> {this.renderButtons()}
<mask> {Platform.OS === "ios" ||
</s> chore(): adss format script and for... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
variables.androidRipple === false ||
Platform["Version"] <= 21 ? (
<TouchableOpacity
onPress={() => this.fabOnPress()}
{...this.prepareFabProps()}
activeOpacity={1}
>
{this.renderFab()}
</TouchableOpacity>
) : (
... | <mask> return (
<mask> <Animated.View style={this.getContainerStyle()}>
<mask> {this.renderButtons()}
<mask> {Platform.OS === "ios" ||
<mask> variables.androidRipple === false ||
<mask> Platform["Version"] <= 21 ? (
<mask> <TouchableOpacity
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
</View>
</TouchableNativeFeedback>
)} | <mask> {...this.prepareFabProps()}
<mask> activeOpacity={1}
<mask> >
<mask> {this.renderFab()}
<mask> </TouchableOpacity>
<mask> ) : (
<mask> <TouchableNativeFeedback
<mask> onPress={() => this.fabOnPress()}
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Fab.js |
} else if (this.props.style[1]) {
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; | <mask> const InsetValues = mode === "portrait" ? inset.portrait : inset.landscape;
<mask> let oldHeight = null;
<mask> if (this.props.style.height != undefined) {
<mask> oldHeight = this.props.style.height;
<mask> }else if(this.props.style[1]){
<mask> oldHeight= this.props.style[1].hei... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Footer.js |
<mask> "NativeBase.Footer",
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Footer);
<mask> export { StyledFooter as Footer }; </s> chore(): adss format script and formats files </s> remove export { StyledContent as Content }; </s> add </s> remove export { StyledHeader as Header }; </s> add </s> remove co... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Footer.js | |
const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${
props.style.height
}`; | <mask>
<mask> render() {
<mask> const props = this.prepareRootProps();
<mask>
<mask> const uri = `${GRAVATAR_URI + md5(this.props.email)}?s=${props.style
<mask> .height}`;
<mask> return <Image ref={c => (this._root = c)} {...props} source={{ uri }} />;
<mask> }
<mask> }
<mask>
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Gravatar.js |
const childrenType = function(props, propName, component) { | <mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask>
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof child !== "st... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H1.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H1.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH1 = connectStyle("NativeBase.H1", {}, mapPropsToStyleNames)(H1);
<mask>
<mask> export ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H1.js |
const childrenType = function(props, propName, component) { | <mask> render() {
<mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H2.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H2.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH2 = connectStyle("NativeBase.H2", {}, mapPropsToStyleNames)(H2);
<mask>
<mask> export ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H2.js |
const childrenType = function(props, propName, component) { | <mask> return <Text ref={c => (this._root = c)} {...this.props} />;
<mask> }
<mask> }
<mask>
<mask> const childrenType = function (props, propName, component) {
<mask> let error;
<mask> const prop = props[propName];
<mask> React.Children.forEach(prop, child => {
<mask> if (typeof child !== "st... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H3.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask>
<mask> H3.propTypes = {
<mask> ...Text.propTypes,
<mask> children: childrenType,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledH3 = connectStyle("NativeBase.H3", {}, mapPropsToStyleNames)(H3);
<mask>
<mask> export ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/H3.js |
oldHeight = this.props.style[1].height
? this.props.style[1].height
: this.props.style[0].height; | <mask> let oldHeight = null;
<mask> if (this.props.style.height != undefined) {
<mask> oldHeight = this.props.style.height;
<mask> } else if (this.props.style[1]) {
<mask> oldHeight = this.props.style[1].height ? this.props.style[1].height : this.props.style[0].height;
<mask> } else {
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
topPadder =
(style.paddingTop ? style.paddingTop : style.padding) +
InsetValues.topInset; | <mask> const InsetValues = mode === "portrait" ? inset.portrait : inset.landscape;
<mask> let topPadder = null;
<mask> let style = StyleSheet.flatten(this.props.style);
<mask> if (style.padding !== undefined || style.paddingTop !== undefined) {
<mask> topPadder = (style.paddingTop ? style.pad... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
? "light-content"
: variables.iosStatusbar | <mask> barStyle={
<mask> this.props.iosBarStyle
<mask> ? this.props.iosBarStyle
<mask> : platformStyle === "material"
<mask> ? "light-content"
<mask> : variables.iosStatusbar
<mask> }
<mask> translucent={this.p... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
<View ref={c => (this._root = c)} {...this.props} />
)} | <mask> }
<mask> ]}
<mask> />
<mask> ) : (
<mask> <View ref={c => (this._root = c)} {...this.props} />
<mask> )}
<mask> </View>
<mask> );
<mask> }
<mask> }
<mask>
</s> chore(): adss format script and formats files </s> remove ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js |
<mask> "NativeBase.Header",
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(Header);
<mask> export { StyledHeader as Header }; </s> chore(): adss format script and formats files </s> remove export { StyledContent as Content }; </s> add </s> remove export { StyledFooter as Footer }; </s> add </s> remove co... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Header.js | |
<mask> "default": "ios-woman",
<mask> "active": "ios-woman"
<mask> }
<mask> }
<mask> } </s> chore(): adss format script and formats files </s> remove openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
}
</s> add openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenVa... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/NBIcons.json | |
} | <mask> "active": "ios-woman"
<mask> }
<mask> }
<mask> }
</s> chore(): adss format script and formats files </s> remove } </s> add </s> remove openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
}
</s> add openLeftRow() {
this.manuallySwipeRow(this.props.leftOpenValue);
} </s... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/NBIcons.json |
theme: PropTypes.object | <mask> import mapPropsToStyleNames from "../../utils/mapPropsToStyleNames";
<mask>
<mask> class Icon extends Component {
<mask> static contextTypes = {
<mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getName() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
const variables = this.context.theme
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask> theme: PropTypes.object,
<mask> };
<mask>
<mask> getName() {
<mask> const variables = this.context.theme ? this.context.theme["@@shoutem.theme/themeStyle"].variables : variable;
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask>
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
name = this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; | <mask> return this.props.name;
<mask> } else if (typeof ic[this.props.name] === "object") {
<mask> let name;
<mask> if (platform === "ios" && platformStyle !== "material") {
<mask> name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
name = this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | <mask> let name;
<mask> if (platform === "ios" && platformStyle !== "material") {
<mask> name = this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
<mask> } else {
<mask> name = this.props.active ? ic[this.props.name].android.active : ic... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return this.props.active
? ic[this.props.name].ios.active
: ic[this.props.name].ios.default; | <mask> if (Platform.OS === "ios") {
<mask> if (this.props.ios) {
<mask> return this.props.ios;
<mask> } else {
<mask> return this.props.active ? ic[this.props.name].ios.active : ic[this.props.name].ios.default;
<mask> }
<mask> } else if (this.props.android) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return this.props.active
? ic[this.props.name].android.active
: ic[this.props.name].android.default; | <mask> }
<mask> } else if (this.props.android) {
<mask> return this.props.android;
<mask> } else {
<mask> return this.props.active ? ic[this.props.name].android.active : ic[this.props.name].android.default;
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> if (this.props... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={Platform.OS === "ios" ? this.props.ios : this.props.android}
/> | <mask>
<mask> render() {
<mask> if (this.props.ios && this.props.android) {
<mask> return (
<mask> <IconNB
<mask> ref={c => (this._root = c)}
<mask> {...this.props}
<mask> name={Platform.OS === "ios" ? this.props.ios : this.props.android}
<mask> />
<mask> );
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getIconName()}
/>
); | <mask> name={Platform.OS === "ios" ? this.props.ios : this.props.android}
<mask> />
<mask> );
<mask> } else if (this.props.name && (this.props.android || this.props.ios)) {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
<mask> } else {
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
return (
<IconNB
ref={c => (this._root = c)}
{...this.props}
name={this.getName()}
/>
); | <mask> );
<mask> } else if (this.props.name && (this.props.android || this.props.ios)) {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getIconName()} />;
<mask> } else {
<mask> return <IconNB ref={c => (this._root = c)} {...this.props} name={this.getName()} ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]), | <mask> }
<mask>
<mask> Icon.propTypes = {
<mask> ...IconNB.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> name: PropTypes.string,
<mask> ios: PropTypes.string,
<mask> android: PropTypes.string,
<mask> active: PropTypes.bool,
<mask> ty... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
type: PropTypes.string | <mask> name: PropTypes.string,
<mask> ios: PropTypes.string,
<mask> android: PropTypes.string,
<mask> active: PropTypes.bool,
<mask> type: PropTypes.string,
<mask> };
<mask>
<mask> const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
<mask>
<mask> export { StyledIcon... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(
Icon
); | <mask> active: PropTypes.bool,
<mask> type: PropTypes.string,
<mask> };
<mask>
<mask> const StyledIcon = connectStyle("NativeBase.Icon", {}, mapPropsToStyleNames)(Icon);
<mask>
<mask> export { StyledIcon as Icon };
</s> chore(): adss format script and formats files </s> remove type: PropTypes.string,
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Icon/index.js |
? this.context.theme["@@shoutem.theme/themeStyle"].variables
: variable; | <mask>
<mask> class Input extends NativeBaseComponent {
<mask> render() {
<mask> const variables = this.context.theme
<mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables
<mask> : variable;
<mask> return (
<mask> <TextInput
<mask> ref={c => {
<mask> this._textInput = c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
<TextInput
ref={c => {
this._textInput = c;
this._root = c;
}}
editable={this.props.disabled ? false : true}
underlineColorAndroid="rgba(0,0,0,0)"
placeholderTextColor={
this.props.placeholderTextColor
? this.props.placeholderTextCo... | <mask> const variables = this.context.theme
<mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables
<mask> : variable;
<mask> return (
<mask> <TextInput
<mask> ref={c => {
<mask> this._textInput = c;
<mask> this._root = c;
<mask> }}
<mask> editable={this.props.disabled... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]) | <mask> }
<mask>
<mask> Input.propTypes = {
<mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(Input);
<mask>
<mask> export { Style... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(
Input
); | <mask> ...TextInput.propTypes,
<mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
<mask> };
<mask>
<mask> const StyledInput = connectStyle("NativeBase.Input", {}, mapPropsToStyleNames)(Input);
<mask>
<mask> export { StyledInput as Input };
</s> chore(): adss format s... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Input.js |
if (
this.props.children[i].props.name &&
this.props.children[i].type.displayName !== "Styled(Input)"
) { | <mask> });
<mask> if (this.props.floatingLabel && icon.length) {
<mask> let isIcon = false;
<mask> for (let i = 0; i < this.props.children.length; i++) {
<mask> if (this.props.children[i].props.name && this.props.children[i].type.displayName !== "Styled(Input)") {
<mask> isIc... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
? 15
: isIcon
? 26
: 0, | <mask> left:
<mask> this.props.last && isIcon
<mask> ? 40
<mask> : this.props.last
<mask> ? 15
<mask> : isIcon
<mask> ? 26
<mask> : 0,
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
onBlur={e => { | <mask> onFocus={() => {
<mask> this.setState({ isFocused: true });
<mask> inputProps.onFocus && inputProps.onFocus();
<mask> }}
<mask> onBlur={(e) => {
<mask> inputProps.value
<mask> ? this.setState({
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e7744d482e9e1e4113f4dce1043f18f53139a19 | src/basic/Item.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.