docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
sequencelengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
/** Prop applied to change slider track height */ sliderTrackHeight?: ResponsiveValue<ISizes | (string & {}) | number>; /**Prop applied to change size of slider thumb */ thumbSize?: ResponsiveValue<ISizes | (string & {}) | number>; /** * You can style interaction box around the checkbox using this. */ _interactionBox?: Omit<Partial<ISliderThumbProps>, '_interactionBox'>;
<mask> /** Props applied if isReadOnly is true. */ <mask> _readOnly?: any; <mask> } <mask> <mask> export interface ISliderTrackProps <mask> extends InterfaceBoxProps<ISliderTrackProps> { <mask> /** Whether the whole Slider is readonly. */ </s> feat: sliderTrackHeight, thumbSize, interactionBox types
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f1cc307b06d9529796b12756bfdd94728226de7
src/components/primitives/Slider/types.tsx
/** * Props to be passed to the slider thumb when button is hovered. */ _hover?: Omit<Partial<ISliderThumbProps>, '_hover'>; /** * Props to be passed to the slider thumb when button is pressed. */ _pressed?: Omit<Partial<ISliderThumbProps>, '_pressed'>; /** * Props to be passed to the slider thumb when button is focused. */ _focus?: Omit<Partial<ISliderThumbProps>, '_focus'>;
<mask> /** Props applied if isReadOnly is true. */ <mask> _readOnly?: any; <mask> } <mask> <mask> export type ISliderComponentType = (( <mask> props: ISliderProps & { ref?: MutableRefObject<any> } <mask> ) => JSX.Element) & { </s> feat: sliderTrackHeight, thumbSize, interactionBox types
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f1cc307b06d9529796b12756bfdd94728226de7
src/components/primitives/Slider/types.tsx
<mask> import { <mask> VStack, <mask> Button, <mask> FormControl, <mask> RadioGroup, <mask> Radio, <mask> Checkbox, <mask> Text, <mask> Icon, <mask> } from 'native-base'; </s> fix: updated api, example and type and test </s> remove import { Container, FormControl, Radio, RadioGroup, Text } from 'native-base'; </s> add import { Container, FormControl, Radio, Text } from 'native-base'; </s> remove RadioGroup, </s> add </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
<Radio.Group
<mask> <FormControl.Label>Gender</FormControl.Label> <mask> <Controller <mask> control={control} <mask> render={({ onChange }) => ( <mask> <RadioGroup <mask> name="gender" <mask> flexDirection="row" <mask> onChange={(val) => onChange(val)} <mask> > <mask> <Radio value="male" colorScheme="blue"> </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup </s> add <Radio.Group </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="female" colorScheme="pink"> <mask> <Text mx={2}>Female</Text> <mask> </Radio> <mask> </RadioGroup> <mask> )} <mask> name="gender" <mask> rules={{ required: 'Gender is required' }} <mask> /> <mask> <FormControl.ErrorMessage> </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/community-integrations/ReactHookForm/RadioAndCheckbox.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> import type { IRadioValue } from 'native-base'; <mask> <mask> export default function ControlledRadio() { <mask> const [value, setValue] = React.useState<IRadioValue>('one'); <mask> </s> fix: updated api, example and type and test </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove <RadioGroup </s> add <Radio.Group </s> remove import RadioGroup from '../RadioGroup'; </s> add </s> remove import { RadioGroup, Radio, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/controlledRadio.tsx
<Radio.Group
<mask> export default function ControlledRadio() { <mask> const [value, setValue] = React.useState<IRadioValue>('one'); <mask> <mask> return ( <mask> <RadioGroup <mask> name="myRadioGroup" <mask> value={value} <mask> onChange={(nextValue) => { <mask> setValue(nextValue); <mask> }} </s> fix: updated api, example and type and test </s> remove <RadioGroup </s> add <Radio.Group </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup value={value} onChange={setValue} name="exampleGroup"> </s> add <Radio.Group value={value} onChange={setValue} name="exampleGroup"> </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove <RadioGroup </s> add <Radio.Group
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/controlledRadio.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="two"> <mask> <Text>Two</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/controlledRadio.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="exampleGroup"> <mask> <Radio colorScheme="red" value="1"> </s> fix: updated api, example and type and test </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeColor.tsx
<Radio.Group defaultValue="1" name="exampleGroup">
<mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="exampleGroup"> <mask> <Radio colorScheme="red" value="1"> <mask> <Text mx={2}>red</Text> <mask> </Radio> <mask> <Radio colorScheme="dark" value="2"> <mask> <Text mx={2}>dark</Text> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeColor.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio colorScheme="success" value="3"> <mask> <Text mx={2}>success</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeColor.tsx
import { Radio, Icon } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text, Icon } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> <mask> <Radio </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup"> </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { RadioGroup, Radio, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
<Radio.Group defaultValue="1" size="lg" name="exampleGroup">
<mask> import { Radio, RadioGroup, Text, Icon } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> <mask> <Radio <mask> colorScheme="green" <mask> value="1" <mask> icon={<Icon name="alien" type="MaterialCommunityIcons" />} <mask> > </s> fix: updated api, example and type and test </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove <Text mx={2}>Alien</Text> </s> add Alien </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
_text={{ mx: 2 }}
<mask> export default function () { <mask> return ( <mask> <Radio.Group defaultValue="1" size="lg" name="exampleGroup"> <mask> <Radio <mask> colorScheme="green" <mask> value="1" <mask> icon={<Icon name="alien" type="MaterialCommunityIcons" />} <mask> > <mask> Alien </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup"> </s> remove <Text mx={2}>Alien</Text> </s> add Alien </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
Alien
<mask> colorScheme="green" <mask> value="1" <mask> icon={<Icon name="alien" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Alien</Text> <mask> </Radio> <mask> <Radio <mask> colorScheme="red" <mask> value="2" <mask> icon={<Icon name="fire" type="MaterialCommunityIcons" />} </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup"> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
_text={{ mx: 2 }}
<mask> > <mask> Alien <mask> </Radio> <mask> <Radio <mask> colorScheme="red" <mask> value="2" <mask> icon={<Icon name="fire" type="MaterialCommunityIcons" />} <mask> > </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Alien</Text> </s> add Alien </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
Fire
<mask> colorScheme="red" <mask> value="2" <mask> icon={<Icon name="fire" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Fire</Text> <mask> </Radio> <mask> <Radio <mask> colorScheme="warning" <mask> value="3" <mask> icon={<Icon name="exclamation" type="MaterialCommunityIcons" />} </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Alien</Text> </s> add Alien </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
_text={{ mx: 2 }}
<mask> </Radio> <mask> <Radio <mask> colorScheme="warning" <mask> value="3" <mask> icon={<Icon name="exclamation" type="MaterialCommunityIcons" />} <mask> > <mask> Warning <mask> </Radio> </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <Text mx={2}>Alien</Text> </s> add Alien
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
Warning
<mask> colorScheme="warning" <mask> value="3" <mask> icon={<Icon name="exclamation" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Warning</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove <Text mx={2}>Alien</Text> </s> add Alien
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
</Radio.Group>
<mask> icon={<Icon name="exclamation" type="MaterialCommunityIcons" />} <mask> > <mask> <Text mx={2}>Warning</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove <Text mx={2}>Fire</Text> </s> add Fire </s> remove <Text mx={2}>Alien</Text> </s> add Alien
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/customeIcon.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, Text, RadioGroup } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="exampleGroup"> <mask> <Radio value="1" isDisabled> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/disabled.tsx
<Radio.Group defaultValue="1" name="exampleGroup">
<mask> import { Radio, Text, RadioGroup } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="exampleGroup"> <mask> <Radio value="1" isDisabled> <mask> <Text mx={2}>First</Text> <mask> </Radio> <mask> <Radio value="2"> <mask> <Text mx={2}>Second</Text> </s> fix: updated api, example and type and test </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/disabled.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3"> <mask> <Text mx={2}>Third</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/disabled.tsx
import { Container, FormControl, Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Container, FormControl, Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <Container> <mask> <FormControl isRequired isInvalid> </s> fix: updated api, example and type and test </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/formControlled.tsx
<Radio.Group defaultValue="1" name="exampleGroup">
<mask> return ( <mask> <Container> <mask> <FormControl isRequired isInvalid> <mask> <FormControl.Label>Select One</FormControl.Label> <mask> <RadioGroup defaultValue="1" name="exampleGroup"> <mask> <Radio value="1"> <mask> <Text mx={2}>First</Text> <mask> </Radio> <mask> <Radio value="2"> <mask> <Text mx={2}>Second</Text> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Container, FormControl, Radio, RadioGroup, Text } from 'native-base'; </s> add import { Container, FormControl, Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/formControlled.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3"> <mask> <Text mx={2}>Third</Text> <mask> </Radio> <mask> </RadioGroup> <mask> <FormControl.HelperText> <mask> We'll keep this between us. <mask> </FormControl.HelperText> <mask> <FormControl.ErrorMessage>Something is wrong.</FormControl.ErrorMessage> <mask> </FormControl> </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/formControlled.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup name="exampleGroup"> <mask> <Radio value="test" isInvalid> </s> fix: updated api, example and type and test </s> remove <RadioGroup name="exampleGroup"> </s> add <Radio.Group name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Container, FormControl, Radio, RadioGroup, Text } from 'native-base'; </s> add import { Container, FormControl, Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/invalid.tsx
<Radio.Group name="exampleGroup">
<mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup name="exampleGroup"> <mask> <Radio value="test" isInvalid> <mask> <Text mx={2}>Invalid Radio</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Container, FormControl, Radio, RadioGroup, Text } from 'native-base'; </s> add import { Container, FormControl, Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/invalid.tsx
</Radio.Group>
<mask> <RadioGroup name="exampleGroup"> <mask> <Radio value="test" isInvalid> <mask> <Text mx={2}>Invalid Radio</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove <RadioGroup name="exampleGroup"> </s> add <Radio.Group name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/invalid.tsx
import { IRadioValue, Radio, Text, View } from 'native-base';
<mask> import React from 'react'; <mask> import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; <mask> import { boolean, select, text } from '@storybook/addon-knobs'; <mask> import { useState } from 'react'; <mask> <mask> export default function () { <mask> const [value, setValue] = useState<IRadioValue>(''); </s> fix: updated api, example and type and test </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { RadioGroup, Radio, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import RadioGroup from '../RadioGroup'; </s> add </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/playground.tsx
<Radio.Group value={value} onChange={setValue} name="exampleGroup">
<mask> const [value, setValue] = useState<IRadioValue>(''); <mask> <mask> return ( <mask> <View display="flex" justifyContent="space-between" alignItems="center"> <mask> <RadioGroup value={value} onChange={setValue} name="exampleGroup"> <mask> <Radio <mask> colorScheme={text('colorScheme', 'default')} <mask> size={select('size', ['sm', 'md', 'lg'], 'md')} <mask> isDisabled={boolean('isDisabled', false)} <mask> isInvalid={boolean('isInvalid', false)} </s> fix: updated api, example and type and test </s> remove <RadioGroup </s> add <Radio.Group </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup </s> add <Radio.Group </s> remove import RadioGroup from '../RadioGroup'; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/playground.tsx
</Radio.Group>
<mask> value={'awesome'} <mask> > <mask> <Text mx={2}>Are you Cool?</Text> <mask> </Radio> <mask> </RadioGroup> <mask> <Text>{'Yes, you are ' + value}</Text> <mask> </View> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/playground.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup name="exampleGroup" defaultValue="1"> <mask> <Radio value="1" colorScheme="red" size="sm"> </s> fix: updated api, example and type and test </s> remove <RadioGroup name="exampleGroup" defaultValue="1"> </s> add <Radio.Group name="exampleGroup" defaultValue="1"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/size.tsx
<Radio.Group name="exampleGroup" defaultValue="1">
<mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup name="exampleGroup" defaultValue="1"> <mask> <Radio value="1" colorScheme="red" size="sm"> <mask> <Text mx={2}>Small</Text> <mask> </Radio> <mask> <Radio value="2" colorScheme="green" size="md"> <mask> <Text mx={2}>Medium</Text> </s> fix: updated api, example and type and test </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <Text mx={2}>Alien</Text> </s> add Alien </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/size.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3" colorScheme="yellow" size="lg"> <mask> <Text mx={2}>Large</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/size.tsx
import { Radio, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="myRadioGroup"> <mask> <Radio value="1"> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/uncontrolledRadio.tsx
<Radio.Group defaultValue="1" name="myRadioGroup">
<mask> import { Radio, RadioGroup, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <RadioGroup defaultValue="1" name="myRadioGroup"> <mask> <Radio value="1"> <mask> <Text mx={2}>First</Text> <mask> </Radio> <mask> <Radio value="2"> <mask> <Text mx={2}>Second</Text> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/uncontrolledRadio.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3"> <mask> <Text mx={2}>Third</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/uncontrolledRadio.tsx
import { Radio, Icon } from 'native-base';
<mask> import React from 'react'; <mask> import { RadioGroup, Radio, Icon } from 'native-base'; <mask> <mask> export default function () { <mask> const myRef: any = React.useRef({}); <mask> <mask> return ( </s> fix: updated api, example and type and test </s> remove <RadioGroup </s> add <Radio.Group </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/withRef.tsx
<Radio.Group
<mask> export default function () { <mask> const myRef: any = React.useRef({}); <mask> <mask> return ( <mask> <RadioGroup <mask> name="exampleGroup" <mask> colorScheme="success" <mask> onChange={(value) => { <mask> if (value === '2') <mask> myRef?.current.setNativeProps({ backgroundColor: '#00de0050' }); </s> fix: updated api, example and type and test </s> remove import { RadioGroup, Radio, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove <RadioGroup </s> add <Radio.Group </s> remove <RadioGroup </s> add <Radio.Group </s> remove export { default as Radio } from './Radio'; export { default as RadioGroup } from './RadioGroup'; </s> add import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio }; </s> remove <RadioGroup name="exampleGroup" defaultValue="1"> </s> add <Radio.Group name="exampleGroup" defaultValue="1">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/withRef.tsx
</Radio.Group>
<mask> value="2" <mask> > <mask> Correct <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <Text mx={2}>Warning</Text> </s> add Warning </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
example/storybook/stories/components/primitives/Radio/withRef.tsx
import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio };
<mask> export { default as Radio } from './Radio'; <mask> export { default as RadioGroup } from './RadioGroup'; <mask> export type { <mask> IRadioProps, <mask> IRadioGroupProps, <mask> IRadioContext, <mask> IRadioValue, </s> fix: updated api, example and type and test </s> remove export { Radio, RadioGroup } from './Radio'; </s> add export { Radio } from './Radio'; </s> remove RadioGroup, </s> add </s> remove import RadioGroup from '../RadioGroup'; </s> add </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/index.tsx
<mask> import React from 'react'; <mask> import { fireEvent, render } from '@testing-library/react-native'; <mask> import { NativeBaseProvider } from 'native-base'; <mask> import RadioGroup from '../RadioGroup'; <mask> import { Radio } from '..'; <mask> import { Text } from '../..'; <mask> function RadiosGroup() { <mask> const [, setValue] = React.useState<any>('one'); <mask> return ( </s> fix: updated api, example and type and test </s> remove <RadioGroup </s> add <Radio.Group </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove export { default as Radio } from './Radio'; export { default as RadioGroup } from './RadioGroup'; </s> add import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio }; </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/test/radio.test.tsx
<Radio.Group
<mask> import { Text } from '../..'; <mask> function RadiosGroup() { <mask> const [, setValue] = React.useState<any>('one'); <mask> return ( <mask> <RadioGroup <mask> defaultValue="1" <mask> name="myRadioGroup" <mask> onChange={(nextValue) => { <mask> setValue(nextValue); <mask> }} </s> fix: updated api, example and type and test </s> remove <RadioGroup </s> add <Radio.Group </s> remove import RadioGroup from '../RadioGroup'; </s> add </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/test/radio.test.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3"> <mask> <Text mx={2}>Third</Text> <mask> </Radio> <mask> </RadioGroup> <mask> ); <mask> } <mask> describe('RadioGroup', () => { <mask> it('onChange and default on RadioGroup', () => { <mask> let { getAllByRole, getByText } = render( </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/test/radio.test.tsx
<Radio.Group defaultValue="1" name="myRadioGroup">
<mask> <mask> it('can be disabled', () => { <mask> let { getAllByRole } = render( <mask> <NativeBaseProvider> <mask> <RadioGroup defaultValue="1" name="myRadioGroup"> <mask> <Radio value="1"> <mask> <Text mx={2}>First</Text> <mask> </Radio> <mask> <Radio value="2" isDisabled> <mask> <Text mx={2}>Second</Text> </s> fix: updated api, example and type and test </s> remove <RadioGroup defaultValue="1" name="myRadioGroup"> </s> add <Radio.Group defaultValue="1" name="myRadioGroup"> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup"> </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/test/radio.test.tsx
</Radio.Group>
<mask> </Radio> <mask> <Radio value="3"> <mask> <Text mx={2}>Third</Text> <mask> </Radio> <mask> </RadioGroup> <mask> </NativeBaseProvider> <mask> ); <mask> let second = getAllByRole('radio'); <mask> expect(second[1].props.accessibilityState.disabled).toBe(true); <mask> }); </s> fix: updated api, example and type and test </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove </RadioGroup> </s> add </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/test/radio.test.tsx
export type IRadioComponentType = ((props: IRadioProps) => JSX.Element) & { Group: React.MemoExoticComponent<(props: IRadioGroupProps) => JSX.Element>; };
<mask> value: IRadioValue; <mask> name: string; <mask> }; <mask> }; </s> fix: updated api, example and type and test </s> remove export { default as Radio } from './Radio'; export { default as RadioGroup } from './RadioGroup'; </s> add import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio }; </s> remove RadioGroup, </s> add </s> remove </RadioGroup> </s> add </Radio.Group> </s> remove <RadioGroup defaultValue="1" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" name="exampleGroup">
[ "keep", "keep", "keep", "add" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/Radio/types.tsx
export { Radio } from './Radio';
<mask> <mask> export { Checkbox } from './Checkbox'; <mask> export type { ICheckboxProps, ICheckboxGroupProps } from './Checkbox'; <mask> <mask> export { Radio, RadioGroup } from './Radio'; <mask> export type { IRadioProps, IRadioGroupProps, IRadioValue } from './Radio'; <mask> <mask> export { default as Icon, createIcon } from './Icon'; <mask> export type { IIconProps, IconType, IconNameType } from './Icon'; <mask> </s> fix: updated api, example and type and test </s> remove export { default as Radio } from './Radio'; export { default as RadioGroup } from './RadioGroup'; </s> add import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio }; </s> remove import { Radio, RadioGroup, Text } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import RadioGroup from '../RadioGroup'; </s> add </s> remove import { Radio, Text, RadioGroup } from 'native-base'; </s> add import { Radio, Text } from 'native-base'; </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/components/primitives/index.ts
<mask> ICheckboxGroupProps, <mask> Radio, <mask> IRadioProps, <mask> IRadioValue, <mask> RadioGroup, <mask> IRadioGroupProps, <mask> Button, <mask> ButtonGroup, <mask> IButtonProps, <mask> Column, </s> fix: updated api, example and type and test </s> remove RadioGroup, </s> add </s> remove RadioGroup, </s> add </s> remove export { default as Radio } from './Radio'; export { default as RadioGroup } from './RadioGroup'; </s> add import RadioMain from './Radio'; import RadioGroup from './RadioGroup'; import type { IRadioComponentType } from './types'; const RadioTemp: any = RadioMain; RadioTemp.Group = RadioGroup; // To add typings const Radio = RadioTemp as IRadioComponentType; export { Radio }; </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove export { Radio, RadioGroup } from './Radio'; </s> add export { Radio } from './Radio';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/index.tsx
<mask> Text, <mask> Code, <mask> Checkbox, <mask> Radio, <mask> RadioGroup, <mask> Column, <mask> Row, <mask> Center, <mask> Square, <mask> Circle, </s> fix: updated api, example and type and test </s> remove RadioGroup, </s> add </s> remove RadioGroup, </s> add </s> remove import { IRadioValue, Radio, RadioGroup, Text, View } from 'native-base'; </s> add import { IRadioValue, Radio, Text, View } from 'native-base'; </s> remove import { Radio, RadioGroup, Text, Icon } from 'native-base'; </s> add import { Radio, Icon } from 'native-base'; </s> remove <RadioGroup defaultValue="1" size="lg" name="exampleGroup"> </s> add <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f2afe6643fd9b34128abd99aee8f9da23b2f535
src/index.tsx
Section 1 title
<mask> <Box m={3}> <mask> <Accordion allowMultiple defaultIndex={[1]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box textAlign="left">Section 1 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Click me to see a different style</Box> </s> add Click me to see a different style
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/AccessingInternalState.tsx
{isExpanded ? 'Fire' : 'Snow'}
<mask> <Accordion.Item> <mask> {({ isExpanded }: any) => ( <mask> <> <mask> <Accordion.Summary> <mask> <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> <mask> {isExpanded ? ( <mask> <Icon name="fire" type="MaterialCommunityIcons" /> <mask> ) : ( <mask> <Icon name="snowflake" type="MaterialCommunityIcons" /> <mask> )} </s> fix: accordion crosscheck update ui </s> remove <Icon name="fire" type="MaterialCommunityIcons" /> </s> add <Icon name="fire" color="white" type="MaterialCommunityIcons" /> </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/AccessingInternalState.tsx
<Icon name="fire" color="white" type="MaterialCommunityIcons" />
<mask> <> <mask> <Accordion.Summary> <mask> <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> <mask> {isExpanded ? ( <mask> <Icon name="fire" type="MaterialCommunityIcons" /> <mask> ) : ( <mask> <Icon name="snowflake" type="MaterialCommunityIcons" /> <mask> )} <mask> </Accordion.Summary> <mask> <Accordion.Details> </s> fix: accordion crosscheck update ui </s> remove <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> </s> add {isExpanded ? 'Fire' : 'Snow'} </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/AccessingInternalState.tsx
Section 1 title
<mask> <Box m={3}> <mask> <Accordion allowMultiple defaultIndex={[0, 2]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 1 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/DefaultIndex.tsx
Section 2 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 2 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 2 title</Box> </s> add Section 2 title </s> remove <Box>Section 2 title</Box> </s> add Section 2 title </s> remove <Box>Section 2 title</Box> </s> add Section 2 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/DefaultIndex.tsx
Section 3 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 3 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 3 title</Box> </s> add Section 3 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title </s> remove <Box>Section 2 title</Box> </s> add Section 2 title </s> remove <Box>Section 2 title</Box> </s> add Section 2 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/DefaultIndex.tsx
Click me to see a different style
<mask> <Box m={3}> <mask> <Accordion allowMultiple> <mask> <Accordion.Item> <mask> <Accordion.Summary _expanded={{ backgroundColor: 'orange.300' }}> <mask> <Box>Click me to see a different style</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 2 title</Box> </s> add Section 2 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/ExpandedStyle.tsx
Section 1 title
<mask> <Box m={3}> <mask> <Accordion allowMultiple> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 1 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Click me to see a different style</Box> </s> add Click me to see a different style
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Multiple.tsx
Section 2 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 2 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Multiple.tsx
Section 3 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 3 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Multiple.tsx
Section 1 title
<mask> allowToggle={boolean('allowToggle', false)} <mask> > <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 1 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Playground.tsx
Section 2 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 2 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Playground.tsx
Section 3 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 3 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Playground.tsx
Section 1 title
<mask> <Box m={3}> <mask> <Accordion allowToggle defaultIndex={[2]}> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 1 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box textAlign="left">Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 1 title</Box> </s> add Section 1 title </s> remove <Box>Section 3 title</Box> </s> add Section 3 title
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Toggle.tsx
Section 2 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 2 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Toggle.tsx
Section 3 title
<mask> </Accordion.Details> <mask> </Accordion.Item> <mask> <Accordion.Item> <mask> <Accordion.Summary> <mask> <Box>Section 3 title</Box> <mask> <Accordion.Icon /> <mask> </Accordion.Summary> <mask> <Accordion.Details> <mask> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <mask> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </s> fix: accordion crosscheck update ui
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
example/storybook/stories/components/composites/Accordion/Toggle.tsx
return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} />
<mask> const { isOpen }: IAccordionItemContextProps = React.useContext( <mask> AccordionItemContext <mask> ); <mask> const { ...newProps } = useThemeProps('AccordionIcon', props); <mask> return ( <mask> <Icon <mask> name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} <mask> type="Entypo" <mask> {...newProps} <mask> /> <mask> ); <mask> }; <mask> <mask> export default React.memo(AccordionIcon); </s> fix: accordion crosscheck update ui </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove borderColor: mode('gray.800', 'gray.50')(props), </s> add borderColor: mode('gray.300', 'gray.600')(props), </s> remove <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> </s> add {isExpanded ? 'Fire' : 'Snow'} </s> remove borderTopColor: mode('gray.800', 'gray.50')(props), </s> add borderTopColor: mode('gray.300', 'gray.600')(props), </s> remove <Icon name="fire" type="MaterialCommunityIcons" /> </s> add <Icon name="fire" color="white" type="MaterialCommunityIcons" />
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
src/components/composites/Accordion/AccordionIcon.tsx
borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0,
<mask> : false; <mask> const edgeItemsProps = { <mask> borderTopLeftRadius: firstItem ? AccordionProps.borderRadius : 0, <mask> borderTopRightRadius: firstItem ? AccordionProps.borderRadius : 0, <mask> borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, <mask> borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, <mask> }; <mask> const _ref = React.useRef(null); <mask> const { isHovered } = useHover({}, _ref); <mask> <mask> return ( </s> fix: accordion crosscheck update ui </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> </s> add {isExpanded ? 'Fire' : 'Snow'} </s> remove <Icon name="fire" type="MaterialCommunityIcons" /> </s> add <Icon name="fire" color="white" type="MaterialCommunityIcons" /> </s> remove borderColor: mode('gray.800', 'gray.50')(props), </s> add borderColor: mode('gray.300', 'gray.600')(props), </s> remove borderTopColor: mode('gray.800', 'gray.50')(props), </s> add borderTopColor: mode('gray.300', 'gray.600')(props),
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
src/components/composites/Accordion/AccordionSummary.tsx
borderColor: mode('gray.300', 'gray.600')(props),
<mask> // Accordion <mask> const accordionBaseStyle = (props: Record<string, any>) => { <mask> return { <mask> borderWidth: 1, <mask> borderColor: mode('gray.800', 'gray.50')(props), <mask> borderRadius: 'lg', <mask> }; <mask> }; <mask> export const Accordion = { <mask> baseStyle: accordionBaseStyle, </s> fix: accordion crosscheck update ui </s> remove borderTopColor: mode('gray.800', 'gray.50')(props), </s> add borderTopColor: mode('gray.300', 'gray.600')(props), </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove borderBottomColor: mode('gray.800', 'gray.50')(props), color: 'white', </s> add borderBottomColor: mode('gray.300', 'gray.600')(props), _text: { color: 'white' }, </s> remove <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> </s> add {isExpanded ? 'Fire' : 'Snow'}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
src/theme/components/accordion.ts
borderTopColor: mode('gray.300', 'gray.600')(props),
<mask> const accordionButtonBaseStyle = (props: Record<string, any>) => { <mask> return { <mask> borderWidth: 1, <mask> borderColor: 'transparent', <mask> borderTopColor: mode('gray.800', 'gray.50')(props), <mask> p: 3, <mask> _hover: { <mask> bg: mode('default.200', 'default.300')(props), <mask> }, <mask> _expanded: { </s> fix: accordion crosscheck update ui </s> remove borderColor: mode('gray.800', 'gray.50')(props), </s> add borderColor: mode('gray.300', 'gray.600')(props), </s> remove borderBottomColor: mode('gray.800', 'gray.50')(props), color: 'white', </s> add borderBottomColor: mode('gray.300', 'gray.600')(props), _text: { color: 'white' }, </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove <Box textAlign="left">{isExpanded ? 'Fire' : 'Snow'}</Box> </s> add {isExpanded ? 'Fire' : 'Snow'}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
src/theme/components/accordion.ts
borderBottomColor: mode('gray.300', 'gray.600')(props), _text: { color: 'white' },
<mask> bg: mode('default.200', 'default.300')(props), <mask> }, <mask> _expanded: { <mask> bg: 'default.600', <mask> borderBottomColor: mode('gray.800', 'gray.50')(props), <mask> color: 'white', <mask> }, <mask> _disabled: { <mask> bg: mode('gray.200', 'gray.700')(props), <mask> }, <mask> }; </s> fix: accordion crosscheck update ui </s> remove borderTopColor: mode('gray.800', 'gray.50')(props), </s> add borderTopColor: mode('gray.300', 'gray.600')(props), </s> remove borderColor: mode('gray.800', 'gray.50')(props), </s> add borderColor: mode('gray.300', 'gray.600')(props), </s> remove return ( <Icon name={isOpen ? 'chevron-small-up' : 'chevron-small-down'} type="Entypo" {...newProps} /> </s> add return isOpen ? ( <Icon name={'chevron-small-up'} color="white" type="Entypo" {...newProps} /> ) : ( <Icon name={'chevron-small-down'} type="Entypo" {...newProps} /> </s> remove borderBottomLeftRadius: lastItem ? AccordionProps.borderRadius : 0, borderBottomRightRadius: lastItem ? AccordionProps.borderRadius : 0, </s> add borderBottomLeftRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, borderBottomRightRadius: lastItem ? !isOpen ? AccordionProps.borderRadius : 0 : 0, </s> remove <Box>Section 1 title</Box> </s> add Section 1 title
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f3776831e71b3ae13a105a488da1814e2e1df6b
src/theme/components/accordion.ts
const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props);
<mask> import { makeStyledComponent } from '../../../utils/styled'; <mask> <mask> const StyledImage = makeStyledComponent(RNImage); <mask> <mask> const Image = (props: IImageProps, ref: any) => { <mask> const { <mask> source, <mask> src, <mask> fallbackElement, <mask> alt, <mask> fallbackSource, <mask> ignoreFallback, <mask> _alt, <mask> ...resolvedProps <mask> } = usePropsResolution('Image', props); <mask> <mask> const finalSource: any = useRef(null); <mask> const getSource = useCallback(() => { <mask> if (source) { <mask> finalSource.current = source; </s> fix: image prefetch api added </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> remove const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> add const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]);
<mask> _alt, <mask> ...resolvedProps <mask> } = usePropsResolution('Image', props); <mask> <mask> const finalSource: any = useRef(null); <mask> const getSource = useCallback(() => { <mask> if (source) { <mask> finalSource.current = source; <mask> } else if (src) { <mask> finalSource.current = { uri: src }; <mask> } <mask> return finalSource.current; <mask> // eslint-disable-next-line react-hooks/exhaustive-deps <mask> }, [source?.uri, src]); <mask> <mask> const [renderedSource, setSource] = useState(getSource()); <mask> const [alternate, setAlternate] = useState(false); <mask> const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); <mask> </s> fix: image prefetch api added </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> remove const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> add const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true);
<mask> return finalSource.current; <mask> // eslint-disable-next-line react-hooks/exhaustive-deps <mask> }, [source?.uri, src]); <mask> <mask> const [renderedSource, setSource] = useState(getSource()); <mask> const [alternate, setAlternate] = useState(false); <mask> const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); <mask> <mask> React.useEffect(() => { <mask> setSource(getSource()); <mask> return () => { <mask> finalSource.current = null; </s> fix: image prefetch api added </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]);
<mask> const [renderedSource, setSource] = useState(getSource()); <mask> const [alternate, setAlternate] = useState(false); <mask> const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); <mask> <mask> React.useEffect(() => { <mask> setSource(getSource()); <mask> return () => { <mask> finalSource.current = null; <mask> }; <mask> }, [source?.uri, src, getSource]); <mask> <mask> const onImageLoadError = useCallback( <mask> (event: any) => { <mask> props.onError && props.onError(event); <mask> console.warn(event.nativeEvent.error); </s> fix: image prefetch api added </s> remove const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> add const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); }
<mask> finalSource.current = null; <mask> }; <mask> }, [source?.uri, src, getSource]); <mask> <mask> const onImageLoadError = useCallback( <mask> (event: any) => { <mask> props.onError && props.onError(event); <mask> console.warn(event.nativeEvent.error); <mask> if ( <mask> !ignoreFallback && <mask> fallbackSource && <mask> fallbackSource !== renderedSource && <mask> fallbackSourceFlag <mask> ) { <mask> setfallbackSourceFlag(false); <mask> setSource(fallbackSource); <mask> } else { <mask> setAlternate(true); <mask> } <mask> }, <mask> [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] <mask> ); <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> if (!alt) { <mask> console.warn('Please pass alt prop to Image component'); <mask> } <mask> <mask> if (alternate) { <mask> if (fallbackElement) { <mask> if (React.isValidElement(fallbackElement)) { <mask> return fallbackElement; </s> fix: image prefetch api added </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache, </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> remove const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true); </s> add const [renderedSource, setSource] = useState(getSource()); const [alternate, setAlternate] = useState(false); const [fallbackSourceFlag, setfallbackSourceFlag] = useState(true);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache,
<mask> if (!alt) { <mask> console.warn('Please pass alt prop to Image component'); <mask> } <mask> <mask> if (alternate) { <mask> if (fallbackElement) { <mask> if (React.isValidElement(fallbackElement)) { <mask> return fallbackElement; <mask> } <mask> } else return <Text {..._alt}>{alt}</Text>; <mask> } <mask> return ( <mask> <StyledImage <mask> source={renderedSource} <mask> accessibilityLabel={alt} <mask> alt={alt} <mask> {...resolvedProps} <mask> onError={onImageLoadError} <mask> ref={ref} <mask> /> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(Image)); <mask> export type { IImageProps }; </s> fix: image prefetch api added </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove export default memo(forwardRef(Image)); </s> add export default ImageWithStatics; </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
export default ImageWithStatics;
<mask> /> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(Image)); <mask> export type { IImageProps }; </s> fix: image prefetch api added </s> remove if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); </s> add if (alternate) { if (fallbackElement) { if (React.isValidElement(fallbackElement)) { return fallbackElement; } } else return <Text {..._alt}>{alt}</Text>; } return ( <StyledImage source={renderedSource} accessibilityLabel={alt} alt={alt} {...resolvedProps} onError={onImageLoadError} ref={ref} /> ); }) ); interface ImageStatics { getSize: typeof RNImage.prefetch; prefetch: typeof RNImage.prefetch; queryCache: typeof RNImage.queryCache; } const ImageWithStatics: typeof Image & ImageStatics = { ...Image, //@ts-ignore getSize: RNImage.getSize, prefetch: RNImage.prefetch, queryCache: RNImage.queryCache, </s> remove React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> add React.useEffect(() => { setSource(getSource()); return () => { finalSource.current = null; }; }, [source?.uri, src, getSource]); </s> remove const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> add const onImageLoadError = useCallback( (event: any) => { props.onError && props.onError(event); console.warn(event.nativeEvent.error); if ( !ignoreFallback && fallbackSource && fallbackSource !== renderedSource && fallbackSourceFlag ) { setfallbackSourceFlag(false); setSource(fallbackSource); } else { setAlternate(true); } }, [ fallbackSource, fallbackSourceFlag, ignoreFallback, props, renderedSource, ] ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } if (!alt) { console.warn('Please pass alt prop to Image component'); } </s> remove const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> add const finalSource: any = useRef(null); const getSource = useCallback(() => { if (source) { finalSource.current = source; } else if (src) { finalSource.current = { uri: src }; } return finalSource.current; // eslint-disable-next-line react-hooks/exhaustive-deps }, [source?.uri, src]); </s> remove const Image = (props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props); </s> add const Image = memo( forwardRef((props: IImageProps, ref: any) => { const { source, src, fallbackElement, alt, fallbackSource, ignoreFallback, _alt, ...resolvedProps } = usePropsResolution('Image', props);
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9f4278059cd6f31c4fb1826ff77ebd34fce6c510
src/components/primitives/Image/index.tsx
<mask> import { Fab, Icon, Box, NativeBaseProvider } from 'native-base'; <mask> import React from 'react'; <mask> import { AntDesign } from '@expo/vector-icons'; <mask> import nativebaseConfig from '../../../../../nativebase.config'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Box position="relative" h={100} w="100%"> <mask> <NativeBaseProvider config={nativebaseConfig}> </s> fix: storybook example - fab </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/Basic.tsx
<NativeBaseProvider>
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Box position="relative" h={100} w="100%"> <mask> <NativeBaseProvider config={nativebaseConfig}> <mask> <Fab <mask> position="absolute" <mask> size="sm" <mask> icon={<Icon color="white" as={<AntDesign name="plus" />} size="sm" />} <mask> /> </s> fix: storybook example - fab </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/Basic.tsx
<mask> import { Fab, Icon, NativeBaseProvider, Box } from 'native-base'; <mask> import React from 'react'; <mask> import { AntDesign } from '@expo/vector-icons'; <mask> import nativebaseConfig from '../../../../../nativebase.config'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Box position="relative" w="100%" h={200}> <mask> <NativeBaseProvider config={nativebaseConfig}> </s> fix: storybook example - fab </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/CustomPosition.tsx
<NativeBaseProvider>
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Box position="relative" w="100%" h={200}> <mask> <NativeBaseProvider config={nativebaseConfig}> <mask> <Fab <mask> right={70} <mask> bottom={50} <mask> icon={<Icon color="white" as={<AntDesign name="plus" />} />} <mask> /> </s> fix: storybook example - fab </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/CustomPosition.tsx
<mask> import { Fab, Icon, Text, NativeBaseProvider, Box } from 'native-base'; <mask> import React from 'react'; <mask> import { AntDesign } from '@expo/vector-icons'; <mask> import nativebaseConfig from '../../../../../nativebase.config'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Box h={400} w="100%"> <mask> <NativeBaseProvider config={nativebaseConfig}> </s> fix: storybook example - fab </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/Placement.tsx
<NativeBaseProvider>
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Box h={400} w="100%"> <mask> <NativeBaseProvider config={nativebaseConfig}> <mask> <Fab <mask> placement="top-right" <mask> icon={<Icon color="white" as={<AntDesign name="plus" />} size={4} />} <mask> label={ <mask> <Text color="white" fontSize="sm"> </s> fix: storybook example - fab </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove import nativebaseConfig from '../../../../../nativebase.config'; </s> add </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider> </s> remove <NativeBaseProvider config={nativebaseConfig}> </s> add <NativeBaseProvider>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a08ced2071e898f68075e6a066acdf14a6d1d76a
example/storybook/stories/components/composites/Fab/Placement.tsx
import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; <mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> </s> feat: example design changes (#4522) </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Text, Box } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Text, Box, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Icon, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Icon, Box, Text, Center, } from 'native-base'; </s> remove <> </s> add <Center> </s> remove <> </s> add <Center>
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Composition.tsx
<Center>
<mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> <mask> <Button onPress={onOpen}>Actionsheet</Button> <mask> <Actionsheet isOpen={isOpen} onClose={onClose} hideDragIndicator> <mask> <Actionsheet.Content borderTopRadius="0"> <mask> <Box w="100%" h={60} px={4} justifyContent="center"> <mask> <Text fontSize="16" color="gray.500" _dark={{ color: 'gray.300' }}> </s> feat: example design changes (#4522) </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Composition.tsx
</Center>
<mask> <Actionsheet.Item>Favourite</Actionsheet.Item> <mask> <Actionsheet.Item>Cancel</Actionsheet.Item> <mask> </Actionsheet.Content> <mask> </Actionsheet> <mask> </> <mask> ); <mask> } </s> feat: example design changes (#4522) </s> remove </> </s> add </Center> </s> remove </> </s> add </Center> </s> remove </> </s> add </Center> </s> remove </ScrollView> </s> add </Center> </s> remove </> </s> add </Box>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Composition.tsx
import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; <mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> </s> feat: example design changes (#4522)
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/DisableOverlay.tsx
<Center>
<mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> <mask> <Button onPress={onOpen}>Actionsheet</Button> <mask> <mask> <Actionsheet isOpen={isOpen} onClose={onClose} disableOverlay> <mask> <Actionsheet.Content> <mask> <Box w="100%" h={60} px={4} justifyContent="center"> </s> feat: example design changes (#4522) </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/DisableOverlay.tsx
</Center>
<mask> <Actionsheet.Item>Favourite</Actionsheet.Item> <mask> <Actionsheet.Item>Cancel</Actionsheet.Item> <mask> </Actionsheet.Content> <mask> </Actionsheet> <mask> </> <mask> ); <mask> } </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/DisableOverlay.tsx
import { Button, Actionsheet, useDisclose, Icon, Box, Text, Center, } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, Actionsheet, useDisclose, Icon, Box, Text } from 'native-base'; <mask> import { Path } from 'react-native-svg'; <mask> import { MaterialIcons, Ionicons } from '@expo/vector-icons'; <mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); </s> feat: example design changes (#4522) </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Text, Box } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Text, Box, Center, } from 'native-base'; </s> remove import { Checkbox, Icon } from 'native-base'; </s> add import { Checkbox, Icon, Box } from 'native-base'; </s> remove import { IconButton, Icon } from 'native-base'; </s> add import { IconButton, Icon, Box } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
<Center>
<mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> <mask> <Button onPress={onOpen}>Actionsheet</Button> <mask> <Actionsheet isOpen={isOpen} onClose={onClose} size="full"> <mask> <Actionsheet.Content> <mask> <Box w="100%" h={60} px={4} justifyContent="center"> <mask> <Text fontSize="16" color="gray.500" _dark={{ color: 'gray.300' }}> </s> feat: example design changes (#4522) </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
</Center>
<mask> Cancel <mask> </Actionsheet.Item> <mask> </Actionsheet.Content> <mask> </Actionsheet> <mask> </> <mask> ); <mask> } </s> feat: example design changes (#4522) </s> remove </> </s> add </Center> </s> remove </> </s> add </Center> </s> remove </> </s> add </Center> </s> remove </ScrollView> </s> add </Center> </s> remove </> </s> add </Box>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
import { Button, Actionsheet, useDisclose, Text, Box, Center, } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, Actionsheet, useDisclose, Text, Box } from 'native-base'; <mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> </s> feat: example design changes (#4522) </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Icon, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Icon, Box, Text, Center, } from 'native-base'; </s> remove <> </s> add <Center> </s> remove <> </s> add <Center>
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Usage.tsx
<Center>
<mask> <mask> export function Example() { <mask> const { isOpen, onOpen, onClose } = useDisclose(); <mask> return ( <mask> <> <mask> <Button onPress={onOpen}>Actionsheet</Button> <mask> <Actionsheet isOpen={isOpen} onClose={onClose}> <mask> <Actionsheet.Content> <mask> <Box w="100%" h={60} px={4} justifyContent="center"> <mask> <Text fontSize="16" color="gray.500" _dark={{ color: 'gray.300' }}> </s> feat: example design changes (#4522) </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove <> </s> add <Center> </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base'; </s> remove import { Button, Actionsheet, useDisclose, Box, Text } from 'native-base'; </s> add import { Button, Actionsheet, useDisclose, Box, Text, Center, } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Usage.tsx
</Center>
<mask> <Actionsheet.Item>Favourite</Actionsheet.Item> <mask> <Actionsheet.Item>Cancel</Actionsheet.Item> <mask> </Actionsheet.Content> <mask> </Actionsheet> <mask> </> <mask> ); <mask> } </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Actionsheet/Usage.tsx
<Box w="100%" alignItems="center">
<mask> <mask> export function Example() { <mask> const [show, setShow] = React.useState(true); <mask> return ( <mask> <Box w="100%"> <mask> <Collapse isOpen={show}> <mask> <Alert w="100%" status="error"> <mask> <VStack space={1} flexShrink={1} w="100%"> <mask> <HStack <mask> flexShrink={1} </s> feat: example design changes (#4522) </s> remove <Alert w="100%" status="error"> </s> add <Alert w="90%" maxW="400" status="error"> </s> remove <VStack space={5} maxW="400"> <Alert w="100%" status="success"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={1} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" _dark={{ color: 'coolGray.800' }} > Application received! </Text> </s> add <Center> <VStack space={5} maxW="400"> <Alert w="100%" status="success"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={1} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" _dark={{ color: 'coolGray.800' }} > Application received! </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <Alert w="100%" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </s> add <Center> <Alert w="90%" maxW="400" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <Stack space={3} w="100%"> {statusArray.map((status) => { return ( <Alert w="100%" status={status.status}> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} justifyContent="space-between"> <HStack space={2} flexShrink={1}> <Alert.Icon mt="1" /> <Text fontSize="md" color="coolGray.800"> {status.title} </Text> </s> add <Center> <Stack space={3} w="90%" maxW="400"> {statusArray.map((status) => { return ( <Alert w="100%" status={status.status}> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} justifyContent="space-between"> <HStack space={2} flexShrink={1}> <Alert.Icon mt="1" /> <Text fontSize="md" color="coolGray.800"> {status.title} </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <Alert w="100%" status="info" colorScheme="info"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack flexShrink={1} space={2} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Text> </s> add <Center> <Alert w="90%" maxW="400" status="info" colorScheme="info"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack flexShrink={1} space={2} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Alert/action.tsx
<Alert w="90%" maxW="400" status="error">
<mask> const [show, setShow] = React.useState(true); <mask> return ( <mask> <Box w="100%"> <mask> <Collapse isOpen={show}> <mask> <Alert w="100%" status="error"> <mask> <VStack space={1} flexShrink={1} w="100%"> <mask> <HStack <mask> flexShrink={1} <mask> space={2} <mask> alignItems="center" </s> feat: example design changes (#4522) </s> remove <Box w="100%"> </s> add <Box w="100%" alignItems="center"> </s> remove <Alert w="100%" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </s> add <Center> <Alert w="90%" maxW="400" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <VStack space={5} maxW="400"> <Alert w="100%" status="success"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={1} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" _dark={{ color: 'coolGray.800' }} > Application received! </Text> </s> add <Center> <VStack space={5} maxW="400"> <Alert w="100%" status="success"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={1} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" _dark={{ color: 'coolGray.800' }} > Application received! </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <Stack space={3} w="100%"> {statusArray.map((status) => { return ( <Alert w="100%" status={status.status}> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} justifyContent="space-between"> <HStack space={2} flexShrink={1}> <Alert.Icon mt="1" /> <Text fontSize="md" color="coolGray.800"> {status.title} </Text> </s> add <Center> <Stack space={3} w="90%" maxW="400"> {statusArray.map((status) => { return ( <Alert w="100%" status={status.status}> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} justifyContent="space-between"> <HStack space={2} flexShrink={1}> <Alert.Icon mt="1" /> <Text fontSize="md" color="coolGray.800"> {status.title} </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </s> remove <Alert w="100%" status="info" colorScheme="info"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack flexShrink={1} space={2} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Text> </s> add <Center> <Alert w="90%" maxW="400" status="info" colorScheme="info"> <VStack space={2} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack flexShrink={1} space={2} alignItems="center"> <Alert.Icon /> <Text fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Text> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Alert/action.tsx
<Button size={'sm'} onPress={() => setShow(true)} mt={8} mx="auto">
<mask> </Box> <mask> </VStack> <mask> </Alert> <mask> </Collapse> <mask> <Button size={'sm'} onPress={() => setShow(true)} my={8} mx="auto"> <mask> Re-Open <mask> </Button> <mask> </Box> <mask> ); <mask> } </s> feat: example design changes (#4522) </s> remove <Button onPress={() => toast.show({ title: 'Hello world', placement: 'bottom-right', }) } > Bottom right </Button> </VStack> </s> add <Button onPress={() => toast.show({ title: 'Hello world', placement: 'bottom-right', }) } > Bottom right </Button> </VStack> </Center> </s> remove <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Button colorScheme="warning" onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </Center> </s> remove <Button onPress={() => toast.show({ title: 'Hello world', placement: 'top', }) } > Top </Button> </s> add <Button onPress={() => toast.show({ title: 'Hello world', placement: 'top', }) } > Top </Button> </s> remove <Button onPress={() => toast.show({ title: 'Hello world', placement: 'top-left', }) } > Top left </Button> </s> add <Button onPress={() => toast.show({ title: 'Hello world', placement: 'top-left', }) } > Top left </Button> </s> remove <Button onPress={() => toast.show({ title: 'Hello world', placement: 'bottom-left', }) } > Bottom left </Button> </s> add <Button onPress={() => toast.show({ title: 'Hello world', placement: 'bottom-left', }) } > Bottom left </Button>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/composites/Alert/action.tsx