docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
sequencelengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
<mask> borderColor: 'primary.500',
<mask> },
<mask> _focus: {
<mask> borderColor: 'primary.500',
<mask> // bg: transparentize('primary.500', 0.1)(theme),
<mask> },
<mask> _disabled: {
<mask> bg: 'muted.800',
<mask> placeholderTextColor: 'text.50',
<mask> },
</s> fix: select text alignment on android </s> remove // bg: transparentize('primary.600', 0.1)(theme),
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b0494725471bd6ea3838db0bdae03127710de685 | src/theme/components/select.ts |
|
<mask> // Older version
<mask> export * from './components/composites/AppBar';
<mask> export * from './components/composites/Accordion';
<mask> export * from './components/composites/Actionsheet';
<mask> export * from './components/composites/Alert';
<mask> export * from './components/composites/AlertDialog';
<mask> export * from './components/composites/AspectRatio';
</s> fix: accordion not working issue </s> remove import { AccordionContext } from './Context';
</s> add import { AccordionContext, AccordionItemContext } from './Context'; </s> remove export const AccordionItemContext = React.createContext({});
</s> add | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b04d4efdb4b8371b92bf15b27e9beac3f0e33425 | example/storybook/stories/index.ts |
|
export * from './components/composites/AppBar'; | <mask> export * from './components/composites/Accordion';
<mask> export * from './components/composites/Actionsheet';
<mask> export * from './components/composites/Alert';
<mask> export * from './components/composites/AlertDialog';
<mask> export * from './components/composites/AspectRatio';
<mask> export * from './components/composites/Avatar';
<mask> export * from './components/composites/Badge';
<mask> export * from './components/primitives/Box';
</s> fix: accordion not working issue </s> remove export * from './components/composites/AppBar';
</s> add </s> remove import { AccordionContext } from './Context';
</s> add import { AccordionContext, AccordionItemContext } from './Context'; </s> remove export const AccordionItemContext = React.createContext({});
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b04d4efdb4b8371b92bf15b27e9beac3f0e33425 | example/storybook/stories/index.ts |
import { AccordionContext, AccordionItemContext } from './Context'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { AccordionContext } from './Context';
<mask> import type { IAccordionItemProps, IAccordionContextProps } from './props';
<mask>
<mask> export const AccordionItemContext = React.createContext({});
<mask>
<mask> const AccordionItem = ({
</s> fix: accordion not working issue </s> remove export * from './components/composites/AppBar';
</s> add </s> remove export const AccordionItemContext = React.createContext({});
</s> add | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b04d4efdb4b8371b92bf15b27e9beac3f0e33425 | src/components/composites/Accordion/AccordionItem.tsx |
<mask> import Box from '../../primitives/Box';
<mask> import { AccordionContext } from './Context';
<mask> import type { IAccordionItemProps, IAccordionContextProps } from './props';
<mask>
<mask> export const AccordionItemContext = React.createContext({});
<mask>
<mask> const AccordionItem = ({
<mask> children,
<mask> index: pIndex = 0,
<mask> isDisabled,
<mask> ...props
</s> fix: accordion not working issue </s> remove export * from './components/composites/AppBar';
</s> add </s> remove import { AccordionContext } from './Context';
</s> add import { AccordionContext, AccordionItemContext } from './Context'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b04d4efdb4b8371b92bf15b27e9beac3f0e33425 | src/components/composites/Accordion/AccordionItem.tsx |
|
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; | <mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import {View, ListView} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask>
<mask> class Card extends NativeBaseComponent {
</s> nb/backward list and card components </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { </s> remove import { Image, TouchableOpacity } from 'react-native';
</s> add import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import {Image, TouchableOpacity, Platform } from 'react-native';
</s> add import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/Card.js |
class Card extends NativeBaseComponent { | <mask> import {View, ListView} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask>
<mask> export default class CardNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object
<mask> }
<mask>
</s> nb/backward list and card components </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove export default class CardItemNB extends NativeBaseComponent {
</s> add class CardItem extends NativeBaseComponent { </s> remove export default class ListItemNB extends NativeBaseComponent {
</s> add class ListItem extends NativeBaseComponent { </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/Card.js |
<mask> import computeProps from '../../Utils/computeProps';
<mask>
<mask> export default class CardNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object
<mask> }
<mask>
<mask> getInitialStyle() {
<mask> return {
<mask> card: {
<mask> marginVertical: 5,
<mask> flex: 1,
<mask> borderWidth: this.getTheme().borderWidth,
<mask> borderRadius: 2,
<mask> borderColor: this.getTheme().listBorderColor,
<mask> flexWrap: 'wrap',
<mask> borderBottomWidth: 0,
<mask> backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
<mask> shadowColor: this.props.transparent ? undefined : '#000',
<mask> shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
<mask> shadowOpacity: this.props.transparent ? undefined : 0.1,
<mask> shadowRadius: this.props.transparent ? undefined : 1.5,
<mask> elevation: this.props.transparent ? undefined : 2
<mask> }
<mask> }
<mask> }
<mask>
<mask> prepareRootProps() {
<mask>
<mask> var defaultProps = {
<mask> style: this.getInitialStyle().card
<mask> };
<mask>
<mask> return computeProps(this.props, defaultProps);
<mask>
<mask> }
<mask>
<mask> renderChildren() {
<mask> var childrenArray = React.Children.map(this.props.children, (child) => {
<mask> return child;
<mask> });
</s> nb/backward list and card components </s> remove getInitialStyle() {
return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
padding: (this.imagePresent() && !this.ifShowCase()) ? 0 :
this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column',
borderColor: this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: 'transparent',
paddingVertical: this.getTheme().listItemPadding + 2,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: 'transparent'
},
itemText: {
fontSize: this.ifShowCase() ? 14 : 15,
marginTop: this.ifShowCase() ? 10 : 0,
color: this.getContextForegroundColor(),
flex: 1
},
dividerItemText: {
fontSize: 17,
fontWeight: '500',
color: this.getContextForegroundColor(),
flex: 1
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor()
},
itemNote: {
fontSize: 15,
color: this.getTheme().listNoteColor,
fontWeight: '100',
flex: 1
},
itemSubNote: {
fontSize: 15,
color: '#999'
},
thumbnail: {
alignSelf: 'center'
},
gravatar: {
alignSelf: 'center'
},
fullImage: {
alignSelf: 'stretch',
height: this.ifShowCase() ? 120 : 300
}
};
}
</s> add </s> remove borderBottomWidth: this.getTheme().borderWidth,
// height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
</s> add </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { </s> remove prepareRootProps() {
let defaultProps = {};
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().listItemDivider
};
} else {
defaultProps = {
style: this.getInitialStyle().listItem
};
}
return computeProps(this.props, defaultProps);
}
</s> add </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
cardBody : React.PropTypes.bool
}
</s> add | [
"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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/Card.js |
|
<ListView {...this.props} | <mask> if(this.props.dataArray && this.props.renderRow) {
<mask> const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
<mask> var dataSource = ds.cloneWithRows(this.props.dataArray);
<mask> return (
<mask> <ListView {...this.prepareRootProps()}
<mask> enableEmptySections={true}
<mask> dataSource={dataSource}
<mask> renderRow={this.props.renderRow} />
<mask> );
<mask> }
</s> nb/backward list and card components </s> remove <View ref={c => this._root = c} {...this.prepareRootProps()} >
</s> add <View ref={c => this._root = c} {...this.props} > </s> remove ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
</s> add ref={(c) => { this._root = c; }} {...this.props} </s> remove <TouchableOpacity ref={c => this._root = c} {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
</s> add <TouchableOpacity ref={c => this._root = c} {...this.props} activeOpacity={ (this.props.button) ? 0.2 : 1} > </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/Card.js |
<View ref={c => this._root = c} {...this.props} > | <mask> renderRow={this.props.renderRow} />
<mask> );
<mask> }
<mask> return(
<mask> <View ref={c => this._root = c} {...this.prepareRootProps()} >
<mask> {this.renderChildren()}
<mask> </View>
<mask> );
<mask> }
<mask>
</s> nb/backward list and card components </s> remove <TouchableOpacity ref={c => this._root = c} {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
</s> add <TouchableOpacity ref={c => this._root = c} {...this.props} activeOpacity={ (this.props.button) ? 0.2 : 1} > </s> remove ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
</s> add ref={(c) => { this._root = c; }} {...this.props} </s> remove <ListView {...this.prepareRootProps()}
</s> add <ListView {...this.props} </s> remove );
</s> add )}
</View>
); </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/Card.js |
import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import { Image, TouchableOpacity } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Icon from './Icon';
<mask> import Text from './Text';
<mask> import View from './View';
</s> nb/backward list and card components </s> remove import {Image, TouchableOpacity, Platform } from 'react-native';
</s> add import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; | <mask> import React from 'react';
<mask> import { Image, TouchableOpacity } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Icon from './Icon';
<mask> import Text from './Text';
<mask> import View from './View';
<mask> import Button from './Button';
<mask> import Thumbnail from './Thumbnail';
<mask> import Gravatar from './Gravatar';
<mask>
<mask> export default class CardItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object,
</s> nb/backward list and card components </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove import { Image, TouchableOpacity } from 'react-native';
</s> add import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove export default class CardItemNB extends NativeBaseComponent {
</s> add class CardItem extends NativeBaseComponent { </s> remove import {Image, TouchableOpacity, Platform } from 'react-native';
</s> add import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
class CardItem extends NativeBaseComponent { | <mask> import Button from './Button';
<mask> import Thumbnail from './Thumbnail';
<mask> import Gravatar from './Gravatar';
<mask>
<mask> export default class CardItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object,
<mask> header : React.PropTypes.bool,
<mask> cardBody : React.PropTypes.bool
</s> nb/backward list and card components </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
cardBody : React.PropTypes.bool
}
</s> add </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove export default class ListItemNB extends NativeBaseComponent {
</s> add class ListItem extends NativeBaseComponent { </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
iconRight : React.PropTypes.bool,
iconLeft : React.PropTypes.bool,
button : React.PropTypes.bool,
itemDivider : React.PropTypes.bool
}
</s> add </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
<mask> import Gravatar from './Gravatar';
<mask>
<mask> export default class CardItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object,
<mask> header : React.PropTypes.bool,
<mask> cardBody : React.PropTypes.bool
<mask> }
<mask>
<mask> getInitialStyle() {
<mask> return {
<mask> listItem: {
<mask> borderBottomWidth: this.getTheme().borderWidth,
</s> nb/backward list and card components </s> remove export default class CardItemNB extends NativeBaseComponent {
</s> add class CardItem extends NativeBaseComponent { </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
iconRight : React.PropTypes.bool,
iconLeft : React.PropTypes.bool,
button : React.PropTypes.bool,
itemDivider : React.PropTypes.bool
}
</s> add </s> remove export default class ListItemNB extends NativeBaseComponent {
</s> add class ListItem extends NativeBaseComponent { </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
|
<mask> header : React.PropTypes.bool,
<mask> cardBody : React.PropTypes.bool
<mask> }
<mask>
<mask> getInitialStyle() {
<mask> return {
<mask> listItem: {
<mask> borderBottomWidth: this.getTheme().borderWidth,
<mask> padding: (this.imagePresent() && !this.ifShowCase()) ? 0 :
<mask> this.getTheme().listItemPadding,
<mask> backgroundColor: this.getTheme().listBg,
<mask> justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
<mask> flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column',
<mask> borderColor: this.getTheme().listBorderColor
<mask> },
<mask> listItemDivider: {
<mask> borderBottomWidth: this.getTheme().borderWidth,
<mask> padding: this.getTheme().listItemPadding,
<mask> backgroundColor: 'transparent',
<mask> paddingVertical: this.getTheme().listItemPadding + 2,
<mask> justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
<mask> flexDirection: 'row',
<mask> borderColor: 'transparent'
<mask> },
<mask> itemText: {
<mask> fontSize: this.ifShowCase() ? 14 : 15,
<mask> marginTop: this.ifShowCase() ? 10 : 0,
<mask> color: this.getContextForegroundColor(),
<mask> flex: 1
<mask> },
<mask> dividerItemText: {
<mask> fontSize: 17,
<mask> fontWeight: '500',
<mask> color: this.getContextForegroundColor(),
<mask> flex: 1
<mask> },
<mask> itemIcon: {
<mask> fontSize: this.getTheme().iconFontSize,
<mask> color: this.getContextForegroundColor()
<mask> },
<mask> itemNote: {
<mask> fontSize: 15,
<mask> color: this.getTheme().listNoteColor,
<mask> fontWeight: '100',
<mask> flex: 1
<mask> },
<mask> itemSubNote: {
<mask> fontSize: 15,
<mask> color: '#999'
<mask> },
<mask> thumbnail: {
<mask> alignSelf: 'center'
<mask> },
<mask> gravatar: {
<mask> alignSelf: 'center'
<mask> },
<mask> fullImage: {
<mask> alignSelf: 'stretch',
<mask> height: this.ifShowCase() ? 120 : 300
<mask> }
<mask> };
<mask> }
<mask> getRightStyle() {
<mask> return {
<mask> right: {
<mask> flex: 1,
<mask> paddingLeft: 10,
</s> nb/backward list and card components </s> remove borderBottomWidth: this.getTheme().borderWidth,
// height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
</s> add </s> remove propTypes: {
style : React.PropTypes.object
}
getInitialStyle() {
return {
card: {
marginVertical: 5,
flex: 1,
borderWidth: this.getTheme().borderWidth,
borderRadius: 2,
borderColor: this.getTheme().listBorderColor,
flexWrap: 'wrap',
borderBottomWidth: 0,
backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
shadowColor: this.props.transparent ? undefined : '#000',
shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
shadowOpacity: this.props.transparent ? undefined : 0.1,
shadowRadius: this.props.transparent ? undefined : 1.5,
elevation: this.props.transparent ? undefined : 2
}
}
}
prepareRootProps() {
var defaultProps = {
style: this.getInitialStyle().card
};
return computeProps(this.props, defaultProps);
}
</s> add </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { | [
"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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"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/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
|
if (child && child.type.displayName === "Styled(Thumbnail)") { | <mask>
<mask> thumbnailPresent() {
<mask> let thumbnailComponentPresent = false;
<mask> React.Children.forEach(this.props.children, (child) => {
<mask> if (child && child.type === Thumbnail) {
<mask> thumbnailComponentPresent = true;
<mask> }
<mask> });
<mask>
<mask> return thumbnailComponentPresent;
</s> nb/backward list and card components </s> remove if (child && child.type === Image) {
</s> add if (child && child.type.displayName === "Image") { </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { </s> remove if (child && (child.type === Text) && child.props.note) {
</s> add if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
if(child.type.displayName === "Styled(Gravatar)") | <mask>
<mask> gravatarPresent() {
<mask> var gravatarComponentPresent = false;
<mask> React.Children.forEach(this.props.children, function (child) {
<mask> if(child.type == Gravatar)
<mask> gravatarComponentPresent = true;
<mask> })
<mask>
<mask> return gravatarComponentPresent;
<mask> }
</s> nb/backward list and card components </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") </s> remove if(child && child.type == Radio)
</s> add if(child && child.type.displayName == "Styled(Radio)") </s> remove if(child && child.type == Picker)
</s> add if(child && child.type.displayName == "Styled(Picker)") </s> remove if (child && child.type === Thumbnail) {
</s> add if (child && child.type.displayName === "Styled(Thumbnail)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
if (child && child.type.displayName === "Image") { | <mask>
<mask> imagePresent() {
<mask> let imagePresent = false;
<mask> React.Children.forEach(this.props.children, (child) => {
<mask> if (child && child.type === Image) {
<mask> imagePresent = true;
<mask> }
<mask> });
<mask>
<mask> return imagePresent;
</s> nb/backward list and card components </s> remove if (child && child.type === Thumbnail) {
</s> add if (child && child.type.displayName === "Styled(Thumbnail)") { </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { </s> remove if (child && (child.type === Text) && child.props.note) {
</s> add if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
if (child && child.type.displayName === "Styled(Icon)") { | <mask>
<mask> iconPresent() {
<mask> let iconComponentPresent = false;
<mask> React.Children.forEach(this.props.children, (child) => {
<mask> if (child && child.type === Icon) {
<mask> iconComponentPresent = true;
<mask> }
<mask> });
<mask>
<mask> return iconComponentPresent;
</s> nb/backward list and card components </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") </s> remove if (child && child.type === Thumbnail) {
</s> add if (child && child.type.displayName === "Styled(Thumbnail)") { </s> remove if (child && child.type === Image) {
</s> add if (child && child.type.displayName === "Image") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { </s> remove if (child && (child.type === Text) && child.props.note) {
</s> add if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
if (child && child.type.displayName === "Styled(Button)") { | <mask>
<mask> buttonPresent() {
<mask> let buttonComponentPresent = false;
<mask> React.Children.forEach(this.props.children, (child) => {
<mask> if (child && child.type === Button) {
<mask> buttonComponentPresent = true;
<mask> }
<mask> });
<mask>
<mask> return buttonComponentPresent;
</s> nb/backward list and card components </s> remove if (child && child.type === Thumbnail) {
</s> add if (child && child.type.displayName === "Styled(Thumbnail)") { </s> remove if (child && child.type === Image) {
</s> add if (child && child.type.displayName === "Image") { </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && (child.type === Text) && child.props.note) {
</s> add if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { | <mask> notePresent() {
<mask> let notePresent = false;
<mask>
<mask> React.Children.forEach(this.props.children, (child) => {
<mask> if (child && (child.type === Text) && child.props.note) {
<mask> notePresent = true;
<mask> }
<mask> });
<mask>
<mask> return notePresent;
</s> nb/backward list and card components </s> remove if (child && child.type === Thumbnail) {
</s> add if (child && child.type.displayName === "Styled(Thumbnail)") { </s> remove if (child && child.type === Image) {
</s> add if (child && child.type.displayName === "Image") { </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { </s> remove if (child.type === Image && !Array.isArray(this.props.children)) {
defaultProps = {
resizeMode: 'cover',
style: this.getInitialStyle().fullImage
};
} else
if (child.type === Button) {
defaultProps = {
style: this.getInitialStyle().itemButton
};
} else
if (child.type === Text) {
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().dividerItemText
};
} else if (child.props.note && (this.thumbnailPresent() || this.gravatarPresent())) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
};
} else if (child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
};
} else {
defaultProps = {
style: this.getInitialStyle().itemText
};
}
} else if (child.type === Icon) {
defaultProps = {
style: this.getInitialStyle().itemIcon
};
} else if (child.type === Thumbnail) {
defaultProps = {
style: this.getInitialStyle().thumbnail
};
} else if(child.type == Gravatar) {
defaultProps = {
style: this.getInitialStyle().gravatar
};
} else if (child.type === Image) {
defaultProps = {
style: this.getInitialStyle().fullImage
};
} else {
defaultProps = {
foregroundColor: this.getContextForegroundColor()
};
}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
<mask> }
<mask>
<mask> getChildProps(child) {
<mask> let defaultProps = {};
<mask> if (child.type === Image && !Array.isArray(this.props.children)) {
<mask> defaultProps = {
<mask> resizeMode: 'cover',
<mask> style: this.getInitialStyle().fullImage
<mask> };
<mask> } else
<mask> if (child.type === Button) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().itemButton
<mask> };
<mask> } else
<mask> if (child.type === Text) {
<mask> if ((this.props.header) || (this.props.footer)) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().dividerItemText
<mask> };
<mask> } else if (child.props.note && (this.thumbnailPresent() || this.gravatarPresent())) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().itemSubNote
<mask> };
<mask> } else if (child.props.note) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().itemNote
<mask> };
<mask> } else {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().itemText
<mask> };
<mask> }
<mask> } else if (child.type === Icon) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().itemIcon
<mask> };
<mask> } else if (child.type === Thumbnail) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().thumbnail
<mask> };
<mask> } else if(child.type == Gravatar) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().gravatar
<mask> };
<mask> } else if (child.type === Image) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().fullImage
<mask> };
<mask> } else {
<mask> defaultProps = {
<mask> foregroundColor: this.getContextForegroundColor()
<mask> };
<mask> }
<mask>
<mask> return computeProps(child.props, defaultProps);
<mask> }
<mask>
<mask> prepareRootProps() {
<mask> let defaultProps = {};
</s> nb/backward list and card components </s> remove prepareRootProps() {
let defaultProps = {};
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().listItemDivider
};
} else {
defaultProps = {
style: this.getInitialStyle().listItem
};
}
return computeProps(this.props, defaultProps);
}
</s> add </s> remove if (child && (child.type === Text) && child.props.note) {
</s> add if (child && (child.type.displayName === "Styled(Text)") && child.props.note) { </s> remove propTypes: {
style : React.PropTypes.object
}
getInitialStyle() {
return {
card: {
marginVertical: 5,
flex: 1,
borderWidth: this.getTheme().borderWidth,
borderRadius: 2,
borderColor: this.getTheme().listBorderColor,
flexWrap: 'wrap',
borderBottomWidth: 0,
backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
shadowColor: this.props.transparent ? undefined : '#000',
shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
shadowOpacity: this.props.transparent ? undefined : 0.1,
shadowRadius: this.props.transparent ? undefined : 1.5,
elevation: this.props.transparent ? undefined : 2
}
}
}
prepareRootProps() {
var defaultProps = {
style: this.getInitialStyle().card
};
return computeProps(this.props, defaultProps);
}
</s> add </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { </s> remove if (child && child.type === Image) {
</s> add if (child && child.type.displayName === "Image") { | [
"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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"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/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
|
<mask>
<mask> return computeProps(child.props, defaultProps);
<mask> }
<mask>
<mask> prepareRootProps() {
<mask> let defaultProps = {};
<mask>
<mask> if ((this.props.header) || (this.props.footer)) {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().listItemDivider
<mask> };
<mask> } else {
<mask> defaultProps = {
<mask> style: this.getInitialStyle().listItem
<mask> };
<mask> }
<mask>
<mask> return computeProps(this.props, defaultProps);
<mask> }
<mask>
<mask>
<mask>
<mask>
<mask> renderChildren() {
<mask> let newChildren = [];
<mask> let childrenArray = React.Children.toArray(this.props.children);
<mask> childrenArray = childrenArray.filter(child => !!child);
</s> nb/backward list and card components </s> remove if (child.type === Image && !Array.isArray(this.props.children)) {
defaultProps = {
resizeMode: 'cover',
style: this.getInitialStyle().fullImage
};
} else
if (child.type === Button) {
defaultProps = {
style: this.getInitialStyle().itemButton
};
} else
if (child.type === Text) {
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().dividerItemText
};
} else if (child.props.note && (this.thumbnailPresent() || this.gravatarPresent())) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
};
} else if (child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
};
} else {
defaultProps = {
style: this.getInitialStyle().itemText
};
}
} else if (child.type === Icon) {
defaultProps = {
style: this.getInitialStyle().itemIcon
};
} else if (child.type === Thumbnail) {
defaultProps = {
style: this.getInitialStyle().thumbnail
};
} else if(child.type == Gravatar) {
defaultProps = {
style: this.getInitialStyle().gravatar
};
} else if (child.type === Image) {
defaultProps = {
style: this.getInitialStyle().fullImage
};
} else {
defaultProps = {
foregroundColor: this.getContextForegroundColor()
};
}
</s> add </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => </s> remove propTypes: {
style : React.PropTypes.object
}
getInitialStyle() {
return {
card: {
marginVertical: 5,
flex: 1,
borderWidth: this.getTheme().borderWidth,
borderRadius: 2,
borderColor: this.getTheme().listBorderColor,
flexWrap: 'wrap',
borderBottomWidth: 0,
backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
shadowColor: this.props.transparent ? undefined : '#000',
shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
shadowOpacity: this.props.transparent ? undefined : 0.1,
shadowRadius: this.props.transparent ? undefined : 1.5,
elevation: this.props.transparent ? undefined : 2
}
}
}
prepareRootProps() {
var defaultProps = {
style: this.getInitialStyle().card
};
return computeProps(this.props, defaultProps);
}
</s> add </s> remove );
</s> add )}
</View>
); </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"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/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
|
if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => | <mask> renderChildren() {
<mask> let newChildren = [];
<mask> let childrenArray = React.Children.toArray(this.props.children);
<mask> childrenArray = childrenArray.filter(child => !!child);
<mask>
<mask> if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
<mask> newChildren = childrenArray.map((child, i) =>
<mask> React.cloneElement(child, { ...this.getChildProps(child), key: i })
<mask> );
<mask> } else {
<mask> newChildren = [];
<mask> if (!Array.isArray(this.props.children)) {
</s> nb/backward list and card components </s> remove );
</s> add )}
</View>
); </s> remove prepareRootProps() {
let defaultProps = {};
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().listItemDivider
};
} else {
defaultProps = {
style: this.getInitialStyle().listItem
};
}
return computeProps(this.props, defaultProps);
}
</s> add </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
)}
</View>
); | <mask>
<mask> if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
<mask> newChildren = childrenArray.map((child, i) =>
<mask> React.cloneElement(child, { ...this.getChildProps(child), key: i })
<mask> );
<mask> } else {
<mask> newChildren = [];
<mask> if (!Array.isArray(this.props.children)) {
<mask> newChildren.push(
<mask> <View key='cardItem' style={{ justifyContent: 'flex-start' }}>
</s> nb/backward list and card components </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
{React.cloneElement(childrenArray)} | <mask> newChildren = [];
<mask> if (!Array.isArray(this.props.children)) {
<mask> newChildren.push(
<mask> <View key='cardItem' style={{ justifyContent: 'flex-start' }}>
<mask> {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
<mask> </View>
<mask> );
<mask> } else {
<mask> newChildren.push(
<mask> React.cloneElement(childrenArray[0], this.getChildProps(childrenArray[0])));
</s> nb/backward list and card components </s> remove );
</s> add )}
</View>
); </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
React.cloneElement(child, { key: i }) | <mask> React.cloneElement(childrenArray[0], this.getChildProps(childrenArray[0])));
<mask> newChildren.push(
<mask> <View key='cardItem' style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}>
<mask> {childrenArray.slice(1).map((child, i) =>
<mask> React.cloneElement(child, { ...this.getChildProps(child), key: i })
<mask> )}
<mask> </View>
<mask> );
<mask> }
<mask> }
</s> nb/backward list and card components </s> remove );
</s> add )}
</View>
); </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
ref={(c) => { this._root = c; }} {...this.props} | <mask>
<mask> render() {
<mask> return (
<mask> <TouchableOpacity
<mask> ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
<mask> activeOpacity={(this.props.button) ? 0.2 : 1}
<mask> >
<mask> {this.renderChildren()}
<mask> </TouchableOpacity>
<mask> );
</s> nb/backward list and card components </s> remove <TouchableOpacity ref={c => this._root = c} {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
</s> add <TouchableOpacity ref={c => this._root = c} {...this.props} activeOpacity={ (this.props.button) ? 0.2 : 1} > </s> remove <View ref={c => this._root = c} {...this.prepareRootProps()} >
</s> add <View ref={c => this._root = c} {...this.props} > </s> remove <ListView {...this.prepareRootProps()}
</s> add <ListView {...this.props} </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/CardItem.js |
<mask> import {View, Platform} from 'react-native';
<mask> import { connectStyle } from '@shoutem/theme';
<mask> // import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import { Icon } from './Icon';
<mask> import { Button } from './Button';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import { Input } from 'native-base';
<mask> import Picker from './Picker';
<mask> import _ from 'lodash';
</s> nb/backward list and card components </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import { Image, TouchableOpacity } from 'react-native';
</s> add import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove import {Image, TouchableOpacity, Platform } from 'react-native';
</s> add import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/InputGroup.js |
|
import { Input, Icon, Picker } from 'native-base'; | <mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import { Icon } from './Icon';
<mask> import { Button } from './Button';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import { Input } from 'native-base';
<mask> import Picker from './Picker';
<mask> import _ from 'lodash';
<mask>
<mask> class InputGroup extends NativeBaseComponent {
<mask>
<mask> propTypes: {
</s> nb/backward list and card components </s> remove import { Icon } from './Icon';
</s> add </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { </s> remove export default class ListItemNB extends NativeBaseComponent {
</s> add class ListItem extends NativeBaseComponent { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/InputGroup.js |
import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import {Image, TouchableOpacity, Platform } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Icon from './Icon';
<mask> import Text from './Text';
<mask> import View from './View';
</s> nb/backward list and card components </s> remove import { Image, TouchableOpacity } from 'react-native';
</s> add import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; | <mask> import React from 'react';
<mask> import {Image, TouchableOpacity, Platform } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Icon from './Icon';
<mask> import Text from './Text';
<mask> import View from './View';
<mask> import Button from './Button';
<mask> import Badge from './Badge';
<mask> import Thumbnail from './Thumbnail';
<mask> import Gravatar from './Gravatar';
<mask> import CheckBox from './Checkbox';
<mask> import Picker from './Picker';
<mask> import Radio from './Radio';
<mask> import InputGroup from './InputGroup';
<mask> import _ from 'lodash';
<mask>
<mask> export default class ListItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
</s> nb/backward list and card components </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; </s> remove import {Image, TouchableOpacity, Platform } from 'react-native';
</s> add import {Image, TouchableOpacity, Platform, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import { Image, TouchableOpacity } from 'react-native';
</s> add import { Image, TouchableOpacity, View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
class ListItem extends NativeBaseComponent { | <mask> import Radio from './Radio';
<mask> import InputGroup from './InputGroup';
<mask> import _ from 'lodash';
<mask>
<mask> export default class ListItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object,
<mask> header : React.PropTypes.bool,
<mask> iconRight : React.PropTypes.bool,
</s> nb/backward list and card components </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
iconRight : React.PropTypes.bool,
iconLeft : React.PropTypes.bool,
button : React.PropTypes.bool,
itemDivider : React.PropTypes.bool
}
</s> add </s> remove export default class CardItemNB extends NativeBaseComponent {
</s> add class CardItem extends NativeBaseComponent { </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
cardBody : React.PropTypes.bool
}
</s> add </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
<mask> import _ from 'lodash';
<mask>
<mask> export default class ListItemNB extends NativeBaseComponent {
<mask>
<mask> propTypes: {
<mask> style : React.PropTypes.object,
<mask> header : React.PropTypes.bool,
<mask> iconRight : React.PropTypes.bool,
<mask> iconLeft : React.PropTypes.bool,
<mask> button : React.PropTypes.bool,
<mask> itemDivider : React.PropTypes.bool
<mask> }
<mask>
<mask> getInitialStyle() {
<mask>
<mask> return {
<mask> listItem: {
</s> nb/backward list and card components </s> remove export default class ListItemNB extends NativeBaseComponent {
</s> add class ListItem extends NativeBaseComponent { </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
cardBody : React.PropTypes.bool
}
</s> add </s> remove export default class CardItemNB extends NativeBaseComponent {
</s> add class CardItem extends NativeBaseComponent { </s> remove export default class CardNB extends NativeBaseComponent {
</s> add class Card extends NativeBaseComponent { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
|
<mask> getInitialStyle() {
<mask>
<mask> return {
<mask> listItem: {
<mask> borderBottomWidth: this.getTheme().borderWidth,
<mask> // height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
<mask> marginLeft: 15,
<mask> padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
<mask> paddingLeft: 2,
<mask> justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
<mask> flexDirection: this.stackedPresent() ? 'column' : 'row',
<mask> alignItems: 'center',
<mask> borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
<mask> },
<mask> listItemDivider: {
<mask> borderBottomWidth: this.getTheme().borderWidth,
<mask> height: this.getTheme().listItemHeight,
<mask> padding: this.getTheme().listItemPadding,
</s> nb/backward list and card components </s> remove getInitialStyle() {
return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
padding: (this.imagePresent() && !this.ifShowCase()) ? 0 :
this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column',
borderColor: this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: 'transparent',
paddingVertical: this.getTheme().listItemPadding + 2,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: 'transparent'
},
itemText: {
fontSize: this.ifShowCase() ? 14 : 15,
marginTop: this.ifShowCase() ? 10 : 0,
color: this.getContextForegroundColor(),
flex: 1
},
dividerItemText: {
fontSize: 17,
fontWeight: '500',
color: this.getContextForegroundColor(),
flex: 1
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor()
},
itemNote: {
fontSize: 15,
color: this.getTheme().listNoteColor,
fontWeight: '100',
flex: 1
},
itemSubNote: {
fontSize: 15,
color: '#999'
},
thumbnail: {
alignSelf: 'center'
},
gravatar: {
alignSelf: 'center'
},
fullImage: {
alignSelf: 'stretch',
height: this.ifShowCase() ? 120 : 300
}
};
}
</s> add </s> remove propTypes: {
style : React.PropTypes.object
}
getInitialStyle() {
return {
card: {
marginVertical: 5,
flex: 1,
borderWidth: this.getTheme().borderWidth,
borderRadius: 2,
borderColor: this.getTheme().listBorderColor,
flexWrap: 'wrap',
borderBottomWidth: 0,
backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
shadowColor: this.props.transparent ? undefined : '#000',
shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
shadowOpacity: this.props.transparent ? undefined : 0.1,
shadowRadius: this.props.transparent ? undefined : 1.5,
elevation: this.props.transparent ? undefined : 2
}
}
}
prepareRootProps() {
var defaultProps = {
style: this.getInitialStyle().card
};
return computeProps(this.props, defaultProps);
}
</s> add </s> remove propTypes: {
style : React.PropTypes.object,
header : React.PropTypes.bool,
cardBody : React.PropTypes.bool
}
</s> add </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
|
if(child && child.type.displayName == "Styled(Radio)") | <mask>
<mask> radioPresent() {
<mask> var radioComponentPresent = false;
<mask> React.Children.forEach(this.props.children, function (child) {
<mask> if(child && child.type == Radio)
<mask> radioComponentPresent = true;
<mask> })
<mask>
<mask> return radioComponentPresent;
<mask> }
</s> nb/backward list and card components </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") </s> remove if(child && child.type == Picker)
</s> add if(child && child.type.displayName == "Styled(Picker)") </s> remove if(child.type == Gravatar)
</s> add if(child.type.displayName === "Styled(Gravatar)") </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(child && child.type.displayName == "Styled(Icon)") | <mask>
<mask> iconPresent() {
<mask> var iconComponentPresent = false;
<mask> React.Children.forEach(this.props.children, function (child) {
<mask> if(child && child.type == Icon)
<mask> iconComponentPresent = true;
<mask> })
<mask> return iconComponentPresent;
<mask> }
<mask>
</s> nb/backward list and card components </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if(child && child.type == Radio)
</s> add if(child && child.type.displayName == "Styled(Radio)") </s> remove if(child && child.type == Picker)
</s> add if(child && child.type.displayName == "Styled(Picker)") </s> remove if(child.type == Gravatar)
</s> add if(child.type.displayName === "Styled(Gravatar)") </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(child && child.type.displayName == "Styled(Picker)") | <mask>
<mask> pickerPresent() {
<mask> var pickerComponentPresent = false;
<mask> React.Children.forEach(this.props.children, function (child) {
<mask> if(child && child.type == Picker)
<mask> pickerComponentPresent = true;
<mask> })
<mask>
<mask> return pickerComponentPresent;
<mask> }
</s> nb/backward list and card components </s> remove if(child && child.type == Icon)
</s> add if(child && child.type.displayName == "Styled(Icon)") </s> remove if(child && child.type == Radio)
</s> add if(child && child.type.displayName == "Styled(Radio)") </s> remove if(child.type == Gravatar)
</s> add if(child.type.displayName === "Styled(Gravatar)") </s> remove if (child && child.type === Icon) {
</s> add if (child && child.type.displayName === "Styled(Icon)") { </s> remove if (child && child.type === Button) {
</s> add if (child && child.type.displayName === "Styled(Button)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
console.log("34"); | <mask> var newChildren = [];
<mask> if(!Array.isArray(this.props.children) && !this.inlinePresent() && !this.stackedPresent() && !this.insetPresent()) {
<mask> newChildren.push(
<mask> <View key='listItem'>
<mask> {React.cloneElement(this.props.children, this.getChildProps(this.props.children))}
<mask> </View>
<mask> );
</s> nb/backward list and card components </s> remove <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
</s> add <View key='listItem'> </s> remove );
</s> add )}
</View>
); </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
<View key='listItem'> | <mask>
<mask> var newChildren = [];
<mask> if(!Array.isArray(this.props.children) && !this.inlinePresent() && !this.stackedPresent() && !this.insetPresent()) {
<mask> newChildren.push(
<mask> <View key='listItem' style={{alignSelf: 'stretch', flex:1, justifyContent: 'center'}}>
<mask> {React.cloneElement(this.props.children, this.getChildProps(this.props.children))}
<mask> </View>
<mask> );
<mask> }
<mask>
</s> nb/backward list and card components </s> remove );
</s> add )}
</View>
); </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} </s> remove
if ((!this.thumbnailPresent() || !this.gravatarPresent()) && !this.iconPresent()) {
newChildren = childrenArray.map((child, i) =>
</s> add if ((!this.thumbnailPresent()) && !this.iconPresent()) {
newChildren.push(<View key="item" style={{ flex: 1 }}>
{childrenArray.map((child, i) => </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
newChildren.push(<View key='listItem1' style={{flexDirection: 'row',alignItems: 'center', justifyContent: 'space-between', flex: 1}} > | <mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'}));
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} >
<mask> {childrenArray.map((child, i) => {
<mask> return React.cloneElement(child, {...this.getChildProps(child), key: i});
<mask> })}
<mask> </View>);
<mask> }
</s> nb/backward list and card components </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { </s> remove if(item.type == Thumbnail) {
</s> add if(item.type.displayName == "Styled(Thumbnail)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Picker)") { | <mask> }
<mask>
<mask> else if (this.props.iconLeft && this.pickerPresent()) {
<mask> let pickerElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Picker) {
<mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'row', alignItems: 'center', flex: 1.8}} >
<mask> {childrenArray.map((child, i) => {
</s> nb/backward list and card components </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == Badge) {
</s> add if(item.type.displayName == "Styled(Badge)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Icon)") { | <mask>
<mask> else if (this.props.iconRight && !this.props.iconLeft) {
<mask>
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Icon) {
<mask> return true;
<mask> }
<mask> });
<mask>
<mask> newChildren.push(<View key='listItem0' >
</s> nb/backward list and card components </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == Badge) {
</s> add if(item.type.displayName == "Styled(Badge)") { </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Badge)") { | <mask>
<mask> else if (this.badgePresent()) {
<mask>
<mask> var badgeElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Badge) {
<mask> return true;
<mask> }
<mask> });
<mask>
<mask> newChildren.push(<View key='listItem0' >
</s> nb/backward list and card components </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Icon)") { | <mask>
<mask> else if (this.props.iconLeft && this.props.iconRight) {
<mask>
<mask> iconElement = _.filter(childrenArray, function(item) {
<mask> if(item.type == Icon) {
<mask> return true;
<mask> }
<mask> });
<mask>
<mask> newChildren.push(<View key='listItem0' style={{flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between'}} >
</s> nb/backward list and card components </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove if(item.type == Badge) {
</s> add if(item.type.displayName == "Styled(Badge)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Thumbnail)") { | <mask>
<mask> else if (this.thumbnailPresent()) {
<mask>
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Thumbnail) {
<mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'}));
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> nb/backward list and card components </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'row',alignItems: 'center', justifyContent: 'space-between', flex: 1}} > | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > | <mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'}));
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
<mask> {childrenArray.map((child, i) => {
<mask> return React.cloneElement(child, {...this.getChildProps(child), key: i});
<mask> })}
<mask> </View>);
<mask> }
</s> nb/backward list and card components </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'row',alignItems: 'center', justifyContent: 'space-between', flex: 1}} > </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { </s> remove if(item.type == Thumbnail) {
</s> add if(item.type.displayName == "Styled(Thumbnail)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Gravatar)") { | <mask> }
<mask> else if (this.gravatarPresent()) {
<mask>
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Gravatar) {
<mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(React.cloneElement(iconElement[0], {...this.getChildProps(iconElement[0]), key: 'listItem0'}));
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> nb/backward list and card components </s> remove if(item.type == Thumbnail) {
</s> add if(item.type.displayName == "Styled(Thumbnail)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'row',alignItems: 'center', justifyContent: 'space-between', flex: 1}} > | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(CheckBox)") { | <mask> }
<mask> else if (this.checkBoxPresent()) {
<mask>
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == CheckBox) {
<mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(React.cloneElement(iconElement[0], this.getChildProps(iconElement[0])));
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'row', paddingLeft: 15, justifyContent: 'space-between', alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> nb/backward list and card components </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { </s> remove if(item.type == Thumbnail) {
</s> add if(item.type.displayName == "Styled(Thumbnail)") { </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'row', justifyContent: 'space-between', flex: 1}} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'row',alignItems: 'center', justifyContent: 'space-between', flex: 1}} > | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
if(item.type.displayName == "Styled(Radio)") { | <mask> }
<mask> else if (this.radioPresent()) {
<mask>
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Radio) {
<mask> return true;
<mask> }
<mask> });
<mask> newChildren.push(<View key='listItem1' style={{flexDirection: 'column', alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
<mask> {childrenArray.map((child) => {
</s> nb/backward list and card components </s> remove if(item.type == Gravatar) {
</s> add if(item.type.displayName == "Styled(Gravatar)") { </s> remove if(item.type == Thumbnail) {
</s> add if(item.type.displayName == "Styled(Thumbnail)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { </s> remove newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'center', flex: 1 }} >
</s> add newChildren.push(<View key='listItem1' style={{flexDirection: 'column', paddingLeft: 15, alignSelf: (this.squareThumbs()) ? 'flex-start' : 'flex-start', flex: 1 }} > </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
<TouchableOpacity ref={c => this._root = c} {...this.props} activeOpacity={ (this.props.button) ? 0.2 : 1} > | <mask> }
<mask>
<mask> render() {
<mask> return(
<mask> <TouchableOpacity ref={c => this._root = c} {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
<mask> {this.renderChildren()}
<mask> </TouchableOpacity>
<mask> );
<mask> }
<mask>
</s> nb/backward list and card components </s> remove ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
</s> add ref={(c) => { this._root = c; }} {...this.props} </s> remove <View ref={c => this._root = c} {...this.prepareRootProps()} >
</s> add <View ref={c => this._root = c} {...this.props} > </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) </s> remove <ListView {...this.prepareRootProps()}
</s> add <ListView {...this.props} </s> remove if(item.type == Radio) {
</s> add if(item.type.displayName == "Styled(Radio)") { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
ListItem.propTypes = {
...TouchableOpacity.propTypes,
style : React.PropTypes.object,
header : React.PropTypes.bool,
iconRight : React.PropTypes.bool,
iconLeft : React.PropTypes.bool,
button : React.PropTypes.bool,
itemDivider : React.PropTypes.bool
};
const StyledListItem = connectStyle('NativeBase.ListItem1', {}, mapPropsToStyleNames)(ListItem);
export {
StyledListItem as ListItem,
}; | <mask> );
<mask> }
<mask>
<mask> }
</s> nb/backward list and card components </s> remove <View ref={c => this._root = c} {...this.prepareRootProps()} >
</s> add <View ref={c => this._root = c} {...this.props} > </s> remove React.cloneElement(child, { ...this.getChildProps(child), key: i })
</s> add React.cloneElement(child, { key: i }) </s> remove <TouchableOpacity ref={c => this._root = c} {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
</s> add <TouchableOpacity ref={c => this._root = c} {...this.props} activeOpacity={ (this.props.button) ? 0.2 : 1} > </s> remove );
</s> add )}
</View>
); </s> remove {React.cloneElement(childrenArray, this.getChildProps(childrenArray))}
</s> add {React.cloneElement(childrenArray)} | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/Widgets/ListItem.js |
import { Drawer } from 'native-base'; | <mask> import Drawer from './vendor/react-native-drawer';
<mask> import { Header } from './Widgets/Header';
<mask> import { Footer } from 'native-base';
<mask> import { Title } from './Widgets/Title';
<mask> import { Container } from './Widgets/Container';
<mask> import { Content } from 'native-base';
</s> nb/backward list and card components </s> remove import Tab from './Widgets/Tab';
</s> add import { Tab } from 'native-base'; </s> remove import List from './Widgets/List';
import ListItem from './Widgets/ListItem';
import CardItem from './Widgets/CardItem';
import CardSwiper from './Widgets/CardSwiper';
</s> add import { List } from 'native-base';
import { ListItem } from './Widgets/ListItem';
import { CardItem } from './Widgets/CardItem'; </s> remove import Card from './Widgets/Card';
</s> add import { Card } from './Widgets/Card'; </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import ScrollableTabView from './Widgets/Tabs';
</s> add import { Tabs } from 'native-base/ui'; | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
import { List } from 'native-base';
import { ListItem } from './Widgets/ListItem';
import { CardItem } from './Widgets/CardItem'; | <mask> import { Button } from './Widgets/Button';
<mask> import { Text } from './Widgets/Text';
<mask> import { Switch } from 'native-base';
<mask> import { Picker } from 'native-base';
<mask> import List from './Widgets/List';
<mask> import ListItem from './Widgets/ListItem';
<mask> import CardItem from './Widgets/CardItem';
<mask> import CardSwiper from './Widgets/CardSwiper';
<mask> import { DeckSwiper } from 'native-base';
<mask> import { H1 } from 'native-base';
<mask> import { H2 } from 'native-base';
<mask> import { H3 } from 'native-base';
<mask> import { View } from './Widgets/View';
</s> nb/backward list and card components </s> remove import Tab from './Widgets/Tab';
</s> add import { Tab } from 'native-base'; </s> remove import Drawer from './vendor/react-native-drawer';
</s> add import { Drawer } from 'native-base'; </s> remove import Card from './Widgets/Card';
</s> add import { Card } from './Widgets/Card'; </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
import { Tab } from 'native-base'; | <mask> import { Textarea } from 'native-base';
<mask> import { InputGroup } from './Widgets/InputGroup';
<mask> import { Icon } from 'native-base';
<mask> import { FooterTab } from './Widgets/FooterTab';
<mask> import Tab from './Widgets/Tab';
<mask> import { Fab } from 'native-base';
<mask> import { Thumbnail } from 'native-base';
<mask> import { Gravatar } from './Widgets/Gravatar';
<mask> import { CheckBox } from 'native-base';
<mask> import { Radio } from 'native-base';
</s> nb/backward list and card components </s> remove import Card from './Widgets/Card';
</s> add import { Card } from './Widgets/Card'; </s> remove import List from './Widgets/List';
import ListItem from './Widgets/ListItem';
import CardItem from './Widgets/CardItem';
import CardSwiper from './Widgets/CardSwiper';
</s> add import { List } from 'native-base';
import { ListItem } from './Widgets/ListItem';
import { CardItem } from './Widgets/CardItem'; </s> remove import Drawer from './vendor/react-native-drawer';
</s> add import { Drawer } from 'native-base'; </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
import { Card } from './Widgets/Card'; | <mask> import { Thumbnail } from 'native-base';
<mask> import { Gravatar } from './Widgets/Gravatar';
<mask> import { CheckBox } from 'native-base';
<mask> import { Radio } from 'native-base';
<mask> import Card from './Widgets/Card';
<mask> import { Badge } from './Widgets/Badge';
<mask> import { Spinner } from 'native-base';
<mask> // import ProgressBar from './Widgets/ProgressBar';
<mask> import { Col, Row, Grid } from 'react-native-easy-grid';
<mask> import ScrollableTabView from './Widgets/Tabs';
</s> nb/backward list and card components </s> remove import ScrollableTabView from './Widgets/Tabs';
</s> add import { Tabs } from 'native-base/ui'; </s> remove import Tab from './Widgets/Tab';
</s> add import { Tab } from 'native-base'; </s> remove import List from './Widgets/List';
import ListItem from './Widgets/ListItem';
import CardItem from './Widgets/CardItem';
import CardSwiper from './Widgets/CardSwiper';
</s> add import { List } from 'native-base';
import { ListItem } from './Widgets/ListItem';
import { CardItem } from './Widgets/CardItem'; </s> remove import Drawer from './vendor/react-native-drawer';
</s> add import { Drawer } from 'native-base'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
import { Tabs } from 'native-base/ui'; | <mask> import { Badge } from './Widgets/Badge';
<mask> import { Spinner } from 'native-base';
<mask> // import ProgressBar from './Widgets/ProgressBar';
<mask> import { Col, Row, Grid } from 'react-native-easy-grid';
<mask> import ScrollableTabView from './Widgets/Tabs';
<mask>
<mask> module.exports = {
<mask> Header,
<mask> Footer,
<mask> Title,
</s> nb/backward list and card components </s> remove import Card from './Widgets/Card';
</s> add import { Card } from './Widgets/Card'; </s> remove import Tab from './Widgets/Tab';
</s> add import { Tab } from 'native-base'; </s> remove import List from './Widgets/List';
import ListItem from './Widgets/ListItem';
import CardItem from './Widgets/CardItem';
import CardSwiper from './Widgets/CardSwiper';
</s> add import { List } from 'native-base';
import { ListItem } from './Widgets/ListItem';
import { CardItem } from './Widgets/CardItem'; </s> remove import Drawer from './vendor/react-native-drawer';
</s> add import { Drawer } from 'native-base'; </s> remove import { Icon } from './Icon';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
<mask> Icon,
<mask> Thumbnail,
<mask> Gravatar,
<mask> Card,
<mask> CardSwiper,
<mask> DeckSwiper,
<mask> Badge,
<mask> Spinner,
<mask> CheckBox,
<mask> Radio,
</s> nb/backward list and card components </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Badge from './Badge';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
import CheckBox from './Checkbox';
import Picker from './Picker';
import Radio from './Radio';
import InputGroup from './InputGroup';
</s> add import { Icon, Thumbnail, CheckBox, Radio, Picker } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Badge } from './Badge';
import { Gravatar } from './Gravatar';
import { InputGroup } from './InputGroup'; </s> remove TabBar: Tab,
</s> add Tab, </s> remove import { Input } from 'native-base';
import Picker from './Picker';
</s> add import { Input, Icon, Picker } from 'native-base'; </s> remove import Icon from './Icon';
import Text from './Text';
import View from './View';
import Button from './Button';
import Thumbnail from './Thumbnail';
import Gravatar from './Gravatar';
</s> add import { Icon, Thumbnail } from 'native-base';
import { Text } from './Text';
import { Button } from './Button';
import { Gravatar } from './Gravatar'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
|
Tab, | <mask> Radio,
<mask> // ProgressBar: ProgressBar,
<mask> Drawer,
<mask> FooterTab,
<mask> TabBar: Tab,
<mask> Fab,
<mask> Tabs: ScrollableTabView,
<mask> };
</s> nb/backward list and card components </s> remove Tabs: ScrollableTabView,
</s> add Tabs, </s> remove CardSwiper,
</s> add </s> remove if (child.type === Image && !Array.isArray(this.props.children)) {
defaultProps = {
resizeMode: 'cover',
style: this.getInitialStyle().fullImage
};
} else
if (child.type === Button) {
defaultProps = {
style: this.getInitialStyle().itemButton
};
} else
if (child.type === Text) {
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().dividerItemText
};
} else if (child.props.note && (this.thumbnailPresent() || this.gravatarPresent())) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
};
} else if (child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
};
} else {
defaultProps = {
style: this.getInitialStyle().itemText
};
}
} else if (child.type === Icon) {
defaultProps = {
style: this.getInitialStyle().itemIcon
};
} else if (child.type === Thumbnail) {
defaultProps = {
style: this.getInitialStyle().thumbnail
};
} else if(child.type == Gravatar) {
defaultProps = {
style: this.getInitialStyle().gravatar
};
} else if (child.type === Image) {
defaultProps = {
style: this.getInitialStyle().fullImage
};
} else {
defaultProps = {
foregroundColor: this.getContextForegroundColor()
};
}
</s> add </s> remove prepareRootProps() {
let defaultProps = {};
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().listItemDivider
};
} else {
defaultProps = {
style: this.getInitialStyle().listItem
};
}
return computeProps(this.props, defaultProps);
}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
Tabs, | <mask> Drawer,
<mask> FooterTab,
<mask> TabBar: Tab,
<mask> Fab,
<mask> Tabs: ScrollableTabView,
<mask> };
</s> nb/backward list and card components </s> remove TabBar: Tab,
</s> add Tab, </s> remove if (child.type === Image && !Array.isArray(this.props.children)) {
defaultProps = {
resizeMode: 'cover',
style: this.getInitialStyle().fullImage
};
} else
if (child.type === Button) {
defaultProps = {
style: this.getInitialStyle().itemButton
};
} else
if (child.type === Text) {
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().dividerItemText
};
} else if (child.props.note && (this.thumbnailPresent() || this.gravatarPresent())) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
};
} else if (child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
};
} else {
defaultProps = {
style: this.getInitialStyle().itemText
};
}
} else if (child.type === Icon) {
defaultProps = {
style: this.getInitialStyle().itemIcon
};
} else if (child.type === Thumbnail) {
defaultProps = {
style: this.getInitialStyle().thumbnail
};
} else if(child.type == Gravatar) {
defaultProps = {
style: this.getInitialStyle().gravatar
};
} else if (child.type === Image) {
defaultProps = {
style: this.getInitialStyle().fullImage
};
} else {
defaultProps = {
foregroundColor: this.getContextForegroundColor()
};
}
</s> add </s> remove prepareRootProps() {
let defaultProps = {};
if ((this.props.header) || (this.props.footer)) {
defaultProps = {
style: this.getInitialStyle().listItemDivider
};
} else {
defaultProps = {
style: this.getInitialStyle().listItem
};
}
return computeProps(this.props, defaultProps);
}
</s> add </s> remove propTypes: {
style : React.PropTypes.object
}
getInitialStyle() {
return {
card: {
marginVertical: 5,
flex: 1,
borderWidth: this.getTheme().borderWidth,
borderRadius: 2,
borderColor: this.getTheme().listBorderColor,
flexWrap: 'wrap',
borderBottomWidth: 0,
backgroundColor: this.props.transparent? 'transparent' : this.getTheme().cardDefaultBg,
shadowColor: this.props.transparent ? undefined : '#000',
shadowOffset: this.props.transparent ? undefined : {width: 0, height: 2},
shadowOpacity: this.props.transparent ? undefined : 0.1,
shadowRadius: this.props.transparent ? undefined : 1.5,
elevation: this.props.transparent ? undefined : 2
}
}
}
prepareRootProps() {
var defaultProps = {
style: this.getInitialStyle().card
};
return computeProps(this.props, defaultProps);
}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | backward/index.js |
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
}, | <mask> fontWeight: '600',
<mask> },
<mask> },
<mask> 'NativeBase.Text': {
<mask> paddingHorizontal: 8,
<mask> fontWeight: '500',
<mask> },
<mask> flexDirection: 'row',
</s> nb/backward list and card components </s> remove getInitialStyle() {
return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
padding: (this.imagePresent() && !this.ifShowCase()) ? 0 :
this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column',
borderColor: this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: 'transparent',
paddingVertical: this.getTheme().listItemPadding + 2,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: 'transparent'
},
itemText: {
fontSize: this.ifShowCase() ? 14 : 15,
marginTop: this.ifShowCase() ? 10 : 0,
color: this.getContextForegroundColor(),
flex: 1
},
dividerItemText: {
fontSize: 17,
fontWeight: '500',
color: this.getContextForegroundColor(),
flex: 1
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor()
},
itemNote: {
fontSize: 15,
color: this.getTheme().listNoteColor,
fontWeight: '100',
flex: 1
},
itemSubNote: {
fontSize: 15,
color: '#999'
},
thumbnail: {
alignSelf: 'center'
},
gravatar: {
alignSelf: 'center'
},
fullImage: {
alignSelf: 'stretch',
height: this.ifShowCase() ? 120 : 300
}
};
}
</s> add </s> remove borderBottomWidth: this.getTheme().borderWidth,
// height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
</s> add </s> remove if(item.type == Icon) {
</s> add if(item.type.displayName == "Styled(Icon)") { </s> remove if(item.type == Picker) {
</s> add if(item.type.displayName == "Styled(Picker)") { </s> remove if(item.type == CheckBox) {
</s> add if(item.type.displayName == "Styled(CheckBox)") { | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b090519a6779962e106fa7a2f9713955ea357bff | theme.js |
<Box {..._interactionBox} /> | <mask> >
<mask> <Box {...layoutProps}>
<mask> <Center>
<mask> {/* Interaction Wrapper */}
<mask> <Box
<mask> {..._interactionBox}
<mask> p={5}
<mask> w="100%"
<mask> height="100%"
<mask> zIndex={-1}
<mask> />
<mask> {/* Checkbox */}
<mask> <Center {...nonAccessibilityProps}>
<mask> <SizedIcon icon={icon} _icon={_icon} isChecked={isChecked} />
<mask> </Center>
<mask> </Center>
</s> fix: radio checkbox theme decoupling </s> remove pointerEvents="none"
zIndex={-1}
</s> add </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/Checkbox.tsx |
<mask> <Center>
<mask> {/* Interaction Box */}
<mask> <Box
<mask> {..._interactionBox}
<mask> style={{
<mask> // @ts-ignore - only for web"
<mask> transition: 'height 200ms, width 200ms',
<mask> }}
<mask> h={
<mask> isFocusVisible ||
<mask> isFocusVisibleProp ||
<mask> isHovered ||
<mask> isHoveredProp
</s> fix: radio checkbox theme decoupling </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/Checkbox.web.tsx |
|
<mask> isHoveredProp
<mask> ? '200%'
<mask> : '0%'
<mask> }
<mask> pointerEvents="none"
<mask> zIndex={-1}
<mask> />
<mask> {/* Checkbox */}
<mask> <Center {...nonLayoutProps}>
<mask> {/* {iconResolver()} */}
<mask> <SizedIcon icon={icon} _icon={_icon} isChecked={isChecked} />
</s> fix: radio checkbox theme decoupling </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/Checkbox.web.tsx |
|
import { usePropsResolution } from '../../../hooks/useThemeProps'; | <mask> import type { ICheckboxGroupProps, ICheckboxContext } from './types';
<mask> import Box from '../Box';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask>
<mask> export const CheckboxGroupContext = createContext<ICheckboxContext | null>(
<mask> null
<mask> );
</s> fix: radio checkbox theme decoupling </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/CheckboxGroup.tsx |
const resolvedProps = usePropsResolution('CheckboxGroup', props); | <mask> function CheckboxGroup(
<mask> { size, _checkbox, colorScheme, ...props }: ICheckboxGroupProps,
<mask> ref?: any
<mask> ) {
<mask> const { children } = props;
<mask> const state = useCheckboxGroupState(props);
<mask> const { groupProps } = useCheckboxGroup(
<mask> { 'aria-label': props.accessibilityLabel, ...props },
<mask> state
<mask> );
</s> fix: radio checkbox theme decoupling </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/CheckboxGroup.tsx |
<Box {...resolvedProps} {...groupProps} {...props} ref={ref}> | <mask> ...formControlContext,
<mask> state,
<mask> }}
<mask> >
<mask> <Box alignItems="flex-start" {...groupProps} {...props} ref={ref}>
<mask> {children}
<mask> </Box>
<mask> </CheckboxGroupContext.Provider>
<mask> );
<mask> }
</s> fix: radio checkbox theme decoupling </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Checkbox/CheckboxGroup.tsx |
<Box {..._interactionBox} /> | <mask> >
<mask> <HStack {..._stack}>
<mask> <Center>
<mask> {/* Interaction Wrapper */}
<mask> <Box position="absolute" zIndex={-1} {..._interactionBox} />
<mask> {/* radio */}
<mask> <Center {...resolvedProps}>
<mask> {icon && sizedIcon && isChecked ? (
<mask> sizedIcon()
<mask> ) : (
</s> fix: radio checkbox theme decoupling </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> </s> remove pointerEvents="none"
zIndex={-1}
</s> add </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/Radio.tsx |
import { Stack } from '../Stack'; | <mask> import React, { memo, forwardRef } from 'react';
<mask> import Box from '../Box';
<mask> import { HStack } from '../Stack';
<mask> import { Center } from '../../composites/Center';
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps';
<mask> import { wrapStringChild } from '../../../utils/wrapStringChild';
<mask> import type { IRadioProps } from './types';
<mask> import { mergeRefs } from './../../../utils';
</s> fix: radio checkbox theme decoupling | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/Radio.web.tsx |
<Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> | <mask> ..._icon,
<mask> });
<mask>
<mask> const component = (
<mask> <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
<mask> <Center>
<mask> {/* Interaction Box */}
<mask> <Box
<mask> position="absolute"
<mask> zIndex={-1}
</s> fix: radio checkbox theme decoupling </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove pointerEvents="none"
zIndex={-1}
</s> add </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/Radio.web.tsx |
<Box {..._interactionBox} /> | <mask> const component = (
<mask> <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
<mask> <Center>
<mask> {/* Interaction Box */}
<mask> <Box
<mask> position="absolute"
<mask> zIndex={-1}
<mask> pointerEvents="none"
<mask> {..._interactionBox}
<mask> style={{
<mask> // @ts-ignore - only for web"
<mask> transition: 'height 200ms, width 200ms',
<mask> }}
<mask> />
<mask> {/* Radio */}
<mask> <Center {...resolvedProps}>
<mask> {icon && sizedIcon && isChecked ? (
<mask> sizedIcon()
<mask> ) : (
</s> fix: radio checkbox theme decoupling </s> remove <Box position="absolute" zIndex={-1} {..._interactionBox} />
</s> add <Box {..._interactionBox} /> </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove pointerEvents="none"
zIndex={-1}
</s> add </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> | [
"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/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/Radio.web.tsx |
</Stack> | <mask> )}
<mask> </Center>
<mask> </Center>
<mask> {wrapStringChild(children, _text)}
<mask> </HStack>
<mask> );
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps(props)) {
<mask> return null;
<mask> }
</s> fix: radio checkbox theme decoupling </s> remove // console.log(radioGroupState);
</s> add </s> remove <Box
{..._interactionBox}
p={5}
w="100%"
height="100%"
zIndex={-1}
/>
</s> add <Box {..._interactionBox} /> </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/Radio.web.tsx |
import { usePropsResolution } from '../../../hooks/useThemeProps'; | <mask> import { useRadioGroup } from '@react-native-aria/radio';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask>
<mask> export const RadioContext = React.createContext<IRadioContext>(
<mask> {} as IRadioContext
<mask> );
<mask> const RadioWrapper = memo((props: any) => {
<mask> const resolvedProps = usePropsResolution('RadioGroup', props);
</s> fix: radio checkbox theme decoupling </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/RadioGroup.tsx |
const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; | <mask> export const RadioContext = React.createContext<IRadioContext>(
<mask> {} as IRadioContext
<mask> );
<mask> const RadioWrapper = memo((props: any) => {
<mask> return (
<mask> <Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
<mask> );
<mask> });
<mask>
<mask> const RadioGroup = (
<mask> { size, colorScheme, _radio, children, ...props }: IRadioGroupProps,
<mask> ref: any
</s> fix: radio checkbox theme decoupling </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/RadioGroup.tsx |
<mask> // eslint-disable-next-line react-hooks/exhaustive-deps
<mask> []
<mask> );
<mask>
<mask> // console.log(radioGroupState);
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps({ ...props, size, colorScheme })) {
<mask> return null;
<mask> }
<mask>
</s> fix: radio checkbox theme decoupling </s> remove </HStack>
</s> add </Stack> </s> remove return (
<Stack alignItems="flex-start" {...props.radioGroupProps} {...props} />
);
</s> add const resolvedProps = usePropsResolution('RadioGroup', props);
return <Stack {...resolvedProps} {...props.radioGroupProps} {...props} />; </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove flexDirection: 'row',
</s> add direction: 'row', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/components/primitives/Radio/RadioGroup.tsx |
|
p: 5,
w: '100%',
h: '100%',
zIndex: -1,
_web: {
transition: 'height 200ms, width 200ms',
pointerEvents: 'none',
}, | <mask> position: 'absolute',
<mask> borderRadius: 'full',
<mask> },
<mask> _hover: {
<mask> _interactionBox: {
<mask> bg: transparentize('muted.200', 0.3)(theme),
<mask> },
<mask> },
</s> fix: radio checkbox theme decoupling </s> remove flexDirection: 'row',
</s> add direction: 'row', </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/checkbox.ts |
import CheckboxGroup from './checkbox-group'; | <mask> import Card from './card';
<mask> import Center from './center';
<mask> import Checkbox from './checkbox';
<mask> import Box from './box';
<mask> import FlatList from './flatList';
<mask> import KeyboardAvoidingView from './keyboardAvoidingView';
<mask> import ScrollView from './scrollView';
<mask> import SectionList from './sectionList';
</s> fix: radio checkbox theme decoupling </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; </s> remove pointerEvents="none"
zIndex={-1}
</s> add | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/index.ts |
import RadioGroup from './radio-group'; | <mask> import PinInput from './pin-input';
<mask> import Pressable from './pressable';
<mask> import Progress from './progress';
<mask> import Radio from './radio';
<mask> import { Skeleton, SkeletonText } from './skeleton';
<mask> import Spinner from './spinner';
<mask> import Stat from './stat';
<mask> import Switch from './switch';
</s> fix: radio checkbox theme decoupling </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/index.ts |
CheckboxGroup, | <mask> Card,
<mask> Center,
<mask> Checkbox,
<mask> CircularProgress,
<mask> Code,
<mask> Container,
<mask> Divider,
<mask> Fade,
</s> fix: radio checkbox theme decoupling </s> remove <Box
position="absolute"
zIndex={-1}
pointerEvents="none"
{..._interactionBox}
style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
/>
</s> add <Box {..._interactionBox} /> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove pointerEvents="none"
zIndex={-1}
</s> add | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/index.ts |
RadioGroup, | <mask> ...PopoverComponentTheme,
<mask> Progress,
<mask> Radio,
<mask> ScaleFade,
<mask> Select,
<mask> SelectItem,
<mask> SimpleGrid,
<mask> Skeleton,
<mask> SkeletonText,
</s> fix: radio checkbox theme decoupling </s> remove <HStack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}>
</s> add <Stack {..._stack} cursor={isDisabled ? 'not-allowed' : 'pointer'}> </s> remove style={{
// @ts-ignore - only for web"
transition: 'height 200ms, width 200ms',
}}
</s> add </s> remove pointerEvents="none"
zIndex={-1}
</s> add | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/index.ts |
direction: 'row', | <mask> borderColor: mode('muted.300', 'muted.600')(props),
<mask> bg: mode('muted.50', 'muted.700')(props), // matching background color
<mask>
<mask> _stack: {
<mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> space: 2,
<mask> },
<mask> _interactionBox: {
<mask> borderRadius: 'full',
</s> fix: radio checkbox theme decoupling </s> remove // console.log(radioGroupState);
</s> add </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/radio.ts |
position: 'absolute',
zIndex: -1,
_web: {
transition: 'height 200ms, width 200ms',
pointerEvents: 'none',
}, | <mask> borderRadius: 'full',
<mask> size: 3,
<mask> },
<mask> _icon: {
<mask> color: mode(`${colorScheme}.600`, `${colorScheme}.200`)(props), // matching background color
<mask> },
<mask> _hover: {
</s> fix: radio checkbox theme decoupling </s> remove flexDirection: 'row',
</s> add direction: 'row', </s> remove // console.log(radioGroupState);
</s> add </s> remove import { HStack } from '../Stack';
</s> add import { Stack } from '../Stack'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b16d344e9dec335c9dee1e2dedd4fb76ac711476 | src/theme/components/radio.ts |
import { Box } from '../../primitives'; | <mask> import React from 'react';
<mask> import { Platform } from 'react-native';
<mask> import { Box, Text } from '../../primitives';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IKbdProps } from './types';
<mask>
<mask> const Kbd = ({ children, ...props }: IKbdProps, ref?: any) => {
<mask> let { _text, ...newProps } = useThemeProps('Kbd', props);
</s> fix: updated code and kbd </s> remove let { _text, ...newProps } = useThemeProps('Kbd', props);
</s> add const newProps = useThemeProps('Kbd', props); </s> remove <Text
{..._text}
fontFamily={
_text?.fontFamily
? _text?.fontFamily
: Platform.OS === 'ios'
? 'Courier'
: 'monospace'
}
>
{children}
</Text>
</s> add {children} </s> remove bg: mode('gray.200', 'gray.700')(props),
borderColor: mode('gray.300', 'gray.600')(props),
</s> add bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), | [
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/components/composites/KBD/index.tsx |
const newProps = useThemeProps('Kbd', props); | <mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IKbdProps } from './types';
<mask>
<mask> const Kbd = ({ children, ...props }: IKbdProps, ref?: any) => {
<mask> let { _text, ...newProps } = useThemeProps('Kbd', props);
<mask> return (
<mask> <Box {...newProps} ref={ref}>
<mask> <Text
<mask> {..._text}
<mask> fontFamily={
</s> fix: updated code and kbd </s> remove <Text
{..._text}
fontFamily={
_text?.fontFamily
? _text?.fontFamily
: Platform.OS === 'ios'
? 'Courier'
: 'monospace'
}
>
{children}
</Text>
</s> add {children} </s> remove import { Platform } from 'react-native';
import { Box, Text } from '../../primitives';
</s> add import { Box } from '../../primitives'; </s> remove bg: mode('gray.200', 'gray.700')(props),
borderColor: mode('gray.300', 'gray.600')(props),
</s> add bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/components/composites/KBD/index.tsx |
{children} | <mask> const Kbd = ({ children, ...props }: IKbdProps, ref?: any) => {
<mask> let { _text, ...newProps } = useThemeProps('Kbd', props);
<mask> return (
<mask> <Box {...newProps} ref={ref}>
<mask> <Text
<mask> {..._text}
<mask> fontFamily={
<mask> _text?.fontFamily
<mask> ? _text?.fontFamily
<mask> : Platform.OS === 'ios'
<mask> ? 'Courier'
<mask> : 'monospace'
<mask> }
<mask> >
<mask> {children}
<mask> </Text>
<mask> </Box>
<mask> );
<mask> };
<mask>
<mask> export default React.memo(React.forwardRef(Kbd));
</s> fix: updated code and kbd </s> remove let { _text, ...newProps } = useThemeProps('Kbd', props);
</s> add const newProps = useThemeProps('Kbd', props); </s> remove import { Platform } from 'react-native';
import { Box, Text } from '../../primitives';
</s> add import { Box } from '../../primitives'; </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', | [
"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/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/components/composites/KBD/index.tsx |
colorScheme: 'muted', | <mask> };
<mask>
<mask> const defaultProps = {
<mask> variant: 'subtle',
<mask> colorScheme: 'primary',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> variants,
</s> fix: updated code and kbd </s> remove colorScheme: 'primary',
</s> add </s> remove const defaultProps = {
shadow: 1,
};
</s> add const defaultProps = {}; </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove <Text
{..._text}
fontFamily={
_text?.fontFamily
? _text?.fontFamily
: Platform.OS === 'ios'
? 'Courier'
: 'monospace'
}
>
{children}
</Text>
</s> add {children} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/badge.ts |
import { Platform } from 'react-native'; | <mask> import Badge from './badge';
<mask>
<mask> const { variants, defaultProps } = Badge;
<mask>
<mask> const baseStyle = {
<mask> _text: {
</s> fix: updated code and kbd </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove import { Platform } from 'react-native';
import { Box, Text } from '../../primitives';
</s> add import { Box } from '../../primitives'; </s> remove let { _text, ...newProps } = useThemeProps('Kbd', props);
</s> add const newProps = useThemeProps('Kbd', props); </s> remove const defaultProps = {
shadow: 1,
};
</s> add const defaultProps = {}; </s> remove colorScheme: 'primary',
</s> add colorScheme: 'muted', | [
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/code.ts |
fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', | <mask> const { variants, defaultProps } = Badge;
<mask>
<mask> const baseStyle = {
<mask> _text: {
<mask> fontFamily: 'mono',
<mask> fontSize: 'sm',
<mask> },
<mask> borderRadius: 'sm',
<mask> px: 2,
<mask> py: 1,
</s> fix: updated code and kbd </s> remove colorScheme: 'primary',
</s> add </s> remove const defaultProps = {
shadow: 1,
};
</s> add const defaultProps = {}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/code.ts |
<mask> },
<mask> borderRadius: 'sm',
<mask> px: 2,
<mask> py: 1,
<mask> colorScheme: 'primary',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> variants,
</s> fix: updated code and kbd </s> remove colorScheme: 'primary',
</s> add colorScheme: 'muted', </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove const defaultProps = {
shadow: 1,
};
</s> add const defaultProps = {}; </s> remove bg: mode('gray.200', 'gray.700')(props),
borderColor: mode('gray.300', 'gray.600')(props),
</s> add bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/code.ts |
|
import { Platform } from 'react-native'; | <mask> import { mode } from '../tools';
<mask>
<mask> function baseStyle(props: Record<string, any>) {
<mask> return {
<mask> bg: mode('muted.200', 'muted.700')(props),
<mask> borderColor: mode('muted.300', 'muted.600')(props),
</s> fix: updated code and kbd </s> remove bg: mode('gray.200', 'gray.700')(props),
borderColor: mode('gray.300', 'gray.600')(props),
</s> add bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), </s> remove import { Platform } from 'react-native';
import { Box, Text } from '../../primitives';
</s> add import { Box } from '../../primitives'; </s> remove let { _text, ...newProps } = useThemeProps('Kbd', props);
</s> add const newProps = useThemeProps('Kbd', props); | [
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/kbd.ts |
bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), | <mask> import { mode } from '../tools';
<mask>
<mask> function baseStyle(props: Record<string, any>) {
<mask> return {
<mask> bg: mode('gray.200', 'gray.700')(props),
<mask> borderColor: mode('gray.300', 'gray.600')(props),
<mask> borderWidth: 2,
<mask> borderBottomWidth: 4,
<mask> borderRadius: 'md',
<mask> px: 2,
<mask> _text: {
</s> fix: updated code and kbd </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove colorScheme: 'primary',
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/kbd.ts |
shadow: 1, | <mask> borderColor: mode('muted.300', 'muted.600')(props),
<mask> borderWidth: 2,
<mask> borderBottomWidth: 4,
<mask> borderRadius: 'md',
<mask> px: 2,
<mask> _text: {
<mask> fontSize: 'sm',
<mask> fontWeight: 'bold',
<mask> fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace',
</s> fix: updated code and kbd </s> remove bg: mode('gray.200', 'gray.700')(props),
borderColor: mode('gray.300', 'gray.600')(props),
</s> add bg: mode('muted.200', 'muted.700')(props),
borderColor: mode('muted.300', 'muted.600')(props), </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove colorScheme: 'primary',
</s> add </s> remove <Text
{..._text}
fontFamily={
_text?.fontFamily
? _text?.fontFamily
: Platform.OS === 'ios'
? 'Courier'
: 'monospace'
}
>
{children}
</Text>
</s> add {children} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/kbd.ts |
fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', | <mask> fontSize: 'sm',
<mask> fontWeight: 'bold',
<mask> },
<mask> };
<mask> }
<mask>
<mask> const defaultProps = {};
</s> fix: updated code and kbd </s> remove const defaultProps = {
shadow: 1,
};
</s> add const defaultProps = {}; </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove colorScheme: 'primary',
</s> add | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/kbd.ts |
const defaultProps = {}; | <mask> },
<mask> };
<mask> }
<mask>
<mask> const defaultProps = {
<mask> shadow: 1,
<mask> };
<mask> export default {
<mask> baseStyle,
<mask> defaultProps,
<mask> };
</s> fix: updated code and kbd </s> remove colorScheme: 'primary',
</s> add </s> remove colorScheme: 'primary',
</s> add colorScheme: 'muted', </s> remove fontFamily: 'mono',
</s> add fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', </s> remove <Text
{..._text}
fontFamily={
_text?.fontFamily
? _text?.fontFamily
: Platform.OS === 'ios'
? 'Courier'
: 'monospace'
}
>
{children}
</Text>
</s> add {children} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2283b523261628e088e376a2dd2a2dd8f184c60 | src/theme/components/kbd.ts |
export * from './components/composites/Typeahead'; | <mask> export * from './components/primitives/Text';
<mask> export * from './components/primitives/TextArea';
<mask> export * from './components/composites/Toast';
<mask> export * from './components/composites/Transitions';
<mask> export * from './hooks/useBreakpointValue';
<mask> export * from './hooks/useClipboard';
<mask> export * from './hooks/useDisclose';
<mask> export * from './hooks/useMediaQuery';
</s> feat: useTypeahead hook and Typeahead component | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2833119ea48511ab450342f6f5be4507638178e | example/storybook/stories/index.ts |
export * from './hooks/useTypeahead'; | <mask> export * from './hooks/useBreakpointValue';
<mask> export * from './hooks/useClipboard';
<mask> export * from './hooks/useDisclose';
<mask> export * from './hooks/useMediaQuery';
<mask> export * from './components/primitives/VStack';
<mask> export * from './components/composites/Wrap';
<mask> export * from './components/primitives/ZStack';
<mask> export * from './components/composites/SimpleGrid';
</s> feat: useTypeahead hook and Typeahead component | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2833119ea48511ab450342f6f5be4507638178e | example/storybook/stories/index.ts |
export { default as Typeahead } from './Typeahead'; | <mask>
<mask> export { Snackbar, useSnackbar } from './Snackbar';
<mask> export type { ISnackbarProps, IuseSnackbarProps } from './Snackbar';
<mask> export { AppBar } from './AppBar';
</s> feat: useTypeahead hook and Typeahead component | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/b2833119ea48511ab450342f6f5be4507638178e | src/components/composites/index.ts |
Typeahead, | <mask> ISnackbarProps,
<mask> IuseSnackbarProps,
<mask> } from './components/composites';
<mask>
<mask> import {
<mask> View,
</s> feat: useTypeahead hook and Typeahead component | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2833119ea48511ab450342f6f5be4507638178e | src/index.tsx |
Typeahead, | <mask> Snackbar,
<mask> useSnackbar,
<mask> };
<mask> export type {
<mask> IAlertProps,
<mask> IAspectRatioProps,
</s> feat: useTypeahead hook and Typeahead component | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2833119ea48511ab450342f6f5be4507638178e | src/index.tsx |
<mask> FormLabel,
<mask> FormErrorMessage,
<mask> RadioGroup,
<mask> Radio,
<mask> CheckboxGroup,
<mask> Checkbox,
<mask> Text,
<mask> Icon,
<mask> } from 'native-base';
<mask> import React from 'react';
</s> fix: made checkbox composite component, added types and updated examples </s> remove CheckboxGroup,
</s> add </s> remove CheckboxGroup,
</s> add </s> remove CheckboxGroup,
</s> add </s> remove import {
Checkbox,
CheckboxGroup,
Heading,
HStack,
Text,
View,
} from 'native-base';
</s> add import { Checkbox, Heading, HStack, Text, View } from 'native-base'; </s> remove import { Checkbox, CheckboxGroup, Text } from 'native-base';
</s> add import { Checkbox, Text } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/b2da2da8d3d48dfb9686f3ec3652fb268f1e6ef5 | example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.