docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
status: 'primary',
<mask> }; <mask> <mask> export const Alert = { <mask> defaultProps: { <mask> status: 'default', <mask> variant: 'subtle', <mask> p: 4, <mask> borderRadius: 'lg', <mask> }, <mask> variants, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/alert.ts
const defaultProps = { colorScheme: 'primary', };
<mask> bg: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), <mask> px: 2, <mask> }; <mask> }; <mask> const defaultProps = {}; <mask> <mask> export default { <mask> baseStyle, <mask> defaultProps, <mask> }; </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/app-bar.ts
colorScheme: 'primary',
<mask> }; <mask> <mask> const defaultProps = { <mask> variant: 'subtle', <mask> colorScheme: 'gray', <mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> variants, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove status: 'default', </s> add status: 'primary', </s> remove const defaultProps = {}; </s> add const defaultProps = { colorScheme: 'primary', };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/badge.ts
colorScheme: 'primary',
<mask> <mask> const defaultProps = { <mask> variant: 'solid', <mask> size: 'md', <mask> colorScheme: 'gray', <mask> _text: { <mask> fontWeight: 'semibold', <mask> }, <mask> }; <mask> </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/button.ts
colorScheme: 'primary',
<mask> <mask> const defaultProps = { <mask> defaultIsChecked: false, <mask> size: 'md', <mask> colorScheme: 'default', <mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> sizes, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', size: 'md', rounded: 50, </s> add colorScheme: 'primary', size: 'sm', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/checkbox.ts
colorScheme: 'primary',
<mask> borderRadius: 'sm', <mask> px: 2, <mask> py: 1, <mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> variants, <mask> defaultProps, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove const defaultProps = {}; </s> add const defaultProps = { colorScheme: 'primary', }; </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove status: 'default', </s> add status: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary',
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/code.ts
hoverBorderColor: 'primary.500', focusBorderColor: mode('primary.600', 'primary.400')(props),
<mask> }, <mask> borderColor: isInvalid <mask> ? mode('danger.600', 'danger.200')(props) <mask> : mode('gray.300', 'gray.600')(props), <mask> hoverBorderColor: 'default.500', <mask> focusBorderColor: mode('default.600', 'default.400')(props), <mask> errorBorderColor: mode('danger.600', 'danger.200')(props), <mask> }; <mask> }; <mask> <mask> function roundedStyle() { </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props), </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove borderTopColor={colorProp ? colorProp : 'blue.700'} borderRightColor={colorProp ? colorProp : 'blue.700'} </s> add borderTopColor={colorProp ? colorProp : 'primary.700'} borderRightColor={colorProp ? colorProp : 'primary.700'}
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/input.ts
bg: mode('primary.600', 'primary.200')(props),
<mask> <mask> //Steppers <mask> const stepperbaseStyle = (props: Record<string, any>) => { <mask> return { <mask> bg: mode('default.600', 'default.200')(props), <mask> iconColor: mode('gray.50', 'gray.800')(props), <mask> _active: {}, <mask> _disabled: { <mask> // iconColor: mode('gray.50', 'gray.300')(props), <mask> // bg: mode('blackAlpha.200', 'whiteAlpha.300')(props), </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove backgroundColor: mode('default.300', 'default.700')(props), </s> add backgroundColor: mode('primary.300', 'primary.700')(props), </s> remove bg: mode('blueGray.200', 'blueGray.600')(props), </s> add bg: mode(`${colorScheme}.200`, `${colorScheme}.700`)(props), </s> remove bg: 'default.600', </s> add bg: 'primary.600', </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/number-input.ts
colorScheme: 'primary', size: 'sm',
<mask> import { mode, getColorScheme } from '../tools'; <mask> <mask> const defaultProps = { <mask> colorScheme: 'default', <mask> size: 'md', <mask> rounded: 50, <mask> }; <mask> <mask> function baseStyle(props: Record<string, any>) { <mask> const colorScheme = getColorScheme(props); <mask> return { </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove bg: mode('blueGray.200', 'blueGray.600')(props), </s> add bg: mode(`${colorScheme}.200`, `${colorScheme}.700`)(props), </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove return <Code colorScheme="success">Hello World!</Code>; </s> add return <Code>Hello World!</Code>;
[ "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/progress.ts
bg: mode(`${colorScheme}.200`, `${colorScheme}.700`)(props),
<mask> function baseStyle(props: Record<string, any>) { <mask> const colorScheme = getColorScheme(props); <mask> return { <mask> innerBg: mode(`${colorScheme}.700`, `${colorScheme}.500`)(props), <mask> bg: mode('blueGray.200', 'blueGray.600')(props), <mask> }; <mask> } <mask> <mask> const sizes = { <mask> 'xs': { </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'default', size: 'md', rounded: 50, </s> add colorScheme: 'primary', size: 'sm', </s> remove bg: mode('default.600', 'default.200')(props), </s> add bg: mode('primary.600', 'primary.200')(props), </s> remove backgroundColor: mode('default.300', 'default.700')(props), </s> add backgroundColor: mode('primary.300', 'primary.700')(props), </s> remove const defaultProps = {}; </s> add const defaultProps = { colorScheme: 'primary', }; </s> remove return <Code colorScheme="success">Hello World!</Code>; </s> add return <Code>Hello World!</Code>;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/progress.ts
colorScheme: 'primary',
<mask> <mask> const defaultProps = { <mask> defaultIsChecked: false, <mask> size: 'md', <mask> colorScheme: 'default', <mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> sizes, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/radio.ts
borderColor: 'primary.500',
<mask> _isInvalid: { <mask> borderColor: mode('danger.600', 'danger.200')(props), <mask> }, <mask> _hover: { <mask> borderColor: 'default.500', <mask> }, <mask> }; <mask> }; <mask> <mask> // native </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove hoverBorderColor: 'default.500', focusBorderColor: mode('default.600', 'default.400')(props), </s> add hoverBorderColor: 'primary.500', focusBorderColor: mode('primary.600', 'primary.400')(props), </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props), </s> remove bg: 'default.600', </s> add bg: 'primary.600',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/select.ts
borderColor: 'primary.500',
<mask> _ios: {}, <mask> _web: { <mask> bg: 'transparent', <mask> borderRadius: 'md', <mask> borderColor: 'default.500', <mask> p: 3, <mask> }, <mask> _hover: { <mask> borderColor: 'default.500', <mask> }, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props), </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove hoverBorderColor: 'default.500', focusBorderColor: mode('default.600', 'default.400')(props), </s> add hoverBorderColor: 'primary.500', focusBorderColor: mode('primary.600', 'primary.400')(props), </s> remove bg: 'default.600', </s> add bg: 'primary.600',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/select.ts
borderColor: 'primary.500',
<mask> borderColor: 'default.500', <mask> p: 3, <mask> }, <mask> _hover: { <mask> borderColor: 'default.500', <mask> }, <mask> }; <mask> }; <mask> <mask> const variants = { </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props), </s> remove hoverBorderColor: 'default.500', focusBorderColor: mode('default.600', 'default.400')(props), </s> add hoverBorderColor: 'primary.500', focusBorderColor: mode('primary.600', 'primary.400')(props), </s> remove status: 'default', </s> add status: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/select.ts
colorScheme: 'primary',
<mask> sm: { thumbSize: 6, sliderSize: 6 }, <mask> }; <mask> <mask> const defaultProps = { <mask> colorScheme: 'default', <mask> size: 'md', <mask> min: 0, <mask> max: 100, <mask> step: 1, <mask> }; </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', size: 'md', rounded: 50, </s> add colorScheme: 'primary', size: 'sm',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/slider.ts
color: 'primary.200',
<mask> export default { <mask> baseStyle: { <mask> color: 'default.200', <mask> }, <mask> sizes: { <mask> sm: 'small', <mask> lg: 'large', <mask> }, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove bg: 'default.600', </s> add bg: 'primary.600', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props), </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove backgroundColor: mode('default.300', 'default.700')(props), </s> add backgroundColor: mode('primary.300', 'primary.700')(props), </s> remove borderColor: 'default.500', </s> add borderColor: 'primary.500',
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/spinner.ts
onTrackColor: onTrackColor ?? mode('primary.300', 'primary.700')(props),
<mask> let { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props; <mask> <mask> return { <mask> offTrackColor: offTrackColor ?? mode('gray.100', 'gray.900')(props), <mask> onTrackColor: onTrackColor ?? mode('green.300', 'green.700')(props), <mask> onThumbColor: onThumbColor ?? mode('white', 'black')(props), <mask> offThumbColor: offThumbColor ?? mode('white', 'black')(props), <mask> }; <mask> }; <mask> </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove backgroundColor: mode('default.300', 'default.700')(props), </s> add backgroundColor: mode('primary.300', 'primary.700')(props), </s> remove bg: mode('blueGray.200', 'blueGray.600')(props), </s> add bg: mode(`${colorScheme}.200`, `${colorScheme}.700`)(props), </s> remove colorScheme: 'default', size: 'md', rounded: 50, </s> add colorScheme: 'primary', size: 'sm', </s> remove const defaultProps = {}; </s> add const defaultProps = { colorScheme: 'primary', }; </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/switch.ts
colorScheme: 'primary',
<mask> <mask> const defaultProps = { <mask> size: 'md', <mask> variant: 'line', <mask> colorScheme: 'default', <mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> variants, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/tabs.ts
colorScheme: 'primary',
<mask> <mask> const defaultProps = { <mask> size: 'md', <mask> variant: 'subtle', <mask> colorScheme: 'gray', <mask> }; <mask> <mask> export default { <mask> variants, <mask> baseStyle, </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'gray', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary', </s> remove colorScheme: 'default', </s> add colorScheme: 'primary',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/tag.ts
backgroundColor: mode('primary.300', 'primary.700')(props),
<mask> const typeaheadSearchItemBaseStyle = (props: Record<string, any>) => { <mask> return { <mask> backgroundColor: mode('gray.100', 'gray.600')(props), <mask> _focus: { <mask> backgroundColor: mode('default.300', 'default.700')(props), <mask> }, <mask> _disabled: { <mask> backgroundColor: 'gray.200', <mask> }, <mask> }; </s> feat: primary colorscheme and update component themes to use primary as default colorscheme </s> remove bg: mode('default.600', 'default.200')(props), </s> add bg: mode('primary.600', 'primary.200')(props), </s> remove bg: 'default.600', </s> add bg: 'primary.600', </s> remove bg: mode('blueGray.200', 'blueGray.600')(props), </s> add bg: mode(`${colorScheme}.200`, `${colorScheme}.700`)(props), </s> remove colorScheme: 'default', size: 'md', rounded: 50, </s> add colorScheme: 'primary', size: 'sm', </s> remove bg: mode('default.200', 'default.300')(props), </s> add bg: mode('primary.200', 'primary.300')(props),
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/79f4cb2f53dfdcb9160633860b47692492119bde
src/theme/components/typeahead.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import hash from '../useResponsiveQuery/hash'; <mask> import prefixStyles from '../react-native-web-fucntions/prefixStyles'; <mask> import normalizeValueWithProperty from './normalizeValueWithProperty'; <mask> import createReactDOMStyle from '../react-native-web-fucntions/createReactDOMStyle'; </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/atomic.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import normalizeValueWithProperty from './normalizeValueWithProperty'; <mask> <mask> type Style = { [key: string]: any }; <mask> const canUseDOM: boolean = !!( </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/createReactDOMStyle.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> const uppercasePattern = /[A-Z]/g; <mask> const msPattern = /^ms-/; <mask> const cache: any = {}; <mask> </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/hyphenateStyleName.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import ConvertNumberIntoHex from 'normalize-css-color'; <mask> <mask> const processColor = (color?: any): any => { <mask> if (color === undefined || color === null) { </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/normalizeColor.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import unitlessNumbers from './unitlessNumbers'; <mask> import normalizeColor from './normalizeColor'; <mask> <mask> const colorProps: any = { </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/normalizeValueWithProperty.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import createPrefixer from 'inline-style-prefixer/lib/createPrefixer'; <mask> import staticData from './staticData'; <mask> <mask> type StyleModifier = (style: Object) => Object; </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/prefixStyles.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import normalizeColor from './normalizeColor'; <mask> import normalizeValueWithProperty from './normalizeValueWithProperty'; <mask> <mask> const emptyObject = {}; </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/preprocess.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> import backgroundClip from 'inline-style-prefixer/lib/plugins/backgroundClip'; <mask> import crossFade from 'inline-style-prefixer/lib/plugins/crossFade'; <mask> import cursor from 'inline-style-prefixer/lib/plugins/cursor'; <mask> import filter from 'inline-style-prefixer/lib/plugins/filter'; <mask> import imageSet from 'inline-style-prefixer/lib/plugins/imageSet'; </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/staticData.ts
// This functions is taken from react native web
<mask> /* eslint-disable */ <mask> //@ts-nocheck <mask> // This hash function is taken from react native web <mask> <mask> const unitlessNumbers: any = { <mask> animationIterationCount: true, <mask> aspectRatio: true, <mask> borderImageOutset: true, </s> fix: comments on rnw function </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web </s> remove // This hash function is taken from react native web </s> add // This functions is taken from react native web
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ab05418c131ade1d3f5ee42102c771793e92c7f
src/utils/react-native-web-fucntions/unitlessNumbers.ts
import { useColorMode } from './../../../core';
<mask> import Input from '../../primitives/Input'; <mask> import Button from '../../primitives/Button'; <mask> import Link from '../../primitives/Link'; <mask> import Text from '../../primitives/Text'; <mask> import { useColorMode } from './../../..'; <mask> import { useTypeahead } from './useTypeahead'; <mask> import { extractInObject } from '../../../theme/tools'; <mask> import { ITypeaheadProps, layoutPropsList } from './types'; <mask> const Typeahead = ( <mask> { </s> Fixes for cyclic dependencies in useContrastText </s> remove import { useToken } from './../../hooks/useToken'; </s> add </s> remove import { mode } from '../tools'; </s> add import { mode } from '../tools/colors'; </s> remove useContrastText, } from './../../theme/tools/'; </s> add } from './../../theme/tools'; import { useContrastText } from './../../theme/hooks'; </s> remove export function useContrastText(bg: string, color?: string) { let [ contrastThreshold, trueDarkText, trueLightText, trueBg, trueColor, ] = useToken('colors', [ 'contrastThreshold', 'darkText', 'lightText', bg, color ?? '', ]); if (typeof trueBg !== 'string') { trueBg = bg; } const trueContrastColor = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? trueDarkText : trueLightText; const contrastColorToken = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? 'darkText' : 'lightText'; if (process.env.NODE_ENV !== 'production') { const contrast = getContrastRatio( trueBg, trueColor ? trueColor : trueContrastColor ); if (contrast < 3) { console.warn( [ `NativeBase: The contrast ratio of ${contrast}:1 for ${ color ? color : contrastColorToken } on ${bg}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast', ].join('\n') ); } } return contrastColorToken; } function getContrastRatio(foreground: string, background: string) { const lumA = Color(foreground).getLuminance(); const lumB = Color(background).getLuminance(); return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ad2e4797057bfa67495c9ff72038075e70856fb
src/components/composites/Typeahead/index.tsx
} from './../../theme/tools'; import { useContrastText } from './../../theme/hooks';
<mask> getClosestBreakpoint, <mask> findLastValidBreakpoint, <mask> hasValidBreakpointFormat, <mask> extractInObject, <mask> useContrastText, <mask> } from './../../theme/tools/'; <mask> <mask> /* <mask> Extract props from theme props and omit those from props <mask> */ <mask> function extractProps( </s> Fixes for cyclic dependencies in useContrastText </s> remove import { useToken } from './../../hooks/useToken'; </s> add </s> remove import { useColorMode } from './../../..'; </s> add import { useColorMode } from './../../../core'; </s> remove import { mode } from '../tools'; </s> add import { mode } from '../tools/colors'; </s> remove export function useContrastText(bg: string, color?: string) { let [ contrastThreshold, trueDarkText, trueLightText, trueBg, trueColor, ] = useToken('colors', [ 'contrastThreshold', 'darkText', 'lightText', bg, color ?? '', ]); if (typeof trueBg !== 'string') { trueBg = bg; } const trueContrastColor = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? trueDarkText : trueLightText; const contrastColorToken = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? 'darkText' : 'lightText'; if (process.env.NODE_ENV !== 'production') { const contrast = getContrastRatio( trueBg, trueColor ? trueColor : trueContrastColor ); if (contrast < 3) { console.warn( [ `NativeBase: The contrast ratio of ${contrast}:1 for ${ color ? color : contrastColorToken } on ${bg}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast', ].join('\n') ); } } return contrastColorToken; } function getContrastRatio(foreground: string, background: string) { const lumA = Color(foreground).getLuminance(); const lumB = Color(background).getLuminance(); return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); } </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ad2e4797057bfa67495c9ff72038075e70856fb
src/hooks/useThemeProps/utils.ts
import { mode } from '../tools/colors';
<mask> import { mode } from '../tools'; <mask> <mask> // Accordion <mask> const accordionBaseStyle = (props: Record<string, any>) => { <mask> return { <mask> borderWidth: 1, </s> Fixes for cyclic dependencies in useContrastText </s> remove import { useToken } from './../../hooks/useToken'; </s> add </s> remove import { useColorMode } from './../../..'; </s> add import { useColorMode } from './../../../core'; </s> remove export function useContrastText(bg: string, color?: string) { let [ contrastThreshold, trueDarkText, trueLightText, trueBg, trueColor, ] = useToken('colors', [ 'contrastThreshold', 'darkText', 'lightText', bg, color ?? '', ]); if (typeof trueBg !== 'string') { trueBg = bg; } const trueContrastColor = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? trueDarkText : trueLightText; const contrastColorToken = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? 'darkText' : 'lightText'; if (process.env.NODE_ENV !== 'production') { const contrast = getContrastRatio( trueBg, trueColor ? trueColor : trueContrastColor ); if (contrast < 3) { console.warn( [ `NativeBase: The contrast ratio of ${contrast}:1 for ${ color ? color : contrastColorToken } on ${bg}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast', ].join('\n') ); } } return contrastColorToken; } function getContrastRatio(foreground: string, background: string) { const lumA = Color(foreground).getLuminance(); const lumB = Color(background).getLuminance(); return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); } </s> add </s> remove useContrastText, } from './../../theme/tools/'; </s> add } from './../../theme/tools'; import { useContrastText } from './../../theme/hooks';
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ad2e4797057bfa67495c9ff72038075e70856fb
src/theme/components/accordion.ts
<mask> import get from 'lodash/get'; <mask> import isEmpty from 'lodash/isEmpty'; <mask> import Color from 'tinycolor2'; <mask> import type { Dict } from './utils'; <mask> import { useToken } from './../../hooks/useToken'; <mask> <mask> export function mode(light: any, dark: any) { <mask> return (props: any) => (props.colorMode === 'dark' ? dark : light); <mask> } <mask> </s> Fixes for cyclic dependencies in useContrastText </s> remove import { mode } from '../tools'; </s> add import { mode } from '../tools/colors'; </s> remove import { useColorMode } from './../../..'; </s> add import { useColorMode } from './../../../core'; </s> remove useContrastText, } from './../../theme/tools/'; </s> add } from './../../theme/tools'; import { useContrastText } from './../../theme/hooks'; </s> remove export function useContrastText(bg: string, color?: string) { let [ contrastThreshold, trueDarkText, trueLightText, trueBg, trueColor, ] = useToken('colors', [ 'contrastThreshold', 'darkText', 'lightText', bg, color ?? '', ]); if (typeof trueBg !== 'string') { trueBg = bg; } const trueContrastColor = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? trueDarkText : trueLightText; const contrastColorToken = getContrastRatio(trueBg, trueDarkText) >= contrastThreshold ? 'darkText' : 'lightText'; if (process.env.NODE_ENV !== 'production') { const contrast = getContrastRatio( trueBg, trueColor ? trueColor : trueContrastColor ); if (contrast < 3) { console.warn( [ `NativeBase: The contrast ratio of ${contrast}:1 for ${ color ? color : contrastColorToken } on ${bg}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast', ].join('\n') ); } } return contrastColorToken; } function getContrastRatio(foreground: string, background: string) { const lumA = Color(foreground).getLuminance(); const lumB = Color(background).getLuminance(); return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ad2e4797057bfa67495c9ff72038075e70856fb
src/theme/tools/colors.ts
<mask> color += ('00' + value.toString(16)).substr(-2); <mask> } <mask> return color; <mask> } <mask> <mask> export function useContrastText(bg: string, color?: string) { <mask> let [ <mask> contrastThreshold, <mask> trueDarkText, <mask> trueLightText, <mask> trueBg, <mask> trueColor, <mask> ] = useToken('colors', [ <mask> 'contrastThreshold', <mask> 'darkText', <mask> 'lightText', <mask> bg, <mask> color ?? '', <mask> ]); <mask> <mask> if (typeof trueBg !== 'string') { <mask> trueBg = bg; <mask> } <mask> const trueContrastColor = <mask> getContrastRatio(trueBg, trueDarkText) >= contrastThreshold <mask> ? trueDarkText <mask> : trueLightText; <mask> <mask> const contrastColorToken = <mask> getContrastRatio(trueBg, trueDarkText) >= contrastThreshold <mask> ? 'darkText' <mask> : 'lightText'; <mask> <mask> if (process.env.NODE_ENV !== 'production') { <mask> const contrast = getContrastRatio( <mask> trueBg, <mask> trueColor ? trueColor : trueContrastColor <mask> ); <mask> if (contrast < 3) { <mask> console.warn( <mask> [ <mask> `NativeBase: The contrast ratio of ${contrast}:1 for ${ <mask> color ? color : contrastColorToken <mask> } on ${bg}`, <mask> 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', <mask> 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast', <mask> ].join('\n') <mask> ); <mask> } <mask> } <mask> <mask> return contrastColorToken; <mask> } <mask> <mask> function getContrastRatio(foreground: string, background: string) { <mask> const lumA = Color(foreground).getLuminance(); <mask> const lumB = Color(background).getLuminance(); <mask> return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); <mask> } </s> Fixes for cyclic dependencies in useContrastText </s> remove import { mode } from '../tools'; </s> add import { mode } from '../tools/colors'; </s> remove import { useToken } from './../../hooks/useToken'; </s> add </s> remove import { useColorMode } from './../../..'; </s> add import { useColorMode } from './../../../core'; </s> remove useContrastText, } from './../../theme/tools/'; </s> add } from './../../theme/tools'; import { useContrastText } from './../../theme/hooks';
[ "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" ]
https://github.com/GeekyAnts/NativeBase/commit/7ad2e4797057bfa67495c9ff72038075e70856fb
src/theme/tools/colors.ts
_disabled: { opacity: 0.7, },
<mask> bg: 'muted.700', <mask> }, <mask> }; <mask> }, <mask> }; <mask> <mask> export const SliderThumb = { </s> fix: disabled state opacity issue
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ba79f14eec52db23b3c6eaf290fb1013d17ab0d
src/theme/components/slider.ts
_disabled: { opacity: 0.7, },
<mask> _dark: { <mask> bg: 'primary.500', <mask> }, <mask> shadow: 6, <mask> }; <mask> }, <mask> }; <mask> </s> fix: disabled state opacity issue
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ba79f14eec52db23b3c6eaf290fb1013d17ab0d
src/theme/components/slider.ts
_disabled: { opacity: 0.7, },
<mask> _dark: { <mask> bg: 'primary.500', <mask> }, <mask> }; <mask> }, <mask> }; <mask> <mask> const sizes = { <mask> lg: { thumbSize: 6, sliderSize: 6 }, </s> fix: disabled state opacity issue
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7ba79f14eec52db23b3c6eaf290fb1013d17ab0d
src/theme/components/slider.ts
import { TouchableOpacity, View, Platform, Image } from 'react-native';
<mask> /* @flow */ <mask> <mask> import React from 'react'; <mask> import { TouchableOpacity, 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 computeProps from '../../Utils/computeProps'; <mask> </s> CardItem and List fix for /backward </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base'; </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light';
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; }
<mask> import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> class CardItem extends NativeBaseComponent { <mask> <mask> <mask> getRightStyle() { <mask> return { <mask> right: { <mask> flex: 1, <mask> paddingLeft: 10, </s> CardItem and List fix for /backward </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base'; </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
if (child && child.type === Image) {
<mask> <mask> imagePresent() { <mask> let imagePresent = false; <mask> React.Children.forEach(this.props.children, (child) => { <mask> if (child && child.type.displayName === 'Image') { <mask> imagePresent = true; <mask> } <mask> }); <mask> <mask> return imagePresent; </s> CardItem and List fix for /backward </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') { </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
let defaultProps = {}; if(child.type === Image) defaultProps = { style: this.getInitialStyle().fullImage };
<mask> return squareThumbs; <mask> } <mask> <mask> getChildProps(child) { <mask> const defaultProps = {}; <mask> return computeProps(child.props, defaultProps); <mask> } <mask> <mask> <mask> renderChildren() { </s> CardItem and List fix for /backward </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove newChildren.push(<Text key="label" style={this.props.textStyle}>{this.props.children}</Text>); </s> add newChildren.push(<Text key="label" style={[{ paddingHorizontal: 3,color: variables.badgeColor, fontSize: variables.fontSizeBase, lineHeight: variables.lineHeight - 1},this.props.textStyle]}>{this.props.children}</Text>); </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
<View key="cardItem1" style={{ justifyContent: 'flex-start' }}>
<mask> } else { <mask> newChildren = []; <mask> if (!Array.isArray(this.props.children)) { <mask> newChildren.push( <mask> <View key="cardItem" style={{ justifyContent: 'flex-start' }}> <mask> {React.cloneElement(childrenArray)} <mask> </View> <mask> ); <mask> } else { <mask> newChildren.push( </s> CardItem and List fix for /backward </s> remove <View key="cardItem" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> add <View key="cardItem1" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> remove newChildren.push(<Text key="label" style={this.props.textStyle}>{this.props.children}</Text>); </s> add newChildren.push(<Text key="label" style={[{ paddingHorizontal: 3,color: variables.badgeColor, fontSize: variables.fontSizeBase, lineHeight: variables.lineHeight - 1},this.props.textStyle]}>{this.props.children}</Text>); </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
<View key="cardItem1" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}>
<mask> } else { <mask> newChildren.push( <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, { key: i }) <mask> )} <mask> </View> <mask> ); </s> CardItem and List fix for /backward </s> remove <View key="cardItem" style={{ justifyContent: 'flex-start' }}> </s> add <View key="cardItem1" style={{ justifyContent: 'flex-start' }}> </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(), </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add </s> remove return this.props.NBtheme ? this.props.NBtheme : this.context.NBtheme || lightTheme; </s> add return this.props.theme ? this.props.theme : this.context.theme || lightTheme; </s> remove ref={(c) => { this._root = c; }} {...this.props} </s> add ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
prepareRootProps() { let defaultProps = {}; defaultProps = { style: this.getInitialStyle().listItem }; return computeProps(this.props, defaultProps); }
<mask> <mask> return newChildren; <mask> } <mask> <mask> <mask> render() { <mask> return ( <mask> <TouchableOpacity <mask> ref={(c) => { this._root = c; }} {...this.prepareRootProps()} </s> CardItem and List fix for /backward </s> remove ref={(c) => { this._root = c; }} {...this.props} </s> add ref={(c) => { this._root = c; }} {...this.prepareRootProps()} </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent { </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add </s> remove newChildren.push(<Text key="label" style={this.props.textStyle}>{this.props.children}</Text>); </s> add newChildren.push(<Text key="label" style={[{ paddingHorizontal: 3,color: variables.badgeColor, fontSize: variables.fontSizeBase, lineHeight: variables.lineHeight - 1},this.props.textStyle]}>{this.props.children}</Text>);
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
ref={(c) => { this._root = c; }} {...this.prepareRootProps()}
<mask> <mask> render() { <mask> return ( <mask> <TouchableOpacity <mask> ref={(c) => { this._root = c; }} {...this.props} <mask> activeOpacity={(this.props.button) ? 0.2 : 1} <mask> > <mask> {this.renderChildren()} <mask> </TouchableOpacity> <mask> ); </s> CardItem and List fix for /backward </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent { </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add </s> remove <View key="cardItem" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> add <View key="cardItem1" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(),
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
CardItem1.propTypes = {
<mask> ); <mask> } <mask> } <mask> <mask> CardItem.propTypes = { <mask> ...TouchableOpacity.propTypes, <mask> style: React.PropTypes.object, <mask> header: React.PropTypes.bool, <mask> cardBody: React.PropTypes.bool, <mask> footer: React.PropTypes.bool, </s> CardItem and List fix for /backward </s> remove const StyledCardItem = connectStyle('NativeBase.CardItem', {}, mapPropsToStyleNames)(CardItem); </s> add const StyledCardItem1 = connectStyle('NativeBase.CardItem1', {}, mapPropsToStyleNames)(CardItem1); </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove const defaultProps = {}; </s> add let defaultProps = {}; if(child.type === Image) defaultProps = { style: this.getInitialStyle().fullImage };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
const StyledCardItem1 = connectStyle('NativeBase.CardItem1', {}, mapPropsToStyleNames)(CardItem1);
<mask> footer: React.PropTypes.bool, <mask> button: React.PropTypes.bool, <mask> }; <mask> <mask> const StyledCardItem = connectStyle('NativeBase.CardItem', {}, mapPropsToStyleNames)(CardItem); <mask> <mask> export { <mask> StyledCardItem as CardItem, <mask> }; </s> CardItem and List fix for /backward </s> remove StyledCardItem as CardItem, </s> add StyledCardItem1 as CardItem1, </s> remove CardItem.propTypes = { </s> add CardItem1.propTypes = { </s> remove const defaultProps = {}; </s> add let defaultProps = {}; if(child.type === Image) defaultProps = { style: this.getInitialStyle().fullImage }; </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(),
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
StyledCardItem1 as CardItem1,
<mask> <mask> const StyledCardItem = connectStyle('NativeBase.CardItem', {}, mapPropsToStyleNames)(CardItem); <mask> <mask> export { <mask> StyledCardItem as CardItem, <mask> }; </s> CardItem and List fix for /backward </s> remove const StyledCardItem = connectStyle('NativeBase.CardItem', {}, mapPropsToStyleNames)(CardItem); </s> add const StyledCardItem1 = connectStyle('NativeBase.CardItem1', {}, mapPropsToStyleNames)(CardItem1); </s> remove const defaultProps = {}; </s> add let defaultProps = {}; if(child.type === Image) defaultProps = { style: this.getInitialStyle().fullImage }; </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light';
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/CardItem.js
import { Footer, Fab } from 'native-base';
<mask> <mask> import React from 'react'; <mask> import { View, Image, ScrollView } from 'react-native'; <mask> import { connectStyle } from '@shoutem/theme'; <mask> import { Content, Footer, Fab } from 'native-base'; <mask> import _ from 'lodash'; <mask> import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; <mask> import { ViewNB } from './View'; <mask> import { Header } from './Header'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; </s> CardItem and List fix for /backward </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native'; </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
import { Content } from './Content';
<mask> import _ from 'lodash'; <mask> import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; <mask> import { ViewNB } from './View'; <mask> import { Header } from './Header'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> class Container extends NativeBaseComponent { </s> CardItem and List fix for /backward </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base'; </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native'; </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content';
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) {
<mask> <mask> renderHeader() { <mask> if (Array.isArray(this.props.children)) { <mask> return _.find(this.props.children, (item) => { <mask> if (item && item.type === Header) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && this.props.children.type === Header) { <mask> return this.props.children; </s> CardItem and List fix for /backward </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) { </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' ||
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
} else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) {
<mask> if (item && item.type === Header) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && this.props.children.type === Header) { <mask> return this.props.children; <mask> } <mask> } <mask> renderContent() { <mask> if (Array.isArray(this.props.children)) { </s> CardItem and List fix for /backward </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) { </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' ||
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) {
<mask> } <mask> renderContent() { <mask> if (Array.isArray(this.props.children)) { <mask> return _.filter(this.props.children, (item) => { <mask> if (item && (item.type === ViewNB || item.type === <mask> Content || item.type === Image || item.type === View || <mask> item.type === ScrollView || item.type === Fab)) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && (this.props.children.type === Content || <mask> this.props.children.type === ViewNB || </s> CardItem and List fix for /backward </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' || </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
} else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' ||
<mask> item.type === ScrollView || item.type === Fab)) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && (this.props.children.type === Content || <mask> this.props.children.type === ViewNB || <mask> this.props.children.type === View || this.props.children.type === Image || <mask> this.props.children.type === ScrollView)) { <mask> return this.props.children; <mask> } <mask> } </s> CardItem and List fix for /backward </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
if (item && item.type.displayName === 'Styled(Footer)') {
<mask> } <mask> renderFooter() { <mask> if (Array.isArray(this.props.children)) { <mask> return _.find(this.props.children, (item) => { <mask> if (item && item.type === Footer) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && this.props.children.type === Footer) { <mask> return this.props.children; </s> CardItem and List fix for /backward </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) { </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' ||
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
} else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') {
<mask> if (item && item.type === Footer) { <mask> return true; <mask> } <mask> }); <mask> } else if (this.props.children && this.props.children.type === Footer) { <mask> return this.props.children; <mask> } <mask> } <mask> prepareRootProps() { <mask> const type = { </s> CardItem and List fix for /backward </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Header) { </s> add if (item && (item.type.displayName === 'Styled(Header)' || item.type.displayName === 'Styled(SHeader)')) { </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' || </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/Container.js
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> <mask> <mask> class ViewNB extends NativeBaseComponent { <mask> propTypes: { <mask> style : React.PropTypes.object, <mask> padder : React.PropTypes.bool <mask> } <mask> render() { <mask> return ( <mask> <View ref={c => this._root = c} {...this.props} /> <mask> ); <mask> } </s> CardItem and List fix for /backward </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent { </s> remove ref={(c) => { this._root = c; }} {...this.props} </s> add ref={(c) => { this._root = c; }} {...this.prepareRootProps()} </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/Widgets/View.js
import { Content } from './Widgets/Content';
<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'; <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 'native-base'; </s> CardItem and List fix for /backward </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List'; </s> remove import { CardItem } from './Widgets/CardItem'; </s> add import { CardItem1 as CardItem } from './Widgets/CardItem'; </s> remove import { View } from './Widgets/View'; </s> add import { ViewNB as View } from './Widgets/View'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/index.js
import { List } from './Widgets/List';
<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 'native-base'; <mask> import { ListItem } from './Widgets/ListItem'; <mask> import { CardItem } from './Widgets/CardItem'; <mask> import { DeckSwiper } from 'native-base'; <mask> import { H1 } from 'native-base'; <mask> import { H2 } from 'native-base'; </s> CardItem and List fix for /backward </s> remove import { CardItem } from './Widgets/CardItem'; </s> add import { CardItem1 as CardItem } from './Widgets/CardItem'; </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { View } from './Widgets/View'; </s> add import { ViewNB as View } from './Widgets/View'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/index.js
import { CardItem1 as CardItem } from './Widgets/CardItem';
<mask> import { Switch } from 'native-base'; <mask> import { Picker } from 'native-base'; <mask> import { List } from 'native-base'; <mask> import { ListItem } from './Widgets/ListItem'; <mask> import { CardItem } from './Widgets/CardItem'; <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> CardItem and List fix for /backward </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List'; </s> remove import { View } from './Widgets/View'; </s> add import { ViewNB as View } from './Widgets/View'; </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/index.js
import { ViewNB as View } from './Widgets/View';
<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'; <mask> import { Input } from 'native-base'; <mask> import { Textarea } from 'native-base'; <mask> import { InputGroup } from './Widgets/InputGroup'; <mask> import { Icon } from 'native-base'; <mask> import { IconNB } from 'native-base'; </s> CardItem and List fix for /backward </s> remove import { CardItem } from './Widgets/CardItem'; </s> add import { CardItem1 as CardItem } from './Widgets/CardItem'; </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List'; </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
backward/index.js
import { variables } from 'native-base';
<mask> import React, { Component } from 'react'; <mask> import { View, Text } from 'react-native'; <mask> <mask> import { connectStyle } from '@shoutem/theme'; <mask> import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; <mask> <mask> class Badge extends Component { <mask> <mask> <mask> renderChildren() { </s> CardItem and List fix for /backward </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native'; </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light'; </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent { </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Badge.js
newChildren.push(<Text key="label" style={[{ paddingHorizontal: 3,color: variables.badgeColor, fontSize: variables.fontSizeBase, lineHeight: variables.lineHeight - 1},this.props.textStyle]}>{this.props.children}</Text>);
<mask> if (typeof this.props.children !== 'string') { <mask> return this.props.children; <mask> } else { <mask> const newChildren = []; <mask> newChildren.push(<Text key="label" style={this.props.textStyle}>{this.props.children}</Text>); <mask> return newChildren; <mask> } <mask> } <mask> <mask> render() { </s> CardItem and List fix for /backward </s> remove <View key="cardItem" style={{ justifyContent: 'flex-start' }}> </s> add <View key="cardItem1" style={{ justifyContent: 'flex-start' }}> </s> remove } else if (this.props.children && this.props.children.type === Footer) { </s> add } else if (this.props.children && this.props.children.type.displayName === 'Styled(Footer)') { </s> remove } else if (this.props.children && this.props.children.type === Header) { </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Header)' || this.props.children.type.displayName === 'Styled(SHeader)')) { </s> remove if (item && item.type === Footer) { </s> add if (item && item.type.displayName === 'Styled(Footer)') {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Badge.js
import lightTheme from '../../backward/Themes/light';
<mask> /* @flow */ <mask> <mask> import React, { Component } from 'react'; <mask> import lightTheme from '../Themes/light'; <mask> <mask> export default class NativeBaseComponent extends Component { <mask> static contextTypes = { <mask> NBtheme: React.PropTypes.object, <mask> foregroundColor: React.PropTypes.string, </s> CardItem and List fix for /backward </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native';
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
theme: React.PropTypes.object,
<mask> import lightTheme from '../Themes/light'; <mask> <mask> export default class NativeBaseComponent extends Component { <mask> static contextTypes = { <mask> NBtheme: React.PropTypes.object, <mask> foregroundColor: React.PropTypes.string, <mask> } <mask> <mask> static propTypes = { <mask> NBtheme: React.PropTypes.object, </s> CardItem and List fix for /backward </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light'; </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
theme: React.PropTypes.object,
<mask> foregroundColor: React.PropTypes.string, <mask> } <mask> <mask> static propTypes = { <mask> NBtheme: React.PropTypes.object, <mask> foregroundColor: React.PropTypes.string, <mask> } <mask> <mask> static childContextTypes = { <mask> NBtheme: React.PropTypes.object, </s> CardItem and List fix for /backward </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light'; </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(), </s> remove CardItem.propTypes = { </s> add CardItem1.propTypes = {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
theme: React.PropTypes.object,
<mask> foregroundColor: React.PropTypes.string, <mask> } <mask> <mask> static childContextTypes = { <mask> NBtheme: React.PropTypes.object, <mask> foregroundColor: React.PropTypes.string, <mask> } <mask> <mask> getChildContext() { <mask> return { </s> CardItem and List fix for /backward </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove import lightTheme from '../Themes/light'; </s> add import lightTheme from '../../backward/Themes/light'; </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(), </s> remove CardItem.propTypes = { </s> add CardItem1.propTypes = {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
theme: this.props.theme ? this.props.theme : this.getTheme(),
<mask> } <mask> <mask> getChildContext() { <mask> return { <mask> NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), <mask> foregroundColor: this.props.foregroundColor ? <mask> this.props.foregroundColor : this.getTheme().textColor, <mask> }; <mask> } <mask> </s> CardItem and List fix for /backward </s> remove return this.props.NBtheme ? this.props.NBtheme : this.context.NBtheme || lightTheme; </s> add return this.props.theme ? this.props.theme : this.context.theme || lightTheme; </s> remove <View key="cardItem" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> add <View key="cardItem1" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object, </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove NBtheme: React.PropTypes.object, </s> add theme: React.PropTypes.object,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
return this.props.theme ? this.props.theme : this.context.theme || lightTheme;
<mask> return this.context.foregroundColor; <mask> } <mask> <mask> getTheme() { <mask> return this.props.NBtheme ? this.props.NBtheme : <mask> this.context.NBtheme || lightTheme; <mask> } <mask> } </s> CardItem and List fix for /backward </s> remove NBtheme: this.props.NBtheme ? this.props.NBtheme : this.getTheme(), </s> add theme: this.props.theme ? this.props.theme : this.getTheme(), </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove <View key="cardItem" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> add <View key="cardItem1" style={this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2}> </s> remove } else if (this.props.children && (this.props.children.type === Content || this.props.children.type === ViewNB || </s> add } else if (this.props.children && (this.props.children.type.displayName === 'Styled(Content)' || this.props.children.type.displayName === 'Styled(ViewNB)' || </s> remove if (item && (item.type === ViewNB || item.type === Content || item.type === Image || item.type === View || item.type === ScrollView || item.type === Fab)) { </s> add if (item && (item.type.displayName === 'Styled(ViewNB)' || item.type.displayName === 'Styled(Content)' || item.type === Image || item.type === View || item.type === ScrollView || item.type.displayName === 'Styled(Fab)')) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Base/NativeBaseComponent.js
import NativeBaseComponent from './Base/NativeBaseComponent';
<mask> import { TextInput } from 'react-native'; <mask> import { connectStyle } from '@shoutem/theme'; <mask> import variables from '../variables'; <mask> import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; <mask> <mask> class Input extends NativeBaseComponent { <mask> render() { <mask> return ( </s> CardItem and List fix for /backward </s> remove class Input extends Component { </s> add class Input extends NativeBaseComponent { </s> remove import { TouchableOpacity, View, Platform } from 'react-native'; </s> add import { TouchableOpacity, View, Platform, Image } from 'react-native'; </s> remove import { Content, Footer, Fab } from 'native-base'; </s> add import { Footer, Fab } from 'native-base';
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Input.js
class Input extends NativeBaseComponent {
<mask> import { connectStyle } from '@shoutem/theme'; <mask> import variables from '../variables'; <mask> import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; <mask> <mask> class Input extends Component { <mask> render() { <mask> return ( <mask> <TextInput ref={(c) => { this._textInput = c; this._root = c; }} {...this.props} placeholderTextColor={this.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder} underlineColorAndroid="rgba(0,0,0,0)" /> <mask> ); <mask> } </s> CardItem and List fix for /backward </s> remove ref={(c) => { this._root = c; }} {...this.props} </s> add ref={(c) => { this._root = c; }} {...this.prepareRootProps()} </s> remove propTypes: { style : React.PropTypes.object, padder : React.PropTypes.bool } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
basic/Input.js
"yargs": "6.5.0"
<mask> "_id": "[email protected]", <mask> "_inCache": true, <mask> "_location": "/native-base", <mask> "_phantomChildren": { <mask> "yargs": "4.8.1" <mask> }, <mask> "_requested": { <mask> "raw": "native-base@git+https://github.com/GeekyAnts/NativeBase.git#v2.0-alpha1", <mask> "scope": null, <mask> "escapedName": "native-base", </s> CardItem and List fix for /backward </s> remove "_where": "/Users/sahusoft/Sites/projects/Try", </s> add "_where": "/Users/sahusoft/Sites/projects/FlatApp", </s> remove "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#2efab5b090a21765f5f4e31a22cbc3f5f61cea61", "_shasum": "66ee6fdb8b4d9a3e1711495c8d4dba8536f3d54b", </s> add "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#23698414b8bcf823cf810f7faae3fec2096982ef", "_shasum": "f1a08924d2b0dcb3337939981daa93bbbd84f6b3", </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
package.json
"_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#23698414b8bcf823cf810f7faae3fec2096982ef", "_shasum": "f1a08924d2b0dcb3337939981daa93bbbd84f6b3",
<mask> }, <mask> "_requiredBy": [ <mask> "/" <mask> ], <mask> "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#2efab5b090a21765f5f4e31a22cbc3f5f61cea61", <mask> "_shasum": "66ee6fdb8b4d9a3e1711495c8d4dba8536f3d54b", <mask> "_shrinkwrap": null, <mask> "_spec": "native-base@git+https://github.com/GeekyAnts/NativeBase.git#v2.0-alpha1", <mask> "_where": "/Users/sahusoft/Sites/projects/Try", <mask> "bugs": { <mask> "url": "https://github.com/GeekyAnts/NativeBase/issues" </s> CardItem and List fix for /backward </s> remove "_where": "/Users/sahusoft/Sites/projects/Try", </s> add "_where": "/Users/sahusoft/Sites/projects/FlatApp", </s> remove "yargs": "4.8.1" </s> add "yargs": "6.5.0" </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List';
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
package.json
"_where": "/Users/sahusoft/Sites/projects/FlatApp",
<mask> "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#2efab5b090a21765f5f4e31a22cbc3f5f61cea61", <mask> "_shasum": "66ee6fdb8b4d9a3e1711495c8d4dba8536f3d54b", <mask> "_shrinkwrap": null, <mask> "_spec": "native-base@git+https://github.com/GeekyAnts/NativeBase.git#v2.0-alpha1", <mask> "_where": "/Users/sahusoft/Sites/projects/Try", <mask> "bugs": { <mask> "url": "https://github.com/GeekyAnts/NativeBase/issues" <mask> }, <mask> "dependencies": { <mask> "@shoutem/animation": "^0.8.9", </s> CardItem and List fix for /backward </s> remove "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#2efab5b090a21765f5f4e31a22cbc3f5f61cea61", "_shasum": "66ee6fdb8b4d9a3e1711495c8d4dba8536f3d54b", </s> add "_resolved": "git+https://github.com/GeekyAnts/NativeBase.git#23698414b8bcf823cf810f7faae3fec2096982ef", "_shasum": "f1a08924d2b0dcb3337939981daa93bbbd84f6b3", </s> remove "yargs": "4.8.1" </s> add "yargs": "6.5.0" </s> remove class CardItem extends NativeBaseComponent { </s> add class CardItem1 extends NativeBaseComponent { getInitialStyle() { return { listItem: { flexDirection: (this.thumbnailPresent() || this.gravatarPresent() || this.iconPresent() || (this.notePresent() && this.ifShowCase())) ? 'row' : 'column', }, fullImage: { alignSelf: 'stretch', height: this.ifShowCase() ? 120 : 300 }, }; } </s> remove import { Content } from 'native-base'; </s> add import { Content } from './Widgets/Content'; </s> remove import { List } from 'native-base'; </s> add import { List } from './Widgets/List';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c3562e7afd549b232892b2b9b69b3202c85f833
package.json
const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props );
<mask> ({ children, ...props }: P & FactoryComponentProps, ref: any) => { <mask> const StyledComponent = makeStyledComponent( <mask> Component as AnyStyledComponent <mask> ); <mask> const calculatedProps = usePropsWithComponentTheme(componentTheme, props); <mask> return ( <mask> <StyledComponent {...(calculatedProps as P)} ref={ref}> <mask> {children} <mask> </StyledComponent> <mask> ); </s> fix: icon button crash fix </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme, </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>; </s> remove : componentTheme.variants[variant]({ </s> add : //@ts-ignore componentTheme.variants[variant]({
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/factory/component.tsx
import type { ComponentTheme } from '../../theme';
<mask> import { useContrastText } from '../useContrastText'; <mask> import { useBreakpointResolvedProps } from '../useBreakpointResolvedProps'; <mask> import { propsFlattener, compareSpecificity } from './propsFlattener'; <mask> import { useResponsiveSSRProps } from '../useResponsiveSSRProps'; <mask> <mask> const SPREAD_PROP_SPECIFICITY_ORDER = [ <mask> 'p', <mask> 'padding', <mask> 'px', </s> fix: icon button crash fix </s> remove localTheme: any, </s> add localTheme: ComponentTheme, </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>; </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme,
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsResolution.tsx
componentTheme: ComponentTheme,
<mask> ); <mask> } <mask> <mask> export const usePropsResolutionWithComponentTheme = ( <mask> componentTheme: any, <mask> incomingProps: any, <mask> state?: any, <mask> config?: any <mask> ) => { <mask> const modifiedPropsForSSR = useResponsiveSSRProps(incomingProps); </s> fix: icon button crash fix </s> remove localTheme: any, </s> add localTheme: ComponentTheme, </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsResolution.tsx
: //@ts-ignore componentTheme.variants[variant]({
<mask> if (variant && componentTheme.variants && componentTheme.variants[variant]) { <mask> componentVariantProps = <mask> typeof componentTheme.variants[variant] !== 'function' <mask> ? componentTheme.variants[variant] <mask> : componentTheme.variants[variant]({ <mask> theme, <mask> ...flattenProps, <mask> ...colorModeProps, <mask> }); <mask> </s> fix: icon button crash fix </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme, </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props ); </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsResolution.tsx
//@ts-ignore
<mask> // Type - sizes: (props) => ({lg: {px: 1}}). Refer heading theme <mask> else if (typeof componentTheme.sizes[size] === 'function') { <mask> flattenProps.size = undefined; <mask> componentSizeProps = componentTheme.sizes[size]({ <mask> theme, <mask> ...flattenProps, <mask> ...colorModeProps, <mask> }); <mask> } </s> fix: icon button crash fix </s> remove : componentTheme.variants[variant]({ </s> add : //@ts-ignore componentTheme.variants[variant]({ </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>; </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme, </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props );
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsResolution.tsx
import type { ComponentTheme } from '../../theme';
<mask> import { usePropsResolutionWithComponentTheme } from './usePropsResolution'; <mask> <mask> export function usePropsWithComponentTheme( <mask> localTheme: ComponentTheme, <mask> propsReceived: any <mask> ) { <mask> return usePropsResolutionWithComponentTheme(localTheme, propsReceived); </s> fix: icon button crash fix </s> remove localTheme: any, </s> add localTheme: ComponentTheme, </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme, </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props ); </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>;
[ "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsWithComponentTheme.ts
localTheme: ComponentTheme,
<mask> import { usePropsResolutionWithComponentTheme } from './usePropsResolution'; <mask> <mask> export function usePropsWithComponentTheme( <mask> localTheme: any, <mask> propsReceived: any <mask> ) { <mask> return usePropsResolutionWithComponentTheme(localTheme, propsReceived); <mask> } </s> fix: icon button crash fix </s> remove componentTheme: any, </s> add componentTheme: ComponentTheme, </s> remove sizes?: Record<string, StyledProps>; </s> add sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>; </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props );
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/hooks/useThemeProps/usePropsWithComponentTheme.ts
sizes?: Record<string, ((props: any) => StyledProps) | StyledProps>;
<mask> //@ts-ignore <mask> import type { ColorModeOptions } from './../core/color-mode/types'; <mask> export interface ComponentTheme { <mask> baseStyle?: (props: any) => StyledProps | StyledProps; <mask> sizes?: Record<string, StyledProps>; <mask> variants?: Record<string, ((props: any) => StyledProps) | StyledProps>; <mask> defaultProps?: Record<string, any>; <mask> } <mask> const config: ColorModeOptions = { <mask> useSystemColorMode: false, // TODO: implement this </s> fix: icon button crash fix </s> remove const calculatedProps = usePropsWithComponentTheme(componentTheme, props); </s> add const calculatedProps = usePropsWithComponentTheme( componentTheme ?? {}, props ); </s> remove localTheme: any, </s> add localTheme: ComponentTheme,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c5ad3449afc2bb7bb6fa864fb7adea7f90a4f21
src/theme/index.ts
var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
<mask> <mask> var _theme=require('@shoutem/theme'); <mask> var _variables=require('../theme/variables');var _variables2=_interopRequireDefault(_variables); <mask> var _computeProps=require('../Utils/computeProps');var _computeProps2=_interopRequireDefault(_computeProps); <mask> var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames); <mask> var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var <mask> <mask> Item=function(_Component){_inherits(Item,_Component); <mask> function Item(props){_classCallCheck(this,Item);var _this=_possibleConstructorReturn(this,(Item.__proto__||Object.getPrototypeOf(Item)).call(this, <mask> props)); <mask> _this.state={ </s> items fix, tabs text color fix,picker fix </s> remove var ds=new _List.List.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}}); </s> add var ds=new _reactNative.ListView.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}}); </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
<mask> <mask> <mask> } <mask> return newLabel; <mask> }},{key:'onTextChange',value:function onTextChange( <mask> text,inputProps){ <mask> this.setState({text:text}); <mask> inputProps.onChangeText(); <mask> }},{key:'renderChildren',value:function renderChildren() <mask> <mask> {var _this2=this; <mask> var newChildren=[]; <mask> var childrenArray=_react2.default.Children.toArray(this.props.children); </s> items fix, tabs text color fix,picker fix </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove onTextChange(text, inputProps) { this.setState({ text: text }); inputProps.onChangeText(); } </s> add </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
label=_.remove(childrenArray,function(item){
<mask> var childrenArray=_react2.default.Children.toArray(this.props.children); <mask> <mask> var label=[]; <mask> var labelProps={}; <mask> label=_lodash2.default.remove(childrenArray,function(item){ <mask> if(item.type===_Label.Label){ <mask> labelProps=item.props; <mask> return item; <mask> } <mask> }); </s> items fix, tabs text color fix,picker fix </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove }},{key:'onTextChange',value:function onTextChange( text,inputProps){ this.setState({text:text}); inputProps.onChangeText(); </s> add </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add </s> remove var ds=new _List.List.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}}); </s> add var ds=new _reactNative.ListView.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
input=_.remove(childrenArray,function(item){
<mask> }); <mask> <mask> var input=[]; <mask> var inputProps={}; <mask> input=_lodash2.default.remove(childrenArray,function(item){ <mask> if(item.type===_Input.Input){ <mask> inputProps=item.props; <mask> return item; <mask> } <mask> }); </s> items fix, tabs text color fix,picker fix </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove }},{key:'onTextChange',value:function onTextChange( text,inputProps){ this.setState({text:text}); inputProps.onChangeText(); </s> add </s> remove onTextChange(text, inputProps) { this.setState({ text: text }); inputProps.onChangeText(); } </s> add </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
icon=_.remove(childrenArray,function(item){
<mask> }); <mask> <mask> var icon=[]; <mask> var iconProps={}; <mask> icon=_lodash2.default.remove(childrenArray,function(item){ <mask> if(item.type===_Icon.Icon){ <mask> iconProps=item.props; <mask> return item; <mask> } <mask> }); </s> items fix, tabs text color fix,picker fix </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove }},{key:'onTextChange',value:function onTextChange( text,inputProps){ this.setState({text:text}); inputProps.onChangeText(); </s> add </s> remove onTextChange(text, inputProps) { this.setState({ text: text }); inputProps.onChangeText(); } </s> add </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}})));
<mask> }); <mask> if(this.props.floatingLabel&&icon.length){ <mask> newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:'i1'},iconProps,{style:{top:6}}))); <mask> newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:30}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps)))); <mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); <mask> }else <mask> if(this.props.floatingLabel){ <mask> newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:30}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps))); <mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); <mask> }else </s> items fix, tabs text color fix,picker fix </s> remove newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); </s> add newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}}))); </s> remove newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{style:{width:_variables2.default.deviceWidth-40}}))))); </s> add newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});},style:{width:_variables2.default.deviceWidth-40}}))))); </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}})));
<mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); <mask> }else <mask> if(this.props.floatingLabel){ <mask> newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:30}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps))); <mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); <mask> }else <mask> if(this.props.stackedLabel&&icon.length){ <mask> newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{style:{width:_variables2.default.deviceWidth-40}}))))); <mask> <mask> }else </s> items fix, tabs text color fix,picker fix </s> remove newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); </s> add newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}}))); </s> remove newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{style:{width:_variables2.default.deviceWidth-40}}))))); </s> add newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});},style:{width:_variables2.default.deviceWidth-40}}))))); </s> remove color: variables.topTabBarTextColor, </s> add color: variables.topTabBarActiveTextColor, </s> remove paddingLeft:15}, </s> add paddingLeft:5}, 'NativeBase.Icon':{ paddingLeft:10},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});},style:{width:_variables2.default.deviceWidth-40}})))));
<mask> newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:30}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps))); <mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); <mask> }else <mask> if(this.props.stackedLabel&&icon.length){ <mask> newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_variables2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{style:{width:_variables2.default.deviceWidth-40}}))))); <mask> <mask> }else <mask> { <mask> return this.props.children; <mask> } </s> items fix, tabs text color fix,picker fix </s> remove newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); </s> add newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}}))); </s> remove newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.onTextChange(text,inputProps);}}))); </s> add newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){return _this2.setState({text:text});}}))); </s> remove onTextChange(text, inputProps) { this.setState({ text: text }); inputProps.onChangeText(); } </s> add </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Item.js
var ds=new _reactNative.ListView.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}});
<mask> PickerNB=function(_Component){_inherits(PickerNB,_Component); <mask> <mask> function PickerNB(props){_classCallCheck(this,PickerNB);var _this=_possibleConstructorReturn(this,(PickerNB.__proto__||Object.getPrototypeOf(PickerNB)).call(this, <mask> props)); <mask> var ds=new _List.List.DataSource({rowHasChanged:function rowHasChanged(r1,r2){return r1!==r2;}}); <mask> _this.state={ <mask> modalVisible:false, <mask> currentLabel:_this.getLabel(props), <mask> dataSource:ds.cloneWithRows(_this.props.children)};return _this; <mask> </s> items fix, tabs text color fix,picker fix </s> remove var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames); var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var </s> add var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Picker.ios.js
_react2.default.createElement(_reactNative.ListView,{
<mask> <mask> _react2.default.createElement(_Container.Container,null, <mask> this.renderHeader(), <mask> _react2.default.createElement(_Content.Content,null, <mask> _react2.default.createElement(_List.List,{ <mask> dataSource:this.state.dataSource, <mask> renderRow:function renderRow(child){return( <mask> _react2.default.createElement(_ListItem.ListItem,{ <mask> selected:child.props.value===_this4.props.selectedValue?true:false, <mask> button:true, </s> items fix, tabs text color fix,picker fix </s> remove color: variables.topTabBarTextColor, </s> add color: variables.topTabBarActiveTextColor, </s> remove paddingLeft:15}, </s> add paddingLeft:5}, 'NativeBase.Icon':{ paddingLeft:10}, </s> remove paddingRight:5, paddingLeft:5, </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/basic/Picker.ios.js
<mask> <mask> var _variables=require('./variables');var _variables2=_interopRequireDefault(_variables);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= <mask> <mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_variables2.default; <mask> var platformStyle=variables.platformStyle; <mask> var platform=variables.platform; <mask> <mask> var theme={ <mask> 'NativeBase.Item':{ <mask> '.fixedLabel':{ <mask> 'NativeBase.Label':{ <mask> paddingLeft:null}, </s> items fix, tabs text color fix,picker fix </s> remove height:55, top:10}}, </s> add height:60, top:8}, 'NativeBase.Label':{ top:8}}, </s> remove label=_lodash2.default.remove(childrenArray,function(item){ </s> add label=_.remove(childrenArray,function(item){ </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){ </s> remove var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames); var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var </s> add var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
'NativeBase.Input':{}},
<mask> <mask> marginLeft:15}, <mask> <mask> '.placeholderLabel':{ <mask> 'NativeBase.Input':{ <mask> marginLeft:-5}}, <mask> <mask> <mask> '.stackedLabel':{ <mask> 'NativeBase.Label':{ <mask> paddingLeft:null}, </s> items fix, tabs text color fix,picker fix </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add top:8, marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add </s> remove height:55, top:10}}, </s> add height:60, top:8}, 'NativeBase.Label':{ top:8}},
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5},
<mask> paddingLeft:null}, <mask> <mask> 'NativeBase.Input':{ <mask> paddingLeft:null, <mask> marginLeft:platform==='ios'?undefined:-5}, <mask> <mask> marginLeft:15}, <mask> <mask> '.floatingLabel':{ <mask> 'NativeBase.Input':{ </s> items fix, tabs text color fix,picker fix </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add top:8, marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove 'NativeBase.Input':{ marginLeft:-5}}, </s> add 'NativeBase.Input':{}}, </s> remove height:55, top:10}}, </s> add height:60, top:8}, 'NativeBase.Label':{ top:8}}, </s> remove paddingRight:5, paddingLeft:5, </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
top:8, marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5},
<mask> <mask> '.floatingLabel':{ <mask> 'NativeBase.Input':{ <mask> paddingLeft:null, <mask> marginLeft:platform==='ios'?undefined:-5}, <mask> <mask> 'NativeBase.Label':{ <mask> left:0}, <mask> <mask> marginLeft:15}, </s> items fix, tabs text color fix,picker fix </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove 'NativeBase.Input':{ marginLeft:-5}}, </s> add 'NativeBase.Input':{}}, </s> remove height:55, top:10}}, </s> add height:60, top:8}, 'NativeBase.Label':{ top:8}},
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
'NativeBase.Label':{ left:0, top:8}, marginLeft:15}, '.regular':{
<mask> top:8, <mask> marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, <mask> <mask> 'NativeBase.Label':{ <mask> left:0}, <mask> <mask> marginLeft:0}, <mask> <mask> '.rounded':{ </s> items fix, tabs text color fix,picker fix </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add top:8, marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove paddingLeft:15}, </s> add paddingLeft:5}, 'NativeBase.Icon':{ paddingLeft:10}, </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove height:55, top:10}}, </s> add height:60, top:8}, 'NativeBase.Label':{ top:8}},
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
'NativeBase.Label':{ paddingRight:5},
<mask> paddingLeft:15}, <mask> <mask> marginLeft:15}}; <mask> <mask> <mask> <mask> return theme; </s> items fix, tabs text color fix,picker fix </s> remove paddingLeft:15}, </s> add paddingLeft:5}, 'NativeBase.Icon':{ paddingLeft:10}, </s> remove paddingLeft:15}, </s> add paddingLeft:5}, 'NativeBase.Icon':{ paddingLeft:10}, </s> remove input=_lodash2.default.remove(childrenArray,function(item){ </s> add input=_.remove(childrenArray,function(item){ </s> remove icon=_lodash2.default.remove(childrenArray,function(item){ </s> add icon=_.remove(childrenArray,function(item){
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Form.js
height:60, top:8}, 'NativeBase.Label':{ top:8}},
<mask> function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_variables2.default; <mask> var itemTheme={ <mask> '.floatingLabel':{ <mask> 'NativeBase.Input':{ <mask> height:55, <mask> top:10}}, <mask> <mask> <mask> '.fixedLabel':{ <mask> 'NativeBase.Label':{ <mask> position:null, </s> items fix, tabs text color fix,picker fix </s> remove var platformStyle=variables.platformStyle; var platform=variables.platform; </s> add </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add top:8, marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove marginLeft:platform==='ios'?undefined:-5}, </s> add marginLeft:_reactNative.Platform.OS==='ios'?undefined:-5}, </s> remove 'NativeBase.Input':{ marginLeft:-5}}, </s> add 'NativeBase.Input':{}}, </s> remove paddingLeft:10, </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Item.js
<mask> position:null, <mask> top:null, <mask> left:null, <mask> right:null, <mask> paddingLeft:10, <mask> flex:1, <mask> height:null, <mask> width:null, <mask> fontSize:variables.inputFontSize}, <mask> </s> items fix, tabs text color fix,picker fix </s> remove paddingLeft:10, </s> add </s> remove paddingLeft:10, </s> add </s> remove paddingTop:10, paddingLeft:10, </s> add </s> remove paddingRight:5, paddingLeft:5, </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7c8f40051192533e065a963551a2f580b355cd90
dist/src/theme/Item.js