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
safeArea?: boolean | number; safeAreaX?: boolean | number; safeAreaY?: boolean | number; safeAreaTop?: boolean | number; safeAreaBottom?: boolean | number; safeAreaLeft?: boolean | number; safeAreaRight?: boolean | number;
<mask> export interface SafeAreaProps { <mask> safeArea?: boolean; <mask> safeAreaX?: boolean; <mask> safeAreaY?: boolean; <mask> safeAreaTop?: boolean; <mask> safeAreaBottom?: boolean; <mask> safeAreaLeft?: boolean; <mask> safeAreaRight?: boolean; <mask> } </s> feat: usesafearea props now accept numbers as well </s> remove let [safeAreaProps, sansSafeAreaProps] = themeTools.extractInObject(props, [ </s> add let [ safeAreaProps, sansSafeAreaProps, ] = themeTools.orderedExtractInObject(props, [ </s> remove return getValueInPixels(paddingProps, propKeys, sizes, insets.left); </s> add return getValueInPixels( paddingProps, propKeys, sizes, insets.left, manualInset ); </s> remove return getValueInPixels(paddingProps, propKeys, sizes, insets.bottom); </s> add return getValueInPixels( paddingProps, propKeys, sizes, insets.bottom, manualInset ); </s> remove return getValueInPixels(paddingProps, propKeys, sizes, insets.top); </s> add return getValueInPixels( paddingProps, propKeys, sizes, insets.top, manualInset );
[ "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/4ffa8d6615b5c7b5d023c3ff758e090bb0a3795c
src/utils/customProps/safeArea.ts
...props
<mask> onClose, <mask> isOpen: isOpenProp, <mask> defaultIsOpen, <mask> placement = 'bottom left', <mask> ...restProps <mask> }: IMenuProps, <mask> ref?: any <mask> ) => { <mask> const triggerRef = React.useRef(null); <mask> const [isOpen, setIsOpen] = useControllableState({ </s> feat: new prop resolution cheanges in menu </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove ...restProps </s> add children, ...props </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, });
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
const { transition, ...resolvedProps } = usePropsResolution('Menu', props);
<mask> value ? onOpen && onOpen() : onClose && onClose(); <mask> }, <mask> }); <mask> <mask> const { transition, ...newProps } = usePropsResolution('Menu', restProps); <mask> const handleOpen = React.useCallback(() => { <mask> setIsOpen(true); <mask> }, [setIsOpen]); <mask> <mask> const handleClose = React.useCallback(() => { </s> feat: new prop resolution cheanges in menu </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add </s> remove if (!props.isDisabled) { </s> add if (!isDisabled) { </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
const updatedTrigger = () => {
<mask> handleOpen, <mask> isOpen, <mask> }); <mask> <mask> let updatedTrigger = () => { <mask> return trigger( <mask> { <mask> ...triggerProps, <mask> ref: triggerRef, <mask> onPress: handleOpen, </s> feat: new prop resolution cheanges in menu </s> remove let focusManager = useFocusManager(); let onKeyDown = (e: KeyboardEvent) => { </s> add const focusManager = useFocusManager(); const onKeyDown = (e: KeyboardEvent) => { </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {}); </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues];
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
{...props}
<mask> <Popper <mask> triggerRef={triggerRef} <mask> onClose={handleClose} <mask> placement={placement} <mask> {...restProps} <mask> > <mask> <Backdrop bg="transparent" onPress={handleClose} /> <mask> <Popper.Content> <mask> <MenuContext.Provider <mask> value={{ closeOnSelect, onClose: handleClose }} </s> feat: new prop resolution cheanges in menu </s> remove <MenuContent menuRef={ref} {...newProps}> </s> add <MenuContent menuRef={ref} {...resolvedProps}> </s> remove <HStack alignItems="center" px={newProps.px} space={3}> <CheckIcon {...newProps._icon} opacity={isChecked ? 1 : 0} /> </s> add <HStack alignItems="center" px={resolvedProps.px} space={3}> <CheckIcon {...resolvedProps._icon} opacity={isChecked ? 1 : 0} /> </s> remove <Box {...restProps} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{restProps.children}</ScrollView> </s> add <Box {...props} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{children}</ScrollView> </s> remove {...props} </s> add {...resolvedProps} </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
<MenuContent menuRef={ref} {...resolvedProps}>
<mask> <MenuContext.Provider <mask> value={{ closeOnSelect, onClose: handleClose }} <mask> > <mask> <FocusScope contain restoreFocus autoFocus> <mask> <MenuContent menuRef={ref} {...newProps}> <mask> {children} <mask> </MenuContent> <mask> </FocusScope> <mask> </MenuContext.Provider> <mask> </Popper.Content> </s> feat: new prop resolution cheanges in menu </s> remove {...restProps} </s> add {...props} </s> remove <Box {...newProps} ref={ref}> </s> add <Box {...resolvedProps} ref={ref}> </s> remove {...props} </s> add {...resolvedProps} </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove <HStack alignItems="center" px={newProps.px} space={3}> <CheckIcon {...newProps._icon} opacity={isChecked ? 1 : 0} /> </s> add <HStack alignItems="center" px={resolvedProps.px} space={3}> <CheckIcon {...resolvedProps._icon} opacity={isChecked ? 1 : 0} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
children, ...props
<mask> }; <mask> <mask> const MenuContent = ({ <mask> menuRef, <mask> ...restProps <mask> }: Omit<IMenuProps, 'trigger'> & { menuRef: any }) => { <mask> const menuProps = useMenu(); <mask> const typeaheadProps = useMenuTypeahead(menuProps); <mask> <mask> return ( </s> feat: new prop resolution cheanges in menu </s> remove <Box {...restProps} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{restProps.children}</ScrollView> </s> add <Box {...props} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{children}</ScrollView> </s> remove ...restProps </s> add ...props </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {}); </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
<Box {...props} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{children}</ScrollView>
<mask> const menuProps = useMenu(); <mask> const typeaheadProps = useMenuTypeahead(menuProps); <mask> <mask> return ( <mask> <Box {...restProps} {...menuProps} {...typeaheadProps} ref={menuRef}> <mask> <ScrollView>{restProps.children}</ScrollView> <mask> </Box> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(Menu)); </s> feat: new prop resolution cheanges in menu </s> remove ...restProps </s> add children, ...props </s> remove <Box {...newProps} ref={ref}> </s> add <Box {...resolvedProps} ref={ref}> </s> remove let focusManager = useFocusManager(); let onKeyDown = (e: KeyboardEvent) => { </s> add const focusManager = useFocusManager(); const onKeyDown = (e: KeyboardEvent) => { </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {});
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/Menu.tsx
const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {});
<mask> import Box from '../../primitives/Box'; <mask> import type { IMenuGroupProps } from './types'; <mask> <mask> const MenuGroup = ({ title, children }: IMenuGroupProps, ref: any) => { <mask> const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); <mask> <mask> return ( <mask> <> <mask> <Box {...newProps} ref={ref}> <mask> <Text {..._title}>{title}</Text> </s> feat: new prop resolution cheanges in menu </s> remove <Box {...newProps} ref={ref}> </s> add <Box {...resolvedProps} ref={ref}> </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove ...restProps </s> add children, ...props </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuGroup.tsx
<Box {...resolvedProps} ref={ref}>
<mask> const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); <mask> <mask> return ( <mask> <> <mask> <Box {...newProps} ref={ref}> <mask> <Text {..._title}>{title}</Text> <mask> </Box> <mask> {children} <mask> </> <mask> ); </s> feat: new prop resolution cheanges in menu </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {}); </s> remove <Box {...restProps} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{restProps.children}</ScrollView> </s> add <Box {...props} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{children}</ScrollView> </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues];
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuGroup.tsx
{ children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps,
<mask> import { useMenuItem } from './useMenu'; <mask> import { mergeRefs } from '../../../utils'; <mask> <mask> const MenuItem = ( <mask> { children, onPress, style, textValue, ...props }: IMenuItemProps, <mask> ref: any <mask> ) => { <mask> const { closeOnSelect, onClose } = React.useContext(MenuContext); <mask> const menuItemRef = React.useRef<any>(null); <mask> const mergedRef = mergeRefs([menuItemRef, ref]); </s> feat: new prop resolution cheanges in menu </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {}); </s> remove ...restProps </s> add children, ...props </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, });
<mask> ) => { <mask> const { closeOnSelect, onClose } = React.useContext(MenuContext); <mask> const menuItemRef = React.useRef<any>(null); <mask> const mergedRef = mergeRefs([menuItemRef, ref]); <mask> const newProps = usePropsResolution('MenuItem', props); <mask> const [textContent, setTextContent] = React.useState(''); <mask> React.useEffect(() => { <mask> const menuItem = menuItemRef.current; <mask> if (menuItem) { <mask> setTextContent((menuItem.textContent ?? '').trim()); </s> feat: new prop resolution cheanges in menu </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
<mask> setTextContent((menuItem.textContent ?? '').trim()); <mask> } <mask> }, [children]); <mask> <mask> let allProps = { <mask> ...newProps, <mask> ...(newProps.isDisabled ? newProps._disabled : {}), <mask> }; <mask> const { _text, _pressed, _focus, ...touchProps } = allProps; <mask> <mask> const menuItemProps = useMenuItem({ <mask> textValue: textValue ?? textContent, <mask> ref: menuItemRef, <mask> }); <mask> </s> feat: new prop resolution cheanges in menu </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove let focusManager = useFocusManager(); let onKeyDown = (e: KeyboardEvent) => { </s> add const focusManager = useFocusManager(); const onKeyDown = (e: KeyboardEvent) => { </s> remove let [internalValues, setValues] = React.useState<Array<string | number>>( </s> add const [internalValues, setValues] = React.useState<Array<string | number>>(
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
<mask> }); <mask> <mask> return ( <mask> <Pressable <mask> _pressed={_pressed} <mask> _focus={_focus} <mask> {...menuItemProps} <mask> {...touchProps} <mask> ref={mergedRef} <mask> style={style} <mask> disabled={props.isDisabled} </s> feat: new prop resolution cheanges in menu </s> remove {...touchProps} </s> add {...resolvedProps} </s> remove disabled={props.isDisabled} </s> add disabled={isDisabled} </s> remove disabled: props.isDisabled, </s> add disabled: isDisabled, </s> remove {...props} </s> add {...resolvedProps} </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
{...resolvedProps}
<mask> <Pressable <mask> _pressed={_pressed} <mask> _focus={_focus} <mask> {...menuItemProps} <mask> {...touchProps} <mask> ref={mergedRef} <mask> style={style} <mask> disabled={props.isDisabled} <mask> // TouchableHighlight doesn't announce disabled, even if disabled prop is set <mask> accessibilityState={{ </s> feat: new prop resolution cheanges in menu </s> remove disabled={props.isDisabled} </s> add disabled={isDisabled} </s> remove disabled: props.isDisabled, </s> add disabled: isDisabled, </s> remove _pressed={_pressed} _focus={_focus} </s> add </s> remove if (!props.isDisabled) { </s> add if (!isDisabled) { </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues];
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
disabled={isDisabled}
<mask> {...menuItemProps} <mask> {...touchProps} <mask> ref={mergedRef} <mask> style={style} <mask> disabled={props.isDisabled} <mask> // TouchableHighlight doesn't announce disabled, even if disabled prop is set <mask> accessibilityState={{ <mask> disabled: props.isDisabled, <mask> }} <mask> onPress={(e: any) => { </s> feat: new prop resolution cheanges in menu </s> remove disabled: props.isDisabled, </s> add disabled: isDisabled, </s> remove {...touchProps} </s> add {...resolvedProps} </s> remove if (!props.isDisabled) { </s> add if (!isDisabled) { </s> remove _pressed={_pressed} _focus={_focus} </s> add </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
disabled: isDisabled,
<mask> style={style} <mask> disabled={props.isDisabled} <mask> // TouchableHighlight doesn't announce disabled, even if disabled prop is set <mask> accessibilityState={{ <mask> disabled: props.isDisabled, <mask> }} <mask> onPress={(e: any) => { <mask> if (!props.isDisabled) { <mask> onPress && onPress(e); <mask> if (closeOnSelect) { </s> feat: new prop resolution cheanges in menu </s> remove disabled={props.isDisabled} </s> add disabled={isDisabled} </s> remove if (!props.isDisabled) { </s> add if (!isDisabled) { </s> remove {...touchProps} </s> add {...resolvedProps} </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues]; </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, });
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
if (!isDisabled) {
<mask> accessibilityState={{ <mask> disabled: props.isDisabled, <mask> }} <mask> onPress={(e: any) => { <mask> if (!props.isDisabled) { <mask> onPress && onPress(e); <mask> if (closeOnSelect) { <mask> onClose && onClose(); <mask> } <mask> } </s> feat: new prop resolution cheanges in menu </s> remove disabled: props.isDisabled, </s> add disabled: isDisabled, </s> remove disabled={props.isDisabled} </s> add disabled={isDisabled} </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItem.tsx
const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
<mask> import { MenuOptionContext } from './MenuOptionGroup'; <mask> import { useMenuOptionItem } from './useMenu'; <mask> import { HStack } from '../../primitives/Stack'; <mask> <mask> const MenuItemOption = ( <mask> { value, children, onPress, ...props }: IMenuItemOptionProps, <mask> ref: any <mask> ) => { <mask> const { values, onChange, type }: IMenuOptionContextProps = React.useContext( <mask> MenuOptionContext <mask> ); <mask> const modifiedOnPress = (e: any) => { <mask> onChange(value); </s> feat: new prop resolution cheanges in menu </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {}); </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove ...restProps </s> add children, ...props </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, });
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItemOption.tsx
<mask> onChange(value); <mask> onPress && onPress(e); <mask> }; <mask> <mask> const newProps = usePropsResolution('MenuItem', props); <mask> const isChecked = values.includes(value); <mask> const menuOptionProps = useMenuOptionItem({ isChecked, type }); <mask> <mask> return ( <mask> <MenuItem </s> feat: new prop resolution cheanges in menu </s> remove {...props} </s> add {...resolvedProps} </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove ...restProps </s> add children, ...props </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItemOption.tsx
{...resolvedProps}
<mask> const menuOptionProps = useMenuOptionItem({ isChecked, type }); <mask> <mask> return ( <mask> <MenuItem <mask> {...props} <mask> {...menuOptionProps} <mask> accessibilityRole="button" <mask> onPress={modifiedOnPress} <mask> ref={ref} <mask> > </s> feat: new prop resolution cheanges in menu </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add </s> remove <HStack alignItems="center" px={newProps.px} space={3}> <CheckIcon {...newProps._icon} opacity={isChecked ? 1 : 0} /> </s> add <HStack alignItems="center" px={resolvedProps.px} space={3}> <CheckIcon {...resolvedProps._icon} opacity={isChecked ? 1 : 0} /> </s> remove <Box {...restProps} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{restProps.children}</ScrollView> </s> add <Box {...props} {...menuProps} {...typeaheadProps} ref={menuRef}> <ScrollView>{children}</ScrollView> </s> remove {...restProps} </s> add {...props} </s> remove const { _title, ...newProps } = usePropsResolution('MenuGroup', {}); </s> add const { _title, ...resolvedProps } = usePropsResolution('MenuGroup', {});
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItemOption.tsx
<HStack alignItems="center" px={resolvedProps.px} space={3}> <CheckIcon {...resolvedProps._icon} opacity={isChecked ? 1 : 0} />
<mask> accessibilityRole="button" <mask> onPress={modifiedOnPress} <mask> ref={ref} <mask> > <mask> <HStack alignItems="center" px={newProps.px} space={3}> <mask> <CheckIcon {...newProps._icon} opacity={isChecked ? 1 : 0} /> <mask> <Box>{children}</Box> <mask> </HStack> <mask> </MenuItem> <mask> ); <mask> }; </s> feat: new prop resolution cheanges in menu </s> remove {...props} </s> add {...resolvedProps} </s> remove {...restProps} </s> add {...props} </s> remove let [internalValues, setValues] = React.useState<Array<string | number>>( </s> add const [internalValues, setValues] = React.useState<Array<string | number>>( </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuItemOption.tsx
const internalDefaultValue = defaultValue
<mask> const MenuOptionGroup = ( <mask> { type, defaultValue, value, onChange, ...props }: IMenuOptionGroupProps, <mask> ref?: any <mask> ) => { <mask> let internalDefaultValue = defaultValue <mask> ? Array.isArray(defaultValue) <mask> ? defaultValue <mask> : [defaultValue] <mask> : []; <mask> </s> feat: new prop resolution cheanges in menu </s> remove let [internalValues, setValues] = React.useState<Array<string | number>>( </s> add const [internalValues, setValues] = React.useState<Array<string | number>>( </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove ...restProps </s> add ...props </s> remove { children, onPress, style, textValue, ...props }: IMenuItemProps, </s> add { children, isDisabled, onPress, style, textValue, ...props }: IMenuItemProps, </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuOptionGroup.tsx
const [internalValues, setValues] = React.useState<Array<string | number>>(
<mask> ? defaultValue <mask> : [defaultValue] <mask> : []; <mask> <mask> let [internalValues, setValues] = React.useState<Array<string | number>>( <mask> internalDefaultValue <mask> ); <mask> onChange = (newValue: string | number) => { <mask> if (type === 'checkbox') { <mask> let newValues = [...internalValues]; </s> feat: new prop resolution cheanges in menu </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues]; </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add </s> remove const { transition, ...newProps } = usePropsResolution('Menu', restProps); </s> add const { transition, ...resolvedProps } = usePropsResolution('Menu', props); </s> remove let focusManager = useFocusManager(); let onKeyDown = (e: KeyboardEvent) => { </s> add const focusManager = useFocusManager(); const onKeyDown = (e: KeyboardEvent) => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuOptionGroup.tsx
const newValues = [...internalValues];
<mask> internalDefaultValue <mask> ); <mask> onChange = (newValue: string | number) => { <mask> if (type === 'checkbox') { <mask> let newValues = [...internalValues]; <mask> if (internalValues.includes(newValue)) { <mask> newValues.splice(newValues.indexOf(newValue), 1); <mask> setValues(newValues); <mask> } else { <mask> newValues.push(newValue); </s> feat: new prop resolution cheanges in menu </s> remove let [internalValues, setValues] = React.useState<Array<string | number>>( </s> add const [internalValues, setValues] = React.useState<Array<string | number>>( </s> remove let internalDefaultValue = defaultValue </s> add const internalDefaultValue = defaultValue </s> remove const newProps = usePropsResolution('MenuItem', props); </s> add const { _text, ...resolvedProps } = usePropsResolution('MenuItem', props, { isDisabled, }); </s> remove if (!props.isDisabled) { </s> add if (!isDisabled) { </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/MenuOptionGroup.tsx
const focusManager = useFocusManager(); const onKeyDown = (e: KeyboardEvent) => {
<mask> }; <mask> }; <mask> <mask> export const useMenu = () => { <mask> let focusManager = useFocusManager(); <mask> let onKeyDown = (e: KeyboardEvent) => { <mask> switch (e.key) { <mask> case 'ArrowDown': { <mask> e.preventDefault(); <mask> focusManager.focusNext({ wrap: true }); <mask> break; </s> feat: new prop resolution cheanges in menu </s> remove let updatedTrigger = () => { </s> add const updatedTrigger = () => { </s> remove let allProps = { ...newProps, ...(newProps.isDisabled ? newProps._disabled : {}), }; const { _text, _pressed, _focus, ...touchProps } = allProps; </s> add </s> remove let newValues = [...internalValues]; </s> add const newValues = [...internalValues]; </s> remove const MenuItemOption = ( { value, children, onPress, ...props }: IMenuItemOptionProps, ref: any ) => { </s> add const MenuItemOption = (props: IMenuItemOptionProps, ref: any) => { const { value, children, onPress, ...resolvedProps } = usePropsResolution( 'MenuItem', props ); </s> remove ...restProps </s> add children, ...props
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/500b9632ba9b4731227db8e2fbd26e13535864e3
src/components/composites/Menu/useMenu.tsx
<FormControl isDisabled>
<mask> export const Example = () => { <mask> const [groupValue, setGroupValue] = React.useState('1'); <mask> return ( <mask> <Container> <mask> <FormControl isInvalid> <mask> <FormControl.Label _text={{ fontSize: 'lg', bold: true }}> <mask> Select Prize <mask> </FormControl.Label> <mask> <Radio.Group <mask> name="exampleGroup" </s> fix: formcontrol disabled on radiogroup fixed </s> remove const { inputProps } = useRadio(props, contextState.state ?? {}, inputRef); </s> add const { inputProps } = useRadio( { ...props, ...combinedProps }, contextState.state ?? {}, inputRef ); </s> remove { ...props, 'aria-label': props.accessibilityLabel, children }, </s> add { ...combinedProps, ...props, 'aria-label': props.accessibilityLabel, children, }, </s> remove combinedProps, </s> add { ...combinedProps, ...RadioContext, },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/5023320d034c835e96753372f45b48b022a5aec7
example/storybook/stories/components/primitives/Radio/formControlled.tsx
const { inputProps } = useRadio( { ...props, ...combinedProps }, contextState.state ?? {}, inputRef );
<mask> ...combinedProps <mask> } = combineContextAndProps(contextState, props); <mask> <mask> const inputRef = React.useRef(null); <mask> const { inputProps } = useRadio(props, contextState.state ?? {}, inputRef); <mask> const { disabled: isDisabled, checked: isChecked } = inputProps; <mask> <mask> const { <mask> onPressIn, <mask> onPressOut, </s> fix: formcontrol disabled on radiogroup fixed </s> remove { ...props, 'aria-label': props.accessibilityLabel, children }, </s> add { ...combinedProps, ...props, 'aria-label': props.accessibilityLabel, children, }, </s> remove combinedProps, </s> add { ...combinedProps, ...RadioContext, }, </s> remove <FormControl isInvalid> </s> add <FormControl isDisabled>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/5023320d034c835e96753372f45b48b022a5aec7
src/components/primitives/Radio/Radio.tsx
{ ...combinedProps, ...props, 'aria-label': props.accessibilityLabel, children, },
<mask> } = combineContextAndProps(contextState, props); <mask> <mask> const inputRef = React.useRef(null); <mask> const { inputProps } = useRadio( <mask> { ...props, 'aria-label': props.accessibilityLabel, children }, <mask> contextState.state ?? {}, <mask> inputRef <mask> ); <mask> const { disabled: isDisabled, checked: isChecked } = inputProps; <mask> </s> fix: formcontrol disabled on radiogroup fixed </s> remove const { inputProps } = useRadio(props, contextState.state ?? {}, inputRef); </s> add const { inputProps } = useRadio( { ...props, ...combinedProps }, contextState.state ?? {}, inputRef ); </s> remove combinedProps, </s> add { ...combinedProps, ...RadioContext, }, </s> remove <FormControl isInvalid> </s> add <FormControl isDisabled>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/5023320d034c835e96753372f45b48b022a5aec7
src/components/primitives/Radio/Radio.web.tsx
{ ...combinedProps, ...RadioContext, },
<mask> }); <mask> <mask> const { _interactionBox, _icon, ...resolvedProps } = usePropsResolution( <mask> 'Radio', <mask> combinedProps, <mask> { <mask> isInvalid, <mask> isReadOnly, <mask> isFocusVisible, <mask> isDisabled, </s> fix: formcontrol disabled on radiogroup fixed </s> remove const { inputProps } = useRadio(props, contextState.state ?? {}, inputRef); </s> add const { inputProps } = useRadio( { ...props, ...combinedProps }, contextState.state ?? {}, inputRef ); </s> remove { ...props, 'aria-label': props.accessibilityLabel, children }, </s> add { ...combinedProps, ...props, 'aria-label': props.accessibilityLabel, children, }, </s> remove <FormControl isInvalid> </s> add <FormControl isDisabled>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/5023320d034c835e96753372f45b48b022a5aec7
src/components/primitives/Radio/Radio.web.tsx
import { Platform } from 'react-native';
<mask> import React from 'react'; <mask> import Flex from '../../primitives/Flex'; <mask> import type { IBreadcrumbItemProps } from './types'; <mask> <mask> const BreadcrumbItem = (props: IBreadcrumbItemProps) => { </s> fix: aria-current pass from breadcrumitem </s> remove key: `breadcrumb-item-${index}`, _text: { </s> add 'key': `breadcrumb-item-${index}`, '_text': { </s> remove __isCurrentPage?: boolean; </s> add </s> remove aria-current={props.__isCurrentPage ? 'page' : undefined} </s> add </s> remove __isCurrentPage: isCurrentPage, </s> add 'aria-current': Platform.OS === 'web' && isCurrentPage ? 'page' : undefined,
[ "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/520c7d373b8631b9fd90f402954f4af3136ea32f
src/components/composites/Breadcrumb/BreadcrumbItem.tsx
'key': `breadcrumb-item-${index}`, '_text': {
<mask> return ( <mask> <Flex {...remainingProps}> <mask> {React.Children.map(children, (child: any, index: number) => <mask> React.cloneElement(child, { <mask> key: `breadcrumb-item-${index}`, <mask> _text: { <mask> ..._text, //taken out empty _text prop from props <mask> fontWeight: isCurrentPage ? 'bold' : undefined, <mask> }, <mask> ...{ <mask> isUnderlined: false, </s> fix: aria-current pass from breadcrumitem </s> remove __isCurrentPage: isCurrentPage, </s> add 'aria-current': Platform.OS === 'web' && isCurrentPage ? 'page' : undefined, </s> remove aria-current={props.__isCurrentPage ? 'page' : undefined} </s> add </s> remove __isCurrentPage?: boolean; </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/520c7d373b8631b9fd90f402954f4af3136ea32f
src/components/composites/Breadcrumb/BreadcrumbItem.tsx
'aria-current': Platform.OS === 'web' && isCurrentPage ? 'page' : undefined,
<mask> ...{ <mask> isUnderlined: false, <mask> }, <mask> ...remainingProps, <mask> __isCurrentPage: isCurrentPage, <mask> }) <mask> )} <mask> </Flex> <mask> ); <mask> }; </s> fix: aria-current pass from breadcrumitem </s> remove key: `breadcrumb-item-${index}`, _text: { </s> add 'key': `breadcrumb-item-${index}`, '_text': { </s> remove __isCurrentPage?: boolean; </s> add </s> remove aria-current={props.__isCurrentPage ? 'page' : undefined} </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/520c7d373b8631b9fd90f402954f4af3136ea32f
src/components/composites/Breadcrumb/BreadcrumbItem.tsx
<mask> {...linkTextProps} <mask> {...linkProps} <mask> {...newProps} <mask> ref={ref} <mask> aria-current={props.__isCurrentPage ? 'page' : undefined} <mask> flexDirection="row" <mask> style={style} <mask> > <mask> {children} <mask> </Text> </s> fix: aria-current pass from breadcrumitem </s> remove __isCurrentPage: isCurrentPage, </s> add 'aria-current': Platform.OS === 'web' && isCurrentPage ? 'page' : undefined, </s> remove key: `breadcrumb-item-${index}`, _text: { </s> add 'key': `breadcrumb-item-${index}`, '_text': { </s> remove __isCurrentPage?: boolean; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/520c7d373b8631b9fd90f402954f4af3136ea32f
src/components/primitives/Link/index.tsx
<mask> size?: '2xl' | 'xl' | 'lg' | 'md' | 'sm' | 'xsm' | number; <mask> isUnderlined?: boolean | undefined; <mask> onClick?: any; <mask> isExternal?: boolean; <mask> __isCurrentPage?: boolean; <mask> }; <mask> <mask> export type IUseLinkProp = { <mask> href?: string; <mask> isExternal?: boolean; </s> fix: aria-current pass from breadcrumitem </s> remove __isCurrentPage: isCurrentPage, </s> add 'aria-current': Platform.OS === 'web' && isCurrentPage ? 'page' : undefined, </s> remove key: `breadcrumb-item-${index}`, _text: { </s> add 'key': `breadcrumb-item-${index}`, '_text': { </s> remove aria-current={props.__isCurrentPage ? 'page' : undefined} </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/520c7d373b8631b9fd90f402954f4af3136ea32f
src/components/primitives/Link/types.ts
export const Example = () => {
<mask> var re = /\S+@\S+\.\S+/; <mask> return re.test(email); <mask> } <mask> <mask> export default function () { <mask> const formik = useFormik<IFormFields>({ <mask> initialValues: { <mask> firstName: '', <mask> lastName: '', <mask> email: '', </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/Formik/Basic.tsx
<Button onPress={() => handleSubmit}>Submit</Button>
<mask> /> <mask> <FormControl.ErrorMessage>{errors.email}</FormControl.ErrorMessage> <mask> </FormControl> <mask> <mask> <Button onPress={handleSubmit}>Submit</Button> <mask> </> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/Formik/Basic.tsx
};
<mask> <mask> <Button onPress={handleSubmit}>Submit</Button> <mask> </> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove <Button onPress={handleSubmit}>Submit</Button> </s> add <Button onPress={() => handleSubmit}>Submit</Button> </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/Formik/Basic.tsx
import { Example as Basic } from './Basic';
<mask> import React from 'react'; <mask> import { storiesOf } from '@storybook/react-native'; <mask> import { withKnobs } from '@storybook/addon-knobs'; <mask> import Wrapper from './../../components/Wrapper'; <mask> import Basic from './Basic'; <mask> <mask> storiesOf('Formik', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Basic', () => <Basic />); </s> fix: updated general examples and also some Icons as well (#3695) </s> remove import Basic from './Basic'; </s> add import { Example as Basic } from './Basic'; </s> remove import Basic from './Basic'; </s> add import { Example as Basic } from './Basic'; </s> remove import Basic from './Basic'; </s> add import { Example as Basic } from './Basic'; </s> remove import Basic from './Basic'; </s> add import { Example as Basic } from './Basic'; </s> remove import Basic from './Basic'; import Variations from './Variations'; </s> add import { Example as Basic } from './Basic'; import { Example as Variations } from './Variations';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/Formik/index.tsx
import { Ionicons, EvilIcons, AntDesign } from '@expo/vector-icons';
<mask> Icon, <mask> } from 'native-base'; <mask> import React from 'react'; <mask> <mask> export const Example = () => { <mask> const [language, setLanguage] = React.useState('eng'); <mask> const [currency, setCurrency] = React.useState('usd'); <mask> return ( <mask> <VStack width="60%" space={4} my={6}> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
export const Example = () => {
<mask> Icon, <mask> } from 'native-base'; <mask> import React from 'react'; <mask> <mask> export default function () { <mask> const [language, setLanguage] = React.useState('eng'); <mask> const [currency, setCurrency] = React.useState('usd'); <mask> return ( <mask> <VStack width="60%" space={4} my={6}> <mask> <Heading bold fontSize="2xl" pb={4}> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
as={<Ionicons name="md-cloud-upload-sharp" />}
<mask> <Button.Group space={5}> <mask> <Button <mask> startIcon={ <mask> <Icon <mask> type="Ionicons" <mask> name="md-cloud-upload-sharp" <mask> size={5} <mask> /> <mask> } <mask> colorScheme="light" <mask> > </s> fix: updated general examples and also some Icons as well (#3695) </s> remove name="google" type="AntDesign" </s> add as={<AntDesign name="google" />} </s> remove <Button startIcon={<Icon name="sc-github" type="EvilIcons" />}> </s> add <Button startIcon={<Icon as={<EvilIcons name="sc-github" />} />}> </s> remove <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-up" />} size={6} /> </s> remove <Icon name="chess-knight" type="MaterialCommunityIcons" /> </s> add <Icon as={<MaterialCommunityIcons name="chess-knight" />} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={6} />
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
<Button startIcon={<Icon as={<EvilIcons name="sc-github" />} />}>
<mask> </Text> <mask> </Box> <mask> <Box flex={2}> <mask> <Button.Group variant="outline" colorScheme="light" space={2}> <mask> <Button startIcon={<Icon name="sc-github" type="EvilIcons" />}> <mask> Connect Github <mask> </Button> <mask> <Button <mask> startIcon={ <mask> <Icon </s> fix: updated general examples and also some Icons as well (#3695) </s> remove type="Ionicons" name="md-cloud-upload-sharp" </s> add as={<Ionicons name="md-cloud-upload-sharp" />} </s> remove name="google" type="AntDesign" </s> add as={<AntDesign name="google" />} </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
as={<AntDesign name="google" />}
<mask> </Button> <mask> <Button <mask> startIcon={ <mask> <Icon <mask> name="google" <mask> type="AntDesign" <mask> color="red.400" <mask> size={5} <mask> /> <mask> } <mask> > </s> fix: updated general examples and also some Icons as well (#3695) </s> remove type="Ionicons" name="md-cloud-upload-sharp" </s> add as={<Ionicons name="md-cloud-upload-sharp" />} </s> remove <Button startIcon={<Icon name="sc-github" type="EvilIcons" />}> </s> add <Button startIcon={<Icon as={<EvilIcons name="sc-github" />} />}> </s> remove } </s> add }; </s> remove <Icon name="github" type="AntDesign" mr={1} size="xs" /> </s> add <Icon as={<AntDesign name="github" />} mr={1} size="xs" /> </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
};
<mask> </HStack> <mask> </Box> <mask> </VStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/DemoForm.tsx
export const Example = () => {
<mask> interface IFormInput { <mask> version: boolean; <mask> } <mask> <mask> export default function () { <mask> const { control, handleSubmit, errors } = useForm<IFormInput>(); <mask> const onSubmit = (data: IFormInput) => { <mask> console.log('submiting with ', data); <mask> }; <mask> return ( </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/NumberInput.tsx
};
<mask> Submit <mask> </Button> <mask> </VStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/NumberInput.tsx
export const Example = () => {
<mask> interface IFormInput { <mask> otp: string; <mask> } <mask> <mask> export default function () { <mask> const { control, handleSubmit, errors } = useForm<IFormInput>(); <mask> const onSubmit = (data: IFormInput) => { <mask> console.log('submiting with ', data); <mask> }; <mask> return ( </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/PinInput.tsx
};
<mask> Submit <mask> </Button> <mask> </VStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/PinInput.tsx
import { MaterialCommunityIcons } from '@expo/vector-icons';
<mask> import React from 'react'; <mask> import { useForm, Controller } from 'react-hook-form'; <mask> <mask> interface IFormInput { <mask> hobbies: string; <mask> gender: number; </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
export const Example = () => {
<mask> hobbies: string; <mask> gender: number; <mask> } <mask> <mask> export default function () { <mask> const { control, handleSubmit, errors } = useForm<IFormInput>(); <mask> const onSubmit = (data: IFormInput) => { <mask> console.log('submiting with ', data); <mask> }; <mask> return ( </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
<mask> > <mask> <Checkbox <mask> value="dart" <mask> colorScheme="orange" <mask> icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Darts</Text> <mask> </Checkbox> <mask> <Checkbox <mask> value="movie" </s> fix: updated general examples and also some Icons as well (#3695) </s> remove icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />} </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />} </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
<mask> </Checkbox> <mask> <Checkbox <mask> value="movie" <mask> colorScheme="dark" <mask> icon={<Icon name="bat" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Movie</Text> <mask> </Checkbox> <mask> <Checkbox <mask> colorScheme="red" </s> fix: updated general examples and also some Icons as well (#3695) </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />} </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />} </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
<mask> </Checkbox> <mask> <Checkbox <mask> colorScheme="red" <mask> value="camping" <mask> icon={<Icon name="campfire" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Camping</Text> <mask> </Checkbox> <mask> <Checkbox <mask> value="chess" </s> fix: updated general examples and also some Icons as well (#3695) </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />} </s> remove icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />} </s> remove <Icon name="chess-knight" type="MaterialCommunityIcons" /> </s> add <Icon as={<MaterialCommunityIcons name="chess-knight" />} /> </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
<Icon as={<MaterialCommunityIcons name="chess-knight" />} />
<mask> <Checkbox <mask> value="chess" <mask> colorScheme="blue" <mask> icon={ <mask> <Icon name="chess-knight" type="MaterialCommunityIcons" /> <mask> } <mask> > <mask> <Text mx={2}>Chess</Text> <mask> </Checkbox> <mask> </Checkbox.Group> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove icon={<Icon name="chess-knight" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />} </s> remove icon={<Icon name="campfire" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />} </s> remove icon={<Icon name="bullseye" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />} </s> remove icon={<Icon name="bat" type="MaterialCommunityIcons" />} </s> add icon={<Icon as={<MaterialCommunityIcons name="bat" />} />} </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
};
<mask> Submit <mask> </Button> <mask> </VStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
import { MaterialIcons } from '@expo/vector-icons';
<mask> import { VStack, Button, FormControl, Select, Icon } from 'native-base'; <mask> import React from 'react'; <mask> import { useForm, Controller } from 'react-hook-form'; <mask> <mask> interface IFormInput { <mask> language: number; <mask> } <mask> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
export const Example = () => {
<mask> interface IFormInput { <mask> language: number; <mask> } <mask> <mask> export default function () { <mask> const { control, handleSubmit, errors } = useForm<IFormInput>(); <mask> const onSubmit = (data: IFormInput) => { <mask> console.log('submiting with ', data); <mask> }; <mask> return ( </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
<mask> width={150} <mask> onValueChange={(itemValue: string) => { <mask> onChange(itemValue); <mask> }} <mask> selectedItemBg={'teal.400'} <mask> dropdownOpenIcon={ <mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> <mask> } <mask> dropdownCloseIcon={ <mask> <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-up" />} size={6} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={6} /> </s> remove <Icon name="arrow-drop-up" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-up" />} size={12} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
<Icon as={<MaterialIcons name="arrow-drop-up" />} size={6} />
<mask> onChange(itemValue); <mask> }} <mask> selectedItemBg={'teal.400'} <mask> dropdownOpenIcon={ <mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> <mask> } <mask> dropdownCloseIcon={ <mask> <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> <mask> } <mask> > </s> fix: updated general examples and also some Icons as well (#3695) </s> remove selectedItemBg={'teal.400'} </s> add </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={6} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} /> </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
<Icon as={<MaterialIcons name="arrow-drop-down" />} size={6} />
<mask> dropdownOpenIcon={ <mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> <mask> } <mask> dropdownCloseIcon={ <mask> <Icon name="arrow-drop-down" type="MaterialIcons" size={6} /> <mask> } <mask> > <mask> <Select.Item label="JavaScript" value="js" /> <mask> <Select.Item label="TypeScript" value="ts" /> <mask> <Select.Item label="Java" value="java" /> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove <Icon name="arrow-drop-up" type="MaterialIcons" size={6} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-up" />} size={6} /> </s> remove selectedItemBg={'teal.400'} </s> add </s> remove } </s> add }; </s> remove } </s> add }; </s> remove <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> </s> add <Icon as={<MaterialIcons name="arrow-drop-down" />} size={12} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
};
<mask> Submit <mask> </Button> <mask> </VStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Select.tsx
export const Example = () => {
<mask> interface IFormInput { <mask> like: number; <mask> } <mask> <mask> export default function () { <mask> const { control, handleSubmit, errors } = useForm<IFormInput>(); <mask> const onSubmit = (data: IFormInput) => { <mask> console.log('submiting with ', data); <mask> }; <mask> return ( </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/community-integrations/ReactHookForm/Slider.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion index={[0, 1]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Basic.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Basic.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion allowMultiple defaultIndex={[0, 2]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/DefaultIndex.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/DefaultIndex.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion allowMultiple> <mask> <Accordion.Item> <mask> <Accordion.Summary _expanded={{ backgroundColor: 'orange.300' }}> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/ExpandedStyle.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/ExpandedStyle.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion allowMultiple> <mask> <Accordion.Item> <mask> <Accordion.Summary> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Multiple.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Multiple.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> import { boolean } from '@storybook/addon-knobs'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion <mask> allowMultiple={boolean('allowMultiple', false)} <mask> allowToggle={boolean('allowToggle', false)} </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Playground.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Playground.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Accordion, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box m={3}> <mask> <Accordion allowToggle defaultIndex={[2]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Toggle.tsx
};
<mask> </Accordion.Item> <mask> </Accordion> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695)
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Accordion/Toggle.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Alert, Box, CloseIcon, IconButton } from 'native-base'; <mask> import { select } from '@storybook/addon-knobs'; <mask> <mask> export default function () { <mask> return ( <mask> <Box mx={3} w="90%"> <mask> <Alert <mask> status={select( <mask> 'status', </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Alert/knobEnabled.tsx
};
<mask> <Alert.Description>Description </Alert.Description> <mask> </Alert> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Alert/knobEnabled.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { AlertDialog, Button, Center } from 'native-base'; <mask> import type { TouchableOpacity } from 'react-native'; <mask> <mask> export default function () { <mask> const [isOpen, setIsOpen] = React.useState(false); <mask> const onClose = () => setIsOpen(false); <mask> const cancelRef = React.useRef<TouchableOpacity>(null); <mask> return ( <mask> <Center> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AlertDialog/Basic.tsx
};
<mask> </AlertDialog.Content> <mask> </AlertDialog> <mask> </Center> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AlertDialog/Basic.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { AlertDialog, Button, Center, Input } from 'native-base'; <mask> import type { TouchableOpacity } from 'react-native'; <mask> <mask> export default function () { <mask> const [isOpen, setIsOpen] = React.useState(false); <mask> const onClose = () => setIsOpen(false); <mask> const cancelRef = React.useRef<TouchableOpacity>(null); <mask> return ( <mask> <Center> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AlertDialog/Transition.tsx
};
<mask> </AlertDialog> <mask> <Button onPress={() => setIsOpen(!isOpen)}>Discard</Button> <mask> </Center> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove <Button onPress={handleSubmit}>Submit</Button> </s> add <Button onPress={() => handleSubmit}>Submit</Button> </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AlertDialog/Transition.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { AspectRatio, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <AspectRatio height={200} bg="black"> <mask> <Box bg="red.400" /> <mask> </AspectRatio> <mask> ); </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AspectRatio/Basic.tsx
};
<mask> <AspectRatio height={200} bg="black"> <mask> <Box bg="red.400" /> <mask> </AspectRatio> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AspectRatio/Basic.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { AspectRatio, Image } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <AspectRatio ratio={9 / 10} height={400}> <mask> <Image <mask> resizeMode="cover" <mask> source={{ </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AspectRatio/EmbedImage.tsx
};
<mask> alt="nativebase tiny logo" <mask> /> <mask> </AspectRatio> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/AspectRatio/EmbedImage.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <HStack> <mask> <Avatar <mask> source={{ uri: 'https://alpha.nativebase.io/img/native-base-icon.png' }} <mask> > </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => { </s> remove name="Sanket Sahu" </s> add
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
};
<mask> <Avatar.Badge borderColor="papayawhip" bg="tomato" /> <mask> </Avatar> <mask> </HStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <Avatar.Group size="lg" max={4}> <mask> <Avatar <mask> source={{ <mask> uri: </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
};
<mask> GG <mask> </Avatar> <mask> </Avatar.Group> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <HStack> <mask> <Avatar mr={1} source={{ uri: 'https://bit.ly/broken-link' }}> <mask> RS <mask> </Avatar> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/Fallback.tsx
};
<mask> <Avatar source={{ uri: 'https://bit.ly/broken-link' }}>MR</Avatar> <mask> <Avatar source={{ uri: 'https://bit.ly/broken-link' }} /> <mask> </HStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove name="Rehman Baig" </s> add </s> remove name="Suraj Ahmed" </s> add </s> remove name="Ankur Kedia" </s> add </s> remove name="Rohit Singh" </s> add </s> remove name="Gaurav Guha" </s> add
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/Fallback.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar } from 'native-base'; <mask> import { select, number, text } from '@storybook/addon-knobs'; <mask> <mask> export default function () { <mask> return ( <mask> <Avatar <mask> source={{ <mask> uri: text( <mask> 'source', </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/knobEnabled.tsx
};
<mask> boxSize={number('badgeSize', 5)} <mask> /> <mask> </Avatar> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/knobEnabled.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <HStack space={1}> <mask> <Avatar <mask> size="xs" <mask> source={{ </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/size.tsx
};
<mask> RB <mask> </Avatar> <mask> </HStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/size.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <HStack space={2}> <mask> <Avatar <mask> source={{ <mask> uri: </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove } </s> add }; </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/usage.tsx
};
<mask> MR <mask> </Avatar> <mask> </HStack> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Avatar/usage.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Breadcrumb, Box, Heading } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box> <mask> <Heading mb={4}>Default Breadcrumb</Heading> <mask> <Breadcrumb> <mask> <Breadcrumb.Item isCurrentPage> </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add import { MaterialCommunityIcons, MaterialIcons, AntDesign, } from '@expo/vector-icons'; export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Breadcrumb/Basic.tsx
};
<mask> </Breadcrumb.Item> <mask> </Breadcrumb> <mask> </Box> <mask> ); <mask> } </s> fix: updated general examples and also some Icons as well (#3695) </s> remove } </s> add }; </s> remove } </s> add }; </s> remove } </s> add }; </s> remove <Icon name="github" type="AntDesign" mr={1} size="xs" /> </s> add <Icon as={<AntDesign name="github" />} mr={1} size="xs" /> </s> remove } </s> add };
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Breadcrumb/Basic.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { Breadcrumb, Box, Heading, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box> <mask> <Heading mb={4}>Breadcrumb with Custom Separator</Heading> <mask> <Breadcrumb <mask> spacing={1} </s> fix: updated general examples and also some Icons as well (#3695) </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add import { MaterialCommunityIcons, MaterialIcons, AntDesign, } from '@expo/vector-icons'; export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => { </s> remove export default function () { </s> add export const Example = () => {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/522f5c8a0f8c8149a6c16a01f6638b3db9101ef0
example/storybook/stories/components/composites/Breadcrumb/ComponentSeparator.tsx