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
<mask> import React, { memo, forwardRef, useRef } from 'react'; <mask> import { Text as NativeText } from 'react-native'; <mask> import { useTheme } from '../../../hooks'; <mask> import { usePropsResolution } from '../../../hooks/useThemeProps'; <mask> import type { ITextProps } from './types'; <mask> import { us...
[ "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d1e65b3a29701927408720f3afd2977ebc7f4733
src/components/primitives/Text/index.tsx
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps'; <mask> import type { ITextProps } from './types'; <mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { mergeRefs } from '../../../utils/mergeRefs'; <mask> import { useHasResponsiveProps } from '../../../hooks/us...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d1e65b3a29701927408720f3afd2977ebc7f4733
src/components/primitives/Text/index.tsx
import { useResolvedFontFamily } from '../../../hooks/useResolvedFontFamily'; import { Text as NativeText } from 'react-native'; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { mergeRefs } from '../../../utils/mergeRefs'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> import { makeStyledComponent } from '../../../utils/styled'; <mask> <mask> type IUseResolvedF...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/d1e65b3a29701927408720f3afd2977ebc7f4733
src/components/primitives/Text/index.tsx
lineHeight: 'lg', // Todo: Move to _web inside size so that sm and xs don't have this much height
<mask> }, <mask> }, <mask> _web: { <mask> outlineWidth: 0, <mask> lineHeight: 6, // Todo: Move to _web inside size so that sm and xs don't have this much height <mask> }, <mask> }; <mask> }; <mask> <mask> function roundedStyle() { </s> fix: broken uis and component theme inte...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d1e65b3a29701927408720f3afd2977ebc7f4733
src/theme/components/input.ts
//Basic
<mask> // Components <mask> //Baisc <mask> export * from './components/basic/ScrollView'; <mask> export * from './components/basic/FlatList'; <mask> export * from './components/basic/SectionList'; <mask> export * from './components/basic/StatusBar'; <mask> export * from './components/basic/KeyboardAvoidingView';...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d247da9311b5149410b66fadc09d04a722627015
example/storybook/stories/index.ts
isDisabled={isDisabled}
<mask> {...nonLayoutProps} <mask> {...borderProps} <mask> /> <mask> ); <mask> <mask> const handleClose = () => setIsOpen(false); </s> fix: resolved a select bug and added disabled </s> remove <option ref={ref} value={value}> </s> add <option ref={ref} value={value} disabled={isD...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d247da9311b5149410b66fadc09d04a722627015
src/components/primitives/Select/Select.tsx
value={ selectedItem === null ? '__NativebasePlaceholder__' : value }
<mask> style={unstyledSelecWebtStyles} <mask> onChange={(e) => { <mask> setValue(e.target.value); <mask> }} <mask> value={value} <mask> aria-label={placeholder} <mask> > <mask> {children} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d247da9311b5149410b66fadc09d04a722627015
src/components/primitives/Select/Select.tsx
<option disabled value="__NativebasePlaceholder__"> {placeholder} </option>
<mask> } <mask> aria-label={placeholder} <mask> > <mask> {children} <mask> </select> <mask> </Box> <mask> {commonInput} <mask> </> </s> fix: resolved a select bug and added disabled </s> remove value={va...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d247da9311b5149410b66fadc09d04a722627015
src/components/primitives/Select/Select.tsx
<option ref={ref} value={value} disabled={isDisabled}>
<mask> </Actionsheet.Item> <mask> ); <mask> } else { <mask> return ( <mask> <option ref={ref} value={value}> <mask> {label} <mask> </option> <mask> ); <mask> } <mask> }; </s> fix: resolved a select bug and added disabled </s> remove value={value} </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d247da9311b5149410b66fadc09d04a722627015
src/components/primitives/Select/SelectItem.tsx
expect(spinner.props.style).toEqual(undefined);
<mask> maxWidth: '100%', <mask> width: defaultTheme.space['20'], <mask> }); <mask> <mask> expect(spinner.props.style).toEqual({}); <mask> }); <mask> <mask> it('resolves base style and variants, sizes and default props with props', () => { <mask> const newTheme = extendTheme({ <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d25a80547b0cd38213780ca896aa4832afa168c1
src/hooks/useThemeProps/usePropsResolution.test.tsx
// For backward compatibility with 3.0 of props like string numbers `<Box mt={"39"} />` const convertStringNumberToNumber = (key: string, value: string) => { if ( typeof value === 'string' && key !== 'fontWeight' && value && !isNaN(Number(value)) ) { return parseFloat(value); } return value...
<mask> ...background, <mask> ...extraProps, <mask> }; <mask> <mask> export const getStyleAndFilteredProps = ({ <mask> style, <mask> theme, <mask> debug, </s> fix: support string numbers for backward compatibility </s> remove styleFromProps = { ...styleFromProps, [key]: value }; </s> add ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d25a80547b0cd38213780ca896aa4832afa168c1
src/theme/styled-system.ts
styleFromProps = { ...styleFromProps, [key]: convertStringNumberToNumber(key, value), };
<mask> ); <mask> <mask> const config = propConfig[key as keyof typeof propConfig]; <mask> if (config === true) { <mask> styleFromProps = { ...styleFromProps, [key]: value }; <mask> } else if (config) { <mask> //@ts-ignore <mask> const { property, scale, propertie...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d25a80547b0cd38213780ca896aa4832afa168c1
src/theme/styled-system.ts
val = parseFloat(val);
<mask> } else { <mask> val = get(theme[scale], value, value); <mask> } <mask> if (typeof val === 'string' && val.endsWith('px')) { <mask> val = parseInt(val, 10); <mask> } <mask> if (properties) { <mask> //@ts-ignore <mask> propert...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d25a80547b0cd38213780ca896aa4832afa168c1
src/theme/styled-system.ts
val = convertStringNumberToNumber(key, val);
<mask> val = parseFloat(val); <mask> } <mask> if (properties) { <mask> //@ts-ignore <mask> properties.forEach((property) => { <mask> styleFromProps = { </s> fix: support string numbers for backward compatibility </s> remove val = parseInt(val, 1...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d25a80547b0cd38213780ca896aa4832afa168c1
src/theme/styled-system.ts
const [show, setShow] = React.useState(false);
<mask> import { MaterialIcons } from '@expo/vector-icons'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Stack space={4} w="100%" alignItems="center"> <mask> <Input <mask> w={{ base: '75%', md: '25%' }} </s> added variable to show/hide password </s> remove ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d30196a988cb4d98581149127398527088afb547
example/storybook/stories/components/primitives/Input/Elements.tsx
type={show ? 'text' : 'password'}
<mask> <Input <mask> w={{ base: '75%', md: '25%' }} <mask> InputRightElement={ <mask> <Icon <mask> as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />} <mask> size={5} <mask> mr="2" <mask> color="muted.400" </s> add...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d30196a988cb4d98581149127398527088afb547
example/storybook/stories/components/primitives/Input/Elements.tsx
as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
<mask> <Input <mask> w={{ base: '75%', md: '25%' }} <mask> InputRightElement={ <mask> <Icon <mask> as={<MaterialIcons name="visibility-off" />} <mask> size={5} <mask> mr="2" <mask> color="muted.400" <mask> /> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d30196a988cb4d98581149127398527088afb547
example/storybook/stories/components/primitives/Input/Elements.tsx
inputProps = inp.props; var clonedInp = React.cloneElement( inp, { ...this.inputProps, key: 'inp', editable: this.props.disabled ? false : undefined } )
<mask> } <mask> }); <mask> <mask> if(inp) { <mask> inputProps = computeProps(this.props, inp.props); <mask> } <mask> else { <mask> inputProps = this.props; <mask> } <mask> <mask> if(Array.isArray(this.props.children)) { <mask> <mask> if(this.props.iconRight) { </s> input group u...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
if(clonedInp) { newChildren.push(clonedInp); }
<mask> <mask> if(Array.isArray(this.props.children)) { <mask> <mask> if(this.props.iconRight) { <mask> newChildren.push(<Input editable={this.props.disabled ? false : undefined} key='inp' {...inputProps} />); <mask> newChildren.push(React.cloneElement(iconElement[0],this.getIconProps(iconElement[0]...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
if(clonedInp) { newChildren.push(clonedInp); }
<mask> ...this.getIconProps(iconElement[0]), <mask> key: 'icon0' <mask> } <mask> )); <mask> newChildren.push(<Input editable={this.props.disabled ? false : undefined} key='inp' {...inputProps} />); <mask> newChildren.push(React.cloneElement( <mask> buttonElement[0], <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
if(clonedInp) { newChildren.push(clonedInp); }
<mask> ...this.getIconProps(iconElement[0]), <mask> key: 'icon0' <mask> } <mask> )); <mask> newChildren.push(<Input editable={this.props.disabled ? false : undefined} key='inp' {...inputProps} />); <mask> newChildren.push(React.cloneElement( <mask> iconElement[1], <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
if(clonedInp) { newChildren.push(clonedInp); }
<mask> } <mask> )); <mask> } else { <mask> newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0]))); <mask> newChildren.push(<Input editable={this.props.disabled ? false : undefined} key='inp' {...inputProps} />); <mask> } <mask> } <mask> } <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
if(clonedInp) { newChildren.push(clonedInp); }
<mask> } <mask> } <mask> <mask> else { <mask> newChildren.push(<Input editable={this.props.disabled ? false : undefined} key='inp' {...inputProps} />); <mask> } <mask> <mask> return newChildren; <mask> } <mask> </s> input group updated with ref </s> remove newChildren.push(<Input edita...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d3734dea02aec07a4fbbf696db6059171f10cc1f
Components/Widgets/InputGroup.js
<mask> <<<<<<< HEAD <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> if(this.props.floatingLabel){ <mask> if(this.inputProps&&this.inputProps.value){ <mask> this.setState({isFocused:true}); <mask> this.floatUp(-16); <mask> }else{ <mask> this.setState({isFocused:false}); <mask> } <mask> if(this.inputProps&&this.inputProps.getRef){ <mask> this.inputProps.getRef(this._input...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> if(this.props.floatingLabel){ <mask> if(this.inputProps&&this.inputProps.value){ <mask> this.setState({isFocused:true}); <mask> this.floatUp(-16); <mask> }else{ <mask> this.setState({isFocused:false}); <mask> } <mask> if(this.inputProps&&this.inputProps.getRef){ <mask> this.inputProps.getRef(this._input...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> forEach(function(item){ <mask> if(item.type.displayName==='Styled(Label)'){ <mask> labelChild=item; <mask> labelProps=item.props; <mask> return false; <mask> }else if(item.type.displayName==='Styled(Input)'){ <mask> inputChild=item; <mask> inputProps=item.props; <mask> _this4.inputProps=item.props; <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> }else if(item.type.displayName==='Styled(Input)'){ <mask> inputChild=item; <mask> inputProps=item.props; <mask> _this4.inputProps=item.props; <mask> return false; <mask> }else if(item.type.displayName==='Styled(Icon)'){ <mask> icon.push(item); <mask> iconProps=item.props; <mask> return false; <mask> } ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
icon.push({iconItem:item,isRight:!!inputChild});
<mask> inputProps=item.props; <mask> _this4.inputProps=item.props; <mask> return false; <mask> }else if(item.type.displayName==='Styled(Icon)'){ <mask> icon.push(item); <mask> iconProps=item.props; <mask> return false; <mask> } <mask> return true; <mask> }); </s> Resolving merge conflicts and retaining icon ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> return false; <mask> }else if(item.type.displayName==='Styled(Icon)'){ <mask> icon.push(item); <mask> iconProps=item.props; <mask> return false; <mask> } <mask> return true; <mask> }); <mask> <mask> if(this.props.floatingLabel){ </s> Resolving merge conflicts and retaining icon original position Add...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> icon.push(item); <mask> iconProps=item.props; <mask> return false; <mask> } <mask> return true; <mask> }); <mask> <mask> if(this.props.floatingLabel){ <mask> var hasIcon=icon&&icon.length; <mask> if(hasIcon){ </s> Resolving merge conflicts and retaining icon original position Added a check to retain...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> return true; <mask> }); <mask> <mask> if(this.props.floatingLabel){ <mask> var hasIcon=icon&&icon.length; <mask> if(hasIcon){ <mask> icon.forEach(function(iconItem){ <mask> newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:iconItem.key},iconItem.props,{__source:{fileName:_jsxFileNa...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12},__source:{fileName:_jsxFileName,lineNumber:232}},
<mask> right:0, <mask> top:this.state.topAnim, <mask> opacity:this.state.opacAnim, <mask> paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12},__source:{fileName:_jsxFileName,lineNumber:183}}, <mask> <mask> <mask> this.renderLabel...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
var hasIcon=icon&&icon.length; if(hasIcon){ icon.forEach(function(_ref){var iconItem=_ref.iconItem,isRight=_ref.isRight; console.log('iconItem',iconItem); console.log('isRight',isRight); var iconComponent=_react2.default.createElement(_Icon.Icon,_extends({key:iconItem.key},iconItem.props,{__source:{fileName:_jsxFileNam...
<mask> this.renderLabel(labelChild,labelProps))); <mask> <mask> <mask> newChildren.push(this.renderInput(inputChild,inputProps)); <mask> }else if(this.props.stackedLabel&&icon.length){ <mask> newChildren.push( <mask> _react2.default.createElement(_reactNative.View,{ <mask> key:"s", <mask> style:{ <mask> fle...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:270}},
<mask> key:"s", <mask> style:{ <mask> flexDirection:'row', <mask> flex:1, <mask> width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:208}}, <mask> <mask> <mask> _react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:21...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:278}})), _react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'},__source:{fileName:_jsxFileName,lineNumber:279}}, _react2.default.createElement(_Label.Label,_extends({key:"s2"},lab...
<mask> flex:1, <mask> width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:208}}, <mask> <mask> <mask> _react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:216}})), <mask> _react2.default.createElement(_reactNative.View...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:316}}),
<mask> return( <mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ <mask> ref:function ref(c){_this5._root=c;}}, <mask> this.prepareRootProps(),{ <mask> activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:254}}), <mask> <mask> this.renderChildren())); <mask> <mask> <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
<mask> Item);exports. <mask> <mask> <mask> Item=StyledItem; <mask> ======= <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _jsxFileName="src/basic/Item.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js
{"version":3,"sources":["../../../src/basic/Item.js"],"names":["Item","props","state","text","topAnim","Animated","Value","opacAnim","isFocused","floatingLabel","inputProps","value","setState","floatUp","getRef","_inputRef","nextProps","childrenArray","React","Children","toArray","children","_","remove","item","type","...
<mask> <<<<<<< HEAD <mask> {"version":3,"sources":["../../../src/basic/Item.js"],"names":["Item","props","state","text","topAnim","Animated","Value","opacAnim","isFocused","floatingLabel","inputProps","value","setState","floatUp","getRef","_inputRef","nextProps","childrenArray","React","Children","toArray","children"...
[ "replace", "replace", "replace", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
dist/src/basic/Item.js.map
<mask> .forEach((item) => { <mask> if (item.type.displayName === 'Styled(Label)') { <mask> labelChild = item; <mask> labelProps = item.props; <mask> return false; <mask> } else if (item.type.displayName === 'Styled(Input)') { <mask> inputChild = item;...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
<mask> } else if (item.type.displayName === 'Styled(Input)') { <mask> inputChild = item; <mask> inputProps = item.props; <mask> this.inputProps = item.props; <mask> return false; <mask> } else if (item.type.displayName === 'Styled(Icon)') { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
icon.push({ iconItem: item, isRight: !!inputChild });
<mask> inputProps = item.props; <mask> this.inputProps = item.props; <mask> return false; <mask> } else if (item.type.displayName === 'Styled(Icon)') { <mask> icon.push(item); <mask> iconProps = item.props; <mask> return false; <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
<mask> return false; <mask> } else if (item.type.displayName === 'Styled(Icon)') { <mask> icon.push(item); <mask> iconProps = item.props; <mask> return false; <mask> } <mask> return true; <mask> }); <mask> <mask> // if (this.props.floa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
<mask> icon.push(item); <mask> iconProps = item.props; <mask> return false; <mask> } <mask> return true; <mask> }); <mask> <mask> // if (this.props.floatingLabel && icon.length) { <mask> // let isIcon = false; <mask> // for (let i = 0; i < t...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
<mask> } <mask> return true; <mask> }); <mask> <mask> // if (this.props.floatingLabel && icon.length) { <mask> // let isIcon = false; <mask> // for (let i = 0; i < this.props.children.length; i++) { <mask> // if (this.props.children[i].props.name && this.props.chil...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
<mask> // } <mask> // } <mask> <mask> if (this.props.floatingLabel) { <mask> const hasIcon = icon && icon.length; <mask> if (hasIcon) { <mask> icon.forEach((iconItem) => { <mask> newChildren.push(<Icon key={iconItem.key} {...iconItem.props} />); <mask> }); ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
const hasIcon = icon && icon.length; if (hasIcon) { icon.forEach(({ iconItem, isRight }) => { const iconComponent = <Icon key={iconItem.key} {...iconItem.props} />; if (isRight) { newChildren.push(iconComponent); } else { newChildren.unshift(icon...
<mask> ); <mask> newChildren.push(this.renderInput(inputChild, inputProps)); <mask> } else if (this.props.stackedLabel && icon.length) { <mask> newChildren.push( <mask> <View <mask> key="s" <mask> style={{ </s> Resolving merge conflicts and retaining icon origin...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d37c2d4f1122fefd5fc53cb55b4215c367da1aaf
src/basic/Item.js
let breakpointsObj: any = {};
<mask> ) { <mask> const dimValues = Object.values(values); <mask> let index = -1; <mask> for (let i = 0; i < dimValues.length; i++) { <mask> breakpointsObj[dimValues[i]] = i; <mask> } <mask> const breakpoints = Object.keys(breakpointsObj); <mask> for (let i = 0; i < breakpoints.length; i++) { <...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d434219625a724d99b9e60fe800bf7481699b01b
src/theme/tools/utils.ts
breakpointsObj[dimValues[i]] = i; } const breakpoints = Object.keys(breakpointsObj); for (let i = 0; i < breakpoints.length; i++) { if (parseInt(breakpoints[i]) === point) { index = breakpointsObj[breakpoints[i]];
<mask> ) { <mask> const dimValues = Object.values(values); <mask> let index = -1; <mask> for (let i = 0; i < dimValues.length; i++) { <mask> if (dimValues[i] === point) { <mask> index = i; <mask> break; <mask> } else if (dimValues[i] > point && i !== 0) { <mask> index = i - 1; ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d434219625a724d99b9e60fe800bf7481699b01b
src/theme/tools/utils.ts
} else if (parseInt(breakpoints[i]) > point && i !== 0) { index = breakpointsObj[breakpoints[i - 1]];
<mask> for (let i = 0; i < dimValues.length; i++) { <mask> if (dimValues[i] === point) { <mask> index = i; <mask> break; <mask> } else if (dimValues[i] > point && i !== 0) { <mask> index = i - 1; <mask> break; <mask> } <mask> // If windowWidth is greater than last avai...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d434219625a724d99b9e60fe800bf7481699b01b
src/theme/tools/utils.ts
else if (parseInt(breakpoints[i]) < point && i === dimValues.length - 1) { index = breakpointsObj[breakpoints[i]];
<mask> index = i - 1; <mask> break; <mask> } <mask> // If windowWidth is greater than last available breakpoint clamp it to last index <mask> else if (dimValues[i] < point && i === dimValues.length - 1) { <mask> index = i; <mask> break; <mask> } <mask> } <mask> retu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d434219625a724d99b9e60fe800bf7481699b01b
src/theme/tools/utils.ts
var labelStyle=_reactNative.StyleSheet.flatten( {fontSize:15,lineHeight:30}, labelProps.style);
<mask> }},{key:"renderLabel",value:function renderLabel( <mask> <mask> label,labelProps){ <mask> var newLabel=[]; <mask> var labelStyle=_reactNative.StyleSheet.flatten({fontSize:15,lineHeight:30},labelProps.style); <mask> if(this.props.floatingLabel){ <mask> if(this.state.isFocused){ <mask> newLabel.push( <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
for(var i=0;i<this.props.children.length;i++){ if(this.props.children[i].props.name){ newChildren.push( _react2.default.createElement(_Icon.Icon,_extends({key:[i]},this.props.children[i].props,{__source:{fileName:_jsxFileName,lineNumber:148}}))); } if(this.props.children[i].props.children){
<mask> return item; <mask> } <mask> }); <mask> if(this.props.floatingLabel&&icon.length){ <mask> newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:"i1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:136}}))); <mask> newChildren.push( <mask> _react2.default.createElement(_reactNative...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:154}},
<mask> right:0, <mask> top:this.state.topAnim, <mask> opacity:this.state.opacAnim, <mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:138}}, <mask> <mask> <mask> _react2.default....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:166}}), this.renderLabel(label,labelProps))));
<mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:154}}, <mask> <mask> <mask> <mask> <mask> <mask> newChildren.push( <mask> _react2.default.createElement(_Input.Input,_exten...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
<mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:138}}, <mask> <mask> <mask> _react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
!_this3.state.text.length&& _this3.setState({isFocused:false});
<mask> inputProps.value? <mask> _this3.setState({ <mask> isFocused:true}): <mask> <mask> !_this3.state.text.length&&_this3.setState({isFocused:false}); <mask> inputProps.onBlur&&inputProps.onBlur(); <mask> }, <mask> onChangeText:function onChangeText(text){ <mask> _this3.setState({text:text}); <mask> inputPr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
},__source:{fileName:_jsxFileName,lineNumber:172}})));
<mask> }, <mask> onChangeText:function onChangeText(text){ <mask> _this3.setState({text:text}); <mask> inputProps.onChangeText&&inputProps.onChangeText(text); <mask> },__source:{fileName:_jsxFileName,lineNumber:154}}))); <mask> <mask> <mask> }else if(this.props.floatingLabel){ <mask> newChildren.push( <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
} }
<mask> },__source:{fileName:_jsxFileName,lineNumber:172}}))); <mask> <mask> <mask> }else if(this.props.floatingLabel){ <mask> newChildren.push( <mask> _react2.default.createElement(_reactNative.Animated.View,{ <mask> key:"float", <mask> style:{ </s> floatinglabel renders icon, label and input in its order of...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:198}},
<mask> right:0, <mask> top:this.state.topAnim, <mask> opacity:this.state.opacAnim, <mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:177}}, <mask> <mask> <mask> _react2.default....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
_react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lineNumber:210}}),this.renderLabel(label,labelProps))));
<mask> paddingTop:_reactNative.Platform.OS==="ios"?undefined:undefined, <mask> paddingBottom:_reactNative.Platform.OS==="ios"?undefined:12},__source:{fileName:_jsxFileName,lineNumber:177}}, <mask> <mask> <mask> _react2.default.createElement(_Label.Label,_extends({},labelProps,{__source:{fileName:_jsxFileName,lin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
},__source:{fileName:_jsxFileName,lineNumber:214}})));
<mask> }, <mask> onChangeText:function onChangeText(text){ <mask> _this3.setState({text:text}); <mask> inputProps.onChangeText&&inputProps.onChangeText(text); <mask> },__source:{fileName:_jsxFileName,lineNumber:193}}))); <mask> <mask> <mask> }else if(this.props.stackedLabel&&icon.length){ <mask> newChildren....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:239}},
<mask> key:"s", <mask> style:{ <mask> flexDirection:"row", <mask> flex:1, <mask> width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:218}}, <mask> <mask> <mask> _react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:22...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
_react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:247}})), _react2.default.createElement(_reactNative.View,{style:{flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:248}}, _react2.default.createElement(_Label.Label,_extends({key:"s2"},lab...
<mask> flex:1, <mask> width:_platform2.default.deviceWidth-15},__source:{fileName:_jsxFileName,lineNumber:218}}, <mask> <mask> <mask> _react2.default.createElement(_Icon.Icon,_extends({key:"s1"},iconProps,{__source:{fileName:_jsxFileName,lineNumber:226}})), <mask> _react2.default.createElement(_reactNative.View...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFileName,lineNumber:250}})))));
<mask> _react2.default.createElement(_Label.Label,_extends({key:"s2"},labelProps,{__source:{fileName:_jsxFileName,lineNumber:228}})), <mask> _react2.default.createElement(_Input.Input,_extends({ <mask> key:"s3"}, <mask> inputProps,{ <mask> style:{width:_platform2.default.deviceWidth-40},__source:{fileName:_jsxFile...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:283}}),
<mask> return( <mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ <mask> ref:function ref(c){return _this4._root=c;}}, <mask> this.prepareRootProps(),{ <mask> activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:262}}), <mask> <mask> this.renderChildren())); <mask> <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/basic/Item.js
top:6, paddingTop:8}, "NativeBase.IconNB":{ top:6, paddingTop:8}},
<mask> "NativeBase.Label":{ <mask> top:8}, <mask> <mask> "NativeBase.Icon":{ <mask> top:6}}, <mask> <mask> <mask> ".fixedLabel":{ <mask> "NativeBase.Label":{ <mask> position:null, </s> floatinglabel renders icon, label and input in its order of definition </s> remove activeOpacity:1,__source:{fileName:_js...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d51b2f94cadd4f60d2a17445c2b9f52d6a35597a
dist/src/theme/components/Item.js
newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_platform2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'col...
<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:undefined,paddingBottom:_reactNati...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
dist/src/basic/Item.js
_react2.default.createElement(_reactNative.TouchableHighlight,{ onPress:this.props.onPress, ref:function ref(c){return _this2._root=c;}, underlayColor:'#DDD'},
<mask> ListItem=function(_Component){_inherits(ListItem,_Component);function ListItem(){_classCallCheck(this,ListItem);return _possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments));}_createClass(ListItem,[{key:'render',value:function render() <mask> {var _this2=th...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
dist/src/basic/ListItem.js
_react2.default.createElement(_reactNative.View,this.props,this.props.children)));
<mask> _react2.default.createElement(_reactNative.TouchableOpacity,_extends({ <mask> ref:function ref(c){return _this2._root=c;}}, <mask> this.props,{activeOpacity:this.props.onPress?0.4:1}), <mask> <mask> this.props.children)); <mask> <mask> <mask> }else <mask> { <mask> return( </s> Listitem ios highligh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
dist/src/basic/ListItem.js
_react2.default.createElement(_reactNative.View,{style:{marginLeft:-17,paddingLeft:17}}, _react2.default.createElement(_reactNative.View,this.props,this.props.children))));
<mask> return( <mask> _react2.default.createElement(_reactNative.TouchableNativeFeedback,{ref:function ref(c){return _this2._root=c;}, <mask> onPress:this.props.onPress, <mask> background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor):_reactNative.TouchableN...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
dist/src/basic/ListItem.js
_reactNative.TouchableHighlight.propTypes,{
<mask> }}]);return ListItem;}(_react.Component); <mask> <mask> <mask> ListItem.propTypes=_extends({}, <mask> _reactNative.TouchableOpacity.propTypes,{ <mask> style:_react2.default.PropTypes.object, <mask> itemDivider:_react2.default.PropTypes.bool, <mask> button:_react2.default.PropTypes.bool}); <mask> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
dist/src/basic/ListItem.js
componentDidMount() { if(this.inputProps && this.inputProps.getRef) this.inputProps.getRef(this._inputRef); }
<mask> opacAnim: new Animated.Value(1), <mask> }; <mask> } <mask> <mask> floatBack() { <mask> Animated.timing(this.state.topAnim, { <mask> toValue: 18, <mask> duration: 150, </s> Listitem ios highlight and android ripple fix </s> remove ...TouchableOpacity.propTypes, </s> add ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/Item.js
this.inputProps = item.props;
<mask> input = _.remove(childrenArray, (item) => { <mask> if (item.type === Input) { <mask> inputProps = item.props; <mask> return item; <mask> } <mask> }); <mask> <mask> let icon = []; </s> Listitem ios highlight and android ripple fix </s> remove newChildren.p...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/Item.js
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
<mask> newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); <mask> } <mask> else if (this.props.floatingLabel) { <mask> newChildren.push((this.props.floatingLabel) ? <Animated.View ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/Item.js
newChildren.push(<View key="s" style={{ flexDirection: 'row', flex: 1, width: variables.deviceWidth - 15 }}><Icon key="s1" {...iconProps} style={{ marginTop: 36 }} /><View style={{ flexDirection: 'column' }}><Label key="s2" {...labelProps}></Label><Input key="s3" {...inputProps} style={{ width: variables.deviceWi...
<mask> newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ?...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/Item.js
import { TouchableHighlight, Platform, TouchableNativeFeedback, View } from 'react-native';
<mask> import React, { Component } from 'react'; <mask> import { TouchableOpacity, Platform, TouchableNativeFeedback, View } from 'react-native'; <mask> <mask> import { connectStyle } from '@shoutem/theme'; <mask> import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; <mask> import variable from '../t...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
<TouchableHighlight onPress={this.props.onPress}
<mask> class ListItem extends Component { <mask> render() { <mask> if (Platform.OS==='ios' || variable.androidRipple===false || !this.props.onPress) { <mask> return ( <mask> <TouchableOpacity <mask> ref={c => this._root = c} <mask> {...this.props} activeOpacity={(this.prop...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
underlayColor="#DDD"
<mask> if (Platform.OS==='ios' || variable.androidRipple===false || !this.props.onPress) { <mask> return ( <mask> <TouchableOpacity <mask> ref={c => this._root = c} <mask> {...this.props} activeOpacity={(this.props.onPress) ? 0.4 : 1} <mask> > <mask> {this....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
<View {...this.props}>{this.props.children}</View> </TouchableHighlight>
<mask> <TouchableOpacity <mask> ref={c => this._root = c} <mask> {...this.props} activeOpacity={(this.props.onPress) ? 0.4 : 1} <mask> > <mask> {this.props.children} <mask> </TouchableOpacity> <mask> ); <mask> } <mask> else { <mask> ret...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
<View style={{ marginLeft: -17, paddingLeft: 17 }}> <View {...this.props}>{this.props.children}</View> </View>
<mask> return( <mask> <TouchableNativeFeedback ref={c => this._root = c} <mask> onPress={this.props.onPress} <mask> background={(this.props.androidRippleColor) ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor) : TouchableNativeFeedback.Ripple(variable.androi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
...TouchableHighlight.propTypes,
<mask> } <mask> } <mask> <mask> ListItem.propTypes = { <mask> ...TouchableOpacity.propTypes, <mask> style: React.PropTypes.object, <mask> itemDivider: React.PropTypes.bool, <mask> button: React.PropTypes.bool, <mask> }; <mask> </s> Listitem ios highlight and android ripple fix </s> remove import ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d523c66b2e9d4634d7b63dd113b1dd68a3807e34
src/basic/ListItem.js
import Flex from '../../primitives/Flex';
<mask> import isNil from 'lodash/isNil'; <mask> import React from 'react'; <mask> import styled from 'styled-components/native'; <mask> import { border, color, flexbox, layout, position, space } from 'styled-system'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { <mask> customBackground...
[ "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/index.tsx
const Wrap = ({ spacing, children, ...props }: IWrapProps, ref?: any) => {
<mask> } from '../../../utils/customProps'; <mask> import Box from '../../primitives/Box'; <mask> import type { IWrapProps } from './types'; <mask> <mask> const StyledWrap = styled(Box)<IWrapProps>( <mask> color, <mask> space, <mask> layout, <mask> flexbox, <mask> border, <mask> position, <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/index.tsx
<Flex {...props} wrap="wrap" ref={ref}>
<mask> ref?: any <mask> ) => { <mask> let newProps = useThemeProps('Wrap', props); <mask> return ( <mask> <StyledWrap <mask> {...newProps} <mask> flexDirection={direction} <mask> alignItems={align} <mask> justifyContent={justify} <mask> flexGrow={grow} <mask> fle...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/index.tsx
</Flex>
<mask> { ...props, style: { margin: spacing } }, <mask> child.props.children <mask> ); <mask> })} <mask> </StyledWrap> <mask> ); <mask> }; <mask> <mask> export default React.memo(React.forwardRef(Wrap)); <mask> export type { IWrapProps }; </s> fix: ref...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/index.tsx
import type { IFlexProps } from './../../primitives/Flex/types';
<mask> import type { ViewProps, ViewStyle } from 'react-native'; <mask> import type * as CSS from 'csstype'; <mask> import type { <mask> BorderProps, <mask> ColorProps, <mask> FlexboxProps, <mask> LayoutProps, <mask> PositionProps, <mask> SpaceProps, <mask> } from 'styled-system'; <mask> <mask>...
[ "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/types.ts
export type IWrapProps = IFlexProps & { spacing?: number; };
<mask> PositionProps, <mask> SpaceProps, <mask> } from 'styled-system'; <mask> <mask> import type { <mask> customBorderProps, <mask> customBackgroundProps, <mask> customOutlineProps, <mask> customLayoutProps, <mask> customExtraProps, <mask> customShadowProps, <mask> customFlexboxProps, <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/components/composites/Wrap/types.ts
<mask> import AppBar from './app-bar'; <mask> import TextArea from './textarea'; <mask> import Toast from './toast'; <mask> import { Fade, ScaleFade, Slide, SlideFade } from './transitions'; <mask> import Wrap from './wrap'; <mask> import List from './list'; <mask> <mask> export default { <mask> Accordion, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/theme/components/index.ts
<mask> Text, <mask> AppBar, <mask> TextArea, <mask> Toast, <mask> Wrap, <mask> }; </s> fix: refactor for wrap component, now it uses flex component </s> remove </StyledWrap> </s> add </Flex> </s> remove import type { customBorderProps, customBackgroundProps, customOutlineProps, customL...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5a24a0b590292dd7e83d6645bfd874dea11c134
src/theme/components/index.ts
import Basic from './Basic';
<mask> import { storiesOf } from '@storybook/react-native'; <mask> import { withKnobs } from '@storybook/addon-knobs'; <mask> import Wrapper from '../../Wrapper'; <mask> import Usage from './Usage'; <mask> <mask> storiesOf('Fab', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
example/storybook/stories/components/composites/Fab/index.tsx
import { Button, HStack } from '../../primitives';
<mask> import React from 'react'; <mask> import { Box } from '../../primitives'; <mask> import type { IFabProps } from './props'; <mask> <mask> import { omitUndefined } from '../../../theme/tools/utils'; <mask> <mask> export const FabContext = React.createContext({}); </s> Discarding FAB in favour of it being...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
src/components/composites/Fab/Fab.tsx
const Fab = ({ children, icon, label, ...props }: IFabProps) => {
<mask> import type { IFabProps } from './props'; <mask> <mask> import { omitUndefined } from '../../../theme/tools/utils'; <mask> <mask> export const FabContext = React.createContext({}); <mask> <mask> const Fab = ({ children, ...props }: IFabProps) => { <mask> const { <mask> placement = 'bottom-right...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
src/components/composites/Fab/Fab.tsx
<Button variant="unstyled" bg="default.200" borderRadius="full" {...newProps} // onPress={pressHandler} p={2} position="absolute" {...positioningProps[position]} {...newProps} > {icon && label ? ( <HStack space={1} jus...
<mask> slide, <mask> onToggle: () => setIsOpen(!isOpen), <mask> }} <mask> > <mask> <Box position="absolute" {...positioningStyle[placement]} {...newProps}> <mask> {children} <mask> </Box> <mask> </FabContext.Provider> <mask> ); <mask> }; <mask> <mask> exp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
src/components/composites/Fab/Fab.tsx
const IconButton = ({ icon, label, ...props }: IIconButtonProps, ref: any) => {
<mask> export type IIconButtonProps = IButtonProps & { <mask> icon?: JSX.Element; <mask> }; <mask> <mask> const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { <mask> const newProps = usePropsConfig('IconButton', props); <mask> return ( <mask> <Button ref={ref} {...newProps}> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
src/components/composites/IconButton/index.tsx
{icon && label ? ( <HStack space={1} justifyContent="center" alignItems="center"> {icon} {label} </HStack> ) : ( icon ?? label )}
<mask> const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { <mask> const newProps = usePropsConfig('IconButton', props); <mask> return ( <mask> <Button ref={ref} {...newProps}> <mask> {icon} <mask> </Button> <mask> ); <mask> }; <mask> <mask> export default forwardRef< ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d5d8d04854c8ce48c3b8b00b4c123a1f87d5cd09
src/components/composites/IconButton/index.tsx
borderWidth: 1,
<mask> get btnWarningColor () { <mask> return this.inverseTextColor; <mask> }, <mask> <mask> <mask> inputColor: "#000", <mask> inputBorderColor: "#000", <mask> inputHeightBase: 40, </s> lists updated with badges and avatars </s> remove borderBottomWidth: 1, ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d7b406efa97b545e0a07e645bbf904ab3de11538
Components/Themes/light.js
listBorderColor: "#ddd", listDividerBg: "#F5F5F5", listItemPadding: 15, listNoteColor: "#58575C", iconFontSize: 27, badgeColor: "#fff", badgeBg: "#ED1727"
<mask> jumbotronPadding: 30, <mask> jumbotronBg: "#C9C9CE", <mask> <mask> contentPadding: contentPadding, <mask> <mask> listBorderColor: "#ddd" <mask> } </s> lists updated with badges and avatars </s> remove if(child.props.note && this.thumbnailPresent()) { defaultProp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d7b406efa97b545e0a07e645bbf904ab3de11538
Components/Themes/light.js
borderBottomWidth: this.getTheme().borderWidth, padding: this.getTheme().listItemPadding,
<mask> <mask> getInitialStyle() { <mask> return { <mask> listItem: { <mask> borderBottomWidth: 1, <mask> padding: 8, <mask> borderRadius: 1, <mask> paddingRight: 10, <mask> paddingLeft: ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d7b406efa97b545e0a07e645bbf904ab3de11538
Components/Widgets/ListItem.js
<mask> listItem: { <mask> borderBottomWidth: 1, <mask> padding: 8, <mask> borderRadius: 1, <mask> paddingRight: 10, <mask> paddingLeft: 10, <mask> flex: 1, <mask> j...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/d7b406efa97b545e0a07e645bbf904ab3de11538
Components/Widgets/ListItem.js