docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
listlengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
'Lose yourself in the greens of nature, the ones that make you strong. Come visit us at the Greenway Park, and we will be happy to show you around.'
|
<mask> const [text, setText] = useState('');
<mask> setTimeout(() => {
<mask> setIsLoaded(true);
<mask> setText(
<mask> 'Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting'
<mask> );
<mask> }, 5000);
<mask>
<mask> return (
<mask> <Box w="80%">
</s> feat: example design changes (#4522) </s> remove <Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</s> add <Box alignItems="center">
<Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</Box> </s> remove <Container>
<Heading>
A component library for the
<Heading color="emerald.500"> React Ecosystem</Heading>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</s> add <Center>
<Container>
<Heading>
A component library for the
<Text color="emerald.500"> React Ecosystem</Text>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</Center> </s> remove <Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 400 }}
>
This is the Center
</s> add <Center>
<Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 250 }}
>
This is the Center
</Center> </s> remove <Box
_text={{ textAlign: 'center' }}
_dark={{ _text: { color: 'coolGray.600' } }}
>
Your application has been received. We will review your application
and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
</VStack>
</s> add <Box
_text={{ textAlign: 'center' }}
_dark={{ _text: { color: 'coolGray.600' } }}
>
Your application has been received. We will review your
application and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
</VStack>
</Center> </s> remove <IconButton
variant="unstyled"
icon={<CloseIcon size="3" color="coolGray.600" />}
/>
</HStack>
<Box pl="6" _dark={{ _text: { color: 'coolGray.600' } }}>
Your application has been received. We will review your application
and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
<Alert w="100%" status="success">
<VStack space={1} flexShrink={1} w="100%" alignItems="center">
<Alert.Icon size="md" />
<Text
fontSize="md"
fontWeight="medium"
_dark={{ color: 'coolGray.800' }}
>
Application received!
</Text>
</s> add <Box pl="6" _dark={{ _text: { color: 'coolGray.600' } }}>
Your application has been received. We will review your
application and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
<Alert w="100%" status="success">
<VStack space={1} flexShrink={1} w="100%" alignItems="center">
<Alert.Icon size="md" />
<Text
fontSize="md"
fontWeight="medium"
_dark={{ color: 'coolGray.800' }}
>
Application received!
</Text>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Skeleton/isLoaded.tsx
|
<Center>
<Box w="90%" maxWidth="400">
<VStack
w="400"
borderWidth="1"
space={8}
overflow="hidden"
rounded="md"
borderColor="coolGray.400"
|
<mask> );
<mask> }, 5000);
<mask>
<mask> return (
<mask> <Box w="80%">
<mask> <Skeleton isLoaded={isLoaded} borderRadius="full" size={16}>
<mask> <Avatar
<mask> size={16}
<mask> source={{
<mask> uri:
<mask> 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
<mask> }}
<mask> >
<mask> SS
<mask> </Avatar>
<mask> </Skeleton>
<mask> <Skeleton.Text
</s> feat: example design changes (#4522) </s> remove SS
</Avatar>
</Skeleton>
<Skeleton.Text
lines={6}
mt={5}
h={120}
lineHeight="12px"
space={2}
isLoaded={isLoaded}
>
<Text fontSize={'md'} lineHeight={'20px'} mt={5}>
{text}
</Text>
</Skeleton.Text>
</Box>
</s> add <Skeleton h="40" isLoaded={isLoaded}>
<Image
h="40"
source={{
uri:
'https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2940&q=80',
}}
/>
</Skeleton>
<Skeleton.Text lines={4} px="4" isLoaded={isLoaded}>
<Text px="4" fontSize={'md'} lineHeight={'20px'}>
{text}
</Text>
</Skeleton.Text>
<Skeleton
px="4"
mb="4"
rounded="md"
startColor="primary.100"
isLoaded={isLoaded}
>
<Button m="4">Explore</Button>
</Skeleton>
</VStack>
</Box>
</Center> </s> remove 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
</s> add 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80', </s> remove SS
</s> add AJ </s> remove 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
</s> add 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80', </s> remove <Avatar.Group size="lg" max={3}>
<Avatar
bg="green.500"
source={{
uri:
'https://pbs.twimg.com/profile_images/1369921787568422915/hoyvrUpc_400x400.jpg',
}}
>
SS
</Avatar>
<Avatar
bg="lightBlue.500"
source={{
uri:
'https://pbs.twimg.com/profile_images/1309797238651060226/18cm6VhQ_400x400.jpg',
}}
>
AK
</Avatar>
<Avatar
bg="indigo.500"
source={{
uri:
'https://pbs.twimg.com/profile_images/1352844693151731713/HKO7cnlW_400x400.jpg',
}}
>
RS
</Avatar>
<Avatar
bg="amber.600"
source={{
uri:
'https://pbs.twimg.com/profile_images/1320985200663293952/lE_Kg6vr_400x400.jpg',
}}
>
MR
</Avatar>
<Avatar bg="emerald.600" source={{ uri: 'https://bit.ly/code-beast' }}>
CB
</Avatar>
<Avatar
bg="blue.600"
source={{
uri:
'https://pbs.twimg.com/profile_images/1177303899243343872/B0sUJIH0_400x400.jpg',
}}
>
GG
</Avatar>
<Avatar
bg="black.600"
source={{
uri:
'https://pbs.twimg.com/profile_images/1352844693151731713/HKO7cnlW_400x400.jpg',
}}
>
RS
</Avatar>
<Avatar
bg="blueGray.600"
source={{
uri:
'https://pbs.twimg.com/profile_images/1320985200663293952/lE_Kg6vr_400x400.jpg',
}}
>
MR
</Avatar>
</Avatar.Group>
</s> add <Center>
<Avatar.Group size="lg" max={3}>
<Avatar
bg="green.500"
source={{
uri:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80',
}}
>
AJ
</Avatar>
<Avatar
bg="cyan.500"
source={{
uri:
'https://images.unsplash.com/photo-1603415526960-f7e0328c63b1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
}}
>
TE
</Avatar>
<Avatar
bg="indigo.500"
source={{
uri:
'https://images.unsplash.com/photo-1614289371518-722f2615943d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80',
}}
>
JB
</Avatar>
<Avatar
bg="amber.500"
source={{
uri:
'https://images.unsplash.com/photo-1607746882042-944635dfe10e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
}}
>
TS
</Avatar>
<Avatar
bg="green.500"
source={{
uri:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80',
}}
>
AJ
</Avatar>
<Avatar
bg="cyan.500"
source={{
uri:
'https://images.unsplash.com/photo-1603415526960-f7e0328c63b1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
}}
>
TE
</Avatar>
<Avatar
bg="indigo.500"
source={{
uri:
'https://images.unsplash.com/photo-1614289371518-722f2615943d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80',
}}
>
JB
</Avatar>
<Avatar
bg="amber.500"
source={{
uri:
'https://images.unsplash.com/photo-1607746882042-944635dfe10e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
}}
>
TS
</Avatar>
</Avatar.Group>
</Center>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Skeleton/isLoaded.tsx
|
<Skeleton h="40" isLoaded={isLoaded}>
<Image
h="40"
source={{
uri:
'https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2940&q=80',
}}
/>
</Skeleton>
<Skeleton.Text lines={4} px="4" isLoaded={isLoaded}>
<Text px="4" fontSize={'md'} lineHeight={'20px'}>
{text}
</Text>
</Skeleton.Text>
<Skeleton
px="4"
mb="4"
rounded="md"
startColor="primary.100"
isLoaded={isLoaded}
>
<Button m="4">Explore</Button>
</Skeleton>
</VStack>
</Box>
</Center>
|
<mask> uri:
<mask> 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
<mask> }}
<mask> >
<mask> SS
<mask> </Avatar>
<mask> </Skeleton>
<mask> <Skeleton.Text
<mask> lines={6}
<mask> mt={5}
<mask> h={120}
<mask> lineHeight="12px"
<mask> space={2}
<mask> isLoaded={isLoaded}
<mask> >
<mask> <Text fontSize={'md'} lineHeight={'20px'} mt={5}>
<mask> {text}
<mask> </Text>
<mask> </Skeleton.Text>
<mask> </Box>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Box w="80%">
<Skeleton isLoaded={isLoaded} borderRadius="full" size={16}>
<Avatar
size={16}
source={{
uri:
'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
}}
</s> add <Center>
<Box w="90%" maxWidth="400">
<VStack
w="400"
borderWidth="1"
space={8}
overflow="hidden"
rounded="md"
borderColor="coolGray.400" </s> remove SS
</s> add AJ </s> remove 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
</s> add 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80', </s> remove SS
</s> add AJ </s> remove 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg',
</s> add 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80',
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Skeleton/isLoaded.tsx
|
import { Button, useToast, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, useToast } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
</s> feat: example design changes (#4522) </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, useToast, Box } from 'native-base';
</s> add import { Button, useToast, Box, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, Toast } from 'native-base';
</s> add import { Button, Toast, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/Basic.tsx
|
<Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center>
|
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> description: 'Hello world',
<mask> })
<mask> }
<mask> >
<mask> Bottom
<mask> </Button>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button> </s> remove <Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </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> </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: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/Basic.tsx
|
import { Button, useToast, Box, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, useToast, Box } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
</s> feat: example design changes (#4522) </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/CustomComponent.tsx
|
<Center>
<Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</Center>
|
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
<mask> <Button
<mask> onPress={() => {
<mask> toast.show({
<mask> render: () => {
<mask> return (
<mask> <Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
<mask> Hello! Have a nice day
<mask> </Box>
<mask> );
<mask> },
<mask> });
<mask> }}
<mask> >
<mask> Custom Toast
<mask> </Button>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</s> add <Center>
<Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</Center> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button> </s> remove <Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
</s> add <Center>
<VStack space={2}>
<Button
colorScheme="success"
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/CustomComponent.tsx
|
import { Button, useToast, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, useToast } from 'native-base';
<mask>
<mask> export function Example() {
<mask> const toast = useToast();
<mask> const id = 'test-toast';
<mask> return (
</s> feat: example design changes (#4522) </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, Box } from 'native-base';
</s> add import { Button, useToast, Box, Center } from 'native-base'; </s> remove <Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</s> add <Center>
<Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</Center>
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/PreventDuplicate.tsx
|
<Center>
<Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</Center>
|
<mask> export function Example() {
<mask> const toast = useToast();
<mask> const id = 'test-toast';
<mask> return (
<mask> <Button
<mask> onPress={() => {
<mask> if (!toast.isActive(id)) {
<mask> toast.show({
<mask> id,
<mask> title: "Hey! You can't create a duplicate toast",
<mask> });
<mask> }
<mask> }}
<mask> >
<mask> Click me!
<mask> </Button>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button> </s> remove <Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</s> add <Center>
<Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</Center> </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove <Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
</s> add <Center>
<VStack space={2}>
<Button
colorScheme="success"
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/PreventDuplicate.tsx
|
import { Button, Toast, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, Toast } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Button
<mask> onPress={() =>
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, Box } from 'native-base';
</s> add import { Button, useToast, Box, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/StandaloneToast.tsx
|
<Center>
<Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Show Toast
</Button>
</Center>
|
<mask> import { Button, Toast } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Button
<mask> onPress={() =>
<mask> Toast.show({
<mask> title: 'Hello world',
<mask> })
<mask> }
<mask> >
<mask> Bottom
<mask> </Button>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</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> </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: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/StandaloneToast.tsx
|
import { Button, useToast, VStack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, useToast, VStack } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
</s> feat: example design changes (#4522) </s> remove import { Button, useToast, VStack } from 'native-base';
</s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, Box } from 'native-base';
</s> add import { Button, useToast, Box, Center } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Button, Box, Heading, VStack } from 'native-base';
</s> add import { Button, Box, VStack } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
<mask> <VStack space={2}>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'bottom',
<mask> })
<mask> }
<mask> >
<mask> Bottom
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
</s> feat: example design changes (#4522) </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: 'bottom-left',
})
}
>
Bottom left
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom-left',
})
}
>
Bottom left
</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-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({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
|
<mask> >
<mask> Bottom
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'top',
<mask> })
<mask> }
<mask> >
<mask> Top
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
</s> feat: example design changes (#4522) </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> </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: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button> </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 <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-left',
})
}
>
Top left
</Button>
|
<mask> >
<mask> Top
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'top-left',
<mask> })
<mask> }
<mask> >
<mask> Top left
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</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> </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: '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 <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button>
|
<mask> >
<mask> Top left
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'top-right',
<mask> backgroundColor: 'pink.400',
<mask> })
<mask> }
<mask> >
<mask> Top right
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
</s> feat: example design changes (#4522) </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> </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: '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 <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom-left',
})
}
>
Bottom left
</Button>
|
<mask> >
<mask> Top right
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'bottom-left',
<mask> })
<mask> }
<mask> >
<mask> Bottom left
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</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: '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: '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 <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom-right',
})
}
>
Bottom right
</Button>
</VStack>
</Center>
|
<mask> >
<mask> Bottom left
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Hello world',
<mask> placement: 'bottom-right',
<mask> })
<mask> }
<mask> >
<mask> Bottom right
<mask> </Button>
<mask> </VStack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </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> </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-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top-right',
backgroundColor: 'pink.400',
})
}
>
Top right
</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 <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastPositions.tsx
|
import { Button, useToast, VStack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, useToast, VStack } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
</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/Toast/ToastStatus.tsx
|
<Center>
<VStack space={2}>
<Button
colorScheme="success"
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
|
<mask> export const Example = () => {
<mask> const toast = useToast();
<mask>
<mask> return (
<mask> <VStack space={2}>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Account verified',
<mask> status: 'success',
<mask> description: 'Thanks for signing up with us.',
<mask> })
<mask> }
<mask> >
<mask> Success
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Something went wrong',
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description: 'Please create a support ticket from the support page',
})
}
>
Error
</Button>
</s> add <Button
colorScheme="error"
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description:
'Please create a support ticket from the support page',
})
}
>
Error
</Button> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button>
</s> add <Center>
<VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'bottom',
})
}
>
Bottom
</Button> </s> remove <Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <Button
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button>
</s> add <Button
colorScheme="info"
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button> </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>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastStatus.tsx
|
<Button
colorScheme="error"
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description:
'Please create a support ticket from the support page',
})
}
>
Error
</Button>
|
<mask> >
<mask> Success
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Something went wrong',
<mask> status: 'error',
<mask> description: 'Please create a support ticket from the support page',
<mask> })
<mask> }
<mask> >
<mask> Error
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Network connection restored',
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button>
</s> add <Button
colorScheme="info"
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
</s> add <Center>
<VStack space={2}>
<Button
colorScheme="success"
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button> </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>
|
[
"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/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastStatus.tsx
|
<Button
colorScheme="info"
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button>
|
<mask> >
<mask> Error
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Network connection restored',
<mask> status: 'info',
<mask> description:
<mask> 'This is to inform you that your network connectivity is restored',
<mask> })
<mask> }
<mask> >
<mask> Info
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Invalid email address',
</s> feat: example design changes (#4522) </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: 'Something went wrong',
status: 'error',
description: 'Please create a support ticket from the support page',
})
}
>
Error
</Button>
</s> add <Button
colorScheme="error"
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description:
'Please create a support ticket from the support page',
})
}
>
Error
</Button> </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",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastStatus.tsx
|
<Button
colorScheme="warning"
onPress={() =>
toast.show({
title: 'Invalid email address',
status: 'warning',
description: 'Please enter a valid email address',
})
}
>
Warning
</Button>
</VStack>
</Center>
|
<mask> >
<mask> Info
<mask> </Button>
<mask>
<mask> <Button
<mask> onPress={() =>
<mask> toast.show({
<mask> title: 'Invalid email address',
<mask> status: 'warning',
<mask> description: 'Please enter a valid email address',
<mask> })
<mask> }
<mask> >
<mask> Warning
<mask> </Button>
<mask> </VStack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Button
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button>
</s> add <Button
colorScheme="info"
onPress={() =>
toast.show({
title: 'Network connection restored',
status: 'info',
description:
'This is to inform you that your network connectivity is restored',
})
}
>
Info
</Button> </s> remove <Button
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description: 'Please create a support ticket from the support page',
})
}
>
Error
</Button>
</s> add <Button
colorScheme="error"
onPress={() =>
toast.show({
title: 'Something went wrong',
status: 'error',
description:
'Please create a support ticket from the support page',
})
}
>
Error
</Button> </s> remove <VStack space={2}>
<Button
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button>
</s> add <Center>
<VStack space={2}>
<Button
colorScheme="success"
onPress={() =>
toast.show({
title: 'Account verified',
status: 'success',
description: 'Thanks for signing up with us.',
})
}
>
Success
</Button> </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: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
</s> add <Button
onPress={() =>
toast.show({
title: 'Hello world',
placement: 'top',
})
}
>
Top
</Button>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Toast/ToastStatus.tsx
|
import { Tooltip, Button, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Tooltip, Button } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Tooltip label="Hey, I'm here!" openDelay={500}>
<mask> <Button>More</Button>
</s> feat: example design changes (#4522) </s> remove <Tooltip label="Hey, I'm here!" openDelay={500}>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip label="Click here to read more" openDelay={500}>
<Button>More</Button>
</Tooltip>
</Center> </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove <Tooltip
label="Hey, I'm here!"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip
label="Click here to read more"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</Center> </s> remove return <Badge>NEW FEATURE</Badge>;
</s> add return (
<Box alignItems="center">
<Badge>NEW FEATURE</Badge>
</Box>
); </s> remove import { Badge, Button, VStack } from 'native-base';
</s> add import { Badge, Button, VStack, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Tooltip/Basic.tsx
|
<Center>
<Tooltip label="Click here to read more" openDelay={500}>
<Button>More</Button>
</Tooltip>
</Center>
|
<mask> import { Tooltip, Button } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Tooltip label="Hey, I'm here!" openDelay={500}>
<mask> <Button>More</Button>
<mask> </Tooltip>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove <Tooltip
label="Hey, I'm here!"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip
label="Click here to read more"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</Center> </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove return <Badge>NEW FEATURE</Badge>;
</s> add return (
<Box alignItems="center">
<Badge>NEW FEATURE</Badge>
</Box>
); </s> remove import { Badge, Button, VStack } from 'native-base';
</s> add import { Badge, Button, VStack, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Tooltip/Basic.tsx
|
import { Tooltip, Button, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Tooltip, Button } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Tooltip
<mask> label="Hey, I'm here!"
</s> feat: example design changes (#4522) </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove <Tooltip label="Hey, I'm here!" openDelay={500}>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip label="Click here to read more" openDelay={500}>
<Button>More</Button>
</Tooltip>
</Center> </s> remove <Tooltip
label="Hey, I'm here!"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip
label="Click here to read more"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</Center> </s> remove return <Badge>NEW FEATURE</Badge>;
</s> add return (
<Box alignItems="center">
<Badge>NEW FEATURE</Badge>
</Box>
); </s> remove import { Badge, Button, VStack } from 'native-base';
</s> add import { Badge, Button, VStack, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Tooltip/CustomTooltip.tsx
|
<Center>
<Tooltip
label="Click here to read more"
openDelay={500}
bg="indigo.500"
_text={{ color: '#fff' }}
>
<Button>More</Button>
</Tooltip>
</Center>
|
<mask> import { Tooltip, Button } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Tooltip
<mask> label="Hey, I'm here!"
<mask> openDelay={500}
<mask> bg="indigo.500"
<mask> _text={{ color: '#fff' }}
<mask> >
<mask> <Button>More</Button>
<mask> </Tooltip>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove <Tooltip label="Hey, I'm here!" openDelay={500}>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip label="Click here to read more" openDelay={500}>
<Button>More</Button>
</Tooltip>
</Center> </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove import { Tooltip, Button } from 'native-base';
</s> add import { Tooltip, Button, Center } from 'native-base'; </s> remove <Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 400 }}
>
This is the Center
</s> add <Center>
<Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 250 }}
>
This is the Center
</Center> </s> remove return <Badge>NEW FEATURE</Badge>;
</s> add return (
<Box alignItems="center">
<Badge>NEW FEATURE</Badge>
</Box>
);
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/composites/Tooltip/CustomTooltip.tsx
|
width="100%"
|
<mask> });
<mask> }, [myRef]);
<mask> return (
<mask> <Box
<mask> width="90%"
<mask> bg="primary.500"
<mask> p="4"
<mask> shadow={2}
<mask> _text={{ fontSize: 'md', fontWeight: 'bold', color: 'white' }}
<mask> ref={myRef}
</s> feat: example design changes (#4522) </s> remove <Button
size="sm"
variant={'solid'}
_text={{ color: '#1F2937' }}
ref={myRef}
px="3"
>
Send
</Button>
</s> add <Box alignItems="center">
<Button
size="sm"
variant={'solid'}
_text={{ color: '#1F2937' }}
ref={myRef}
px="3"
>
Send
</Button>
</Box> </s> remove <Square size="lg" bg="primary.400">
</s> add <Square size="40px" bg="primary.400"> </s> remove <>
</s> add <Box> </s> remove <Circle size={98} bg="secondary.400">
<Icon as={<MaterialIcons name="audiotrack" />} color="white" size={8} />
</s> add <Circle size="40px" bg="secondary.400">
<Icon as={<MaterialIcons name="audiotrack" />} color="white" size={5} />
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Box/WithRef.tsx
|
<Box>
|
<mask> import React from 'react';
<mask> import { Box } from 'native-base';
<mask> export const Example = () => {
<mask> return (
<mask> <>
<mask> <Box
<mask> bg="primary.500"
<mask> _text={{
<mask> fontSize: 'md',
<mask> fontWeight: 'medium',
</s> feat: example design changes (#4522) </s> remove import { ZStack, Box } from 'native-base';
</s> add import { Center, ZStack, Box } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { ZStack, Box, Heading } from 'native-base';
</s> add import { Center, ZStack, Box } from 'native-base'; </s> remove import { TextArea } from 'native-base';
</s> add import { TextArea, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Box/basic.tsx
|
alignSelf="center"
|
<mask> return (
<mask> <Box>
<mask> <Box
<mask> bg="primary.500"
<mask> _text={{
<mask> fontSize: 'md',
<mask> fontWeight: 'medium',
</s> feat: example design changes (#4522) </s> remove <>
</s> add <Box> </s> remove width="90%"
</s> add width="100%" </s> remove bg="secondary.500"
</s> add bg="primary.500" </s> remove bg="secondary.500"
</s> add bg="primary.500" </s> remove bg="secondary.500"
</s> add bg="primary.500"
|
[
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Box/basic.tsx
|
</Box>
|
<mask> }}
<mask> >
<mask> This is a Box
<mask> </Box>
<mask> </>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 400 }}
>
This is the Center
</s> add <Center>
<Center
bg="primary.400"
_text={{ color: 'white', fontWeight: 'bold' }}
height={200}
width={{ base: 200, lg: 250 }}
>
This is the Center
</Center> </s> remove </>
</s> add </Box> </s> remove <Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</s> add <Box alignItems="center">
<Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</Box> </s> remove </>
</s> add </Center> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Box/basic.tsx
|
import { Button, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const myRef = React.useRef({});
<mask>
<mask> React.useEffect(() => {
</s> feat: example design changes (#4522) </s> remove import { Checkbox, Icon } from 'native-base';
</s> add import { Checkbox, Icon, Box } from 'native-base'; </s> remove import { Input, Button } from 'native-base';
</s> add import { Input, Button, Box } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove import { TextArea } from 'native-base';
</s> add import { TextArea, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/WithRef.tsx
|
<Box alignItems="center">
<Button
size="sm"
variant={'solid'}
_text={{ color: '#1F2937' }}
ref={myRef}
px="3"
>
Send
</Button>
</Box>
|
<mask> //@ts-ignore
<mask> myRef?.current?.setNativeProps({ style: styleObj });
<mask> }, [myRef]);
<mask> return (
<mask> <Button
<mask> size="sm"
<mask> variant={'solid'}
<mask> _text={{ color: '#1F2937' }}
<mask> ref={myRef}
<mask> px="3"
<mask> >
<mask> Send
<mask> </Button>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove width="90%"
</s> add width="100%" </s> remove <Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</s> add <Box alignItems="flex-start">
<Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</Box> </s> remove <Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</s> add <Center>
<Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</Center> </s> remove <Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</s> add <Center>
<Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</Center> </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl',
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/WithRef.tsx
|
import { Button, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <>
<mask> <Button onPress={() => console.log('hello world')}>Primary</Button>
</s> feat: example design changes (#4522) </s> remove <>
<Button onPress={() => console.log('hello world')}>Primary</Button>
</>
</s> add <Box alignItems="center">
<Button onPress={() => console.log('hello world')}>Click Me</Button>
</Box> </s> remove import { Button, Toast } from 'native-base';
</s> add import { Button, Toast, Center } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { ZStack, Box, Heading } from 'native-base';
</s> add import { Center, ZStack, Box } from 'native-base'; </s> remove import { Input, Button } from 'native-base';
</s> add import { Input, Button, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/basic.tsx
|
<Box alignItems="center">
<Button onPress={() => console.log('hello world')}>Click Me</Button>
</Box>
|
<mask> import { Button } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <>
<mask> <Button onPress={() => console.log('hello world')}>Primary</Button>
<mask> </>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove <Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
Toast.show({
title: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove import { Button, Toast } from 'native-base';
</s> add import { Button, Toast, Center } from 'native-base'; </s> remove <Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Bottom
</Button>
</s> add <Center>
<Button
onPress={() =>
toast.show({
description: 'Hello world',
})
}
>
Show Toast
</Button>
</Center> </s> remove <>
</s> add <Center>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/basic.tsx
|
import { Button, Box, VStack } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Button, Box, Heading, VStack } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={4} alignItems="center">
<mask> <Heading mb="10">Sizes</Heading>
</s> feat: example design changes (#4522) </s> remove import { IconButton, Box, Center, Heading, VStack } from 'native-base';
</s> add import { IconButton, Box, Center, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base';
</s> add import { Switch, VStack } from 'native-base'; </s> remove import { Slider, Heading, VStack } from 'native-base';
</s> add import { Slider, Box, VStack } from 'native-base'; </s> remove import { Heading, Text, VStack } from 'native-base';
</s> add import { Text, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base';
</s> add import { Switch, VStack } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/sizes.tsx
|
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={4} alignItems="center">
<mask> <Heading mb="10">Sizes</Heading>
<mask> {['xs', 'sm', 'md', 'lg'].map((size) => (
<mask> <Box>
<mask> {/* @ts-ignore */}
<mask> <Button key={size} size={size}>
<mask> BUTTON
</s> feat: example design changes (#4522) </s> remove <Heading mb="10">Sizes</Heading>
<VStack space={2}>
</s> add <VStack space={4}> </s> remove <Heading mb="10">Sizes</Heading>
</s> add </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove <Heading mb="10">Sizes</Heading>
</s> add </s> remove import { Switch, VStack, Heading } from 'native-base';
</s> add import { Switch, VStack } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/sizes.tsx
|
|
space={4}
|
<mask> return (
<mask> <ScrollView showsVerticalScrollIndicator={false} px="3">
<mask> <VStack
<mask> w="100%"
<mask> space={2.5}
<mask> px="2"
<mask> mt="4"
<mask> alignItems="center"
<mask> justifyContent="center"
<mask> >
</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="2.5" mt="4">
</s> add <VStack space="2.5" mt="4" px="8"> </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 <Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</s> add <Center>
<Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</Center> </s> remove <ScrollView px="30" my="3" showsVerticalScrollIndicator={false}>
<Stack space={3} w="100%">
</s> add <Center>
<Stack space={3} w="90%" maxW="400">
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Button/variants.tsx
|
<Button.Group
isAttached
colorScheme="blue"
mx={{ base: 'auto', md: 0 }}
size="sm"
>
<Button>Edit</Button>
<Button variant="outline">Save</Button>
|
<mask> import { Button } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Button.Group colorScheme="blue" mx={{ base: 'auto', md: 0 }} size="sm">
<mask> <Button>Save</Button>
<mask> <Button>Cancel</Button>
<mask> </Button.Group>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <HStack space={{ base: 2, md: 4 }} mx={{ base: 'auto', md: 0 }}>
</s> add <HStack space={4} mx={{ base: 'auto', md: 0 }}> </s> remove <HStack mx={{ base: 'auto', md: '0' }} space={2}>
</s> add <HStack justifyContent="center" mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: '0' }} space={2}>
</s> add <HStack justifyContent="center" mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <>
<HStack space={{ base: '2', md: '4' }} mx={{ base: 'auto', md: '0' }}>
</s> add <Box alignItems="center">
<HStack space={4} mx={{ base: 'auto', md: '0' }}> </s> remove <VStack>
<Badge
// bg="red.400"
colorScheme="danger"
rounded="999px"
mb={-4}
mr={-4}
zIndex={1}
variant="solid"
alignSelf="flex-end"
_text={{ fontSize: 12 }}
>
2
</Badge>
<Button
mx={{ base: 'auto', md: 0 }}
p="2"
bg="cyan.500"
_text={{ fontSize: 14 }}
>
Notifications
</Button>
</VStack>
</s> add <Box alignItems="center">
<VStack>
<Badge
// bg="red.400"
colorScheme="danger"
rounded="full"
mb={-4}
mr={-4}
zIndex={1}
variant="solid"
alignSelf="flex-end"
_text={{ fontSize: 12 }}
>
2
</Badge>
<Button
mx={{ base: 'auto', md: 0 }}
p="2"
bg="cyan.500"
_text={{ fontSize: 14 }}
>
Notifications
</Button>
</VStack>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/ButtonGroup/basic.tsx
|
Box,
|
<mask> Text,
<mask> Container,
<mask> WarningOutlineIcon,
<mask> } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const [groupValue, setGroupValue] = React.useState(['Phone', 'Email']);
<mask>
</s> feat: example design changes (#4522) </s> remove Container,
</s> add Center, </s> remove import { Skeleton, Text, Avatar, Box } from 'native-base';
</s> add import {
Skeleton,
Text,
Button,
Box,
Image,
VStack,
Center,
} from 'native-base'; </s> remove import { Button, Modal, VStack, HStack, Text, Radio } from 'native-base';
</s> add import {
Button,
Modal,
VStack,
HStack,
Text,
Radio,
Center,
} from 'native-base'; </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base';
</s> add import {
FormControl,
Slider,
VStack,
WarningOutlineIcon,
Box,
} from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base';
|
[
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/FormControlled.tsx
|
<Box alignItems="center">
<Container>
<FormControl isInvalid>
<FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
Preferred contact method
</FormControl.Label>
<Text fontSize="md">Selected Values: </Text>
<Checkbox.Group
mt="2"
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="choose multiple items"
onChange={(values) => {
setGroupValue(values || []);
}}
alignItems="flex-start"
>
<Checkbox value="Phone" my="1">
Phone
</Checkbox>
<Checkbox value="Email" my="1">
Email
</Checkbox>
<Checkbox value="Message" my="1">
Message
</Checkbox>
<Checkbox value="Fax" my="1">
Fax
</Checkbox>
</Checkbox.Group>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
You must select at least three methods
</FormControl.ErrorMessage>
</FormControl>
</Container>
</Box>
|
<mask> export const Example = () => {
<mask> const [groupValue, setGroupValue] = React.useState(['Phone', 'Email']);
<mask>
<mask> return (
<mask> <Container>
<mask> <FormControl isInvalid>
<mask> <FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
<mask> Preferred contact method
<mask> </FormControl.Label>
<mask> <Text fontSize="md">Selected Values: </Text>
<mask> <Checkbox.Group
<mask> mt="2"
<mask> colorScheme="green"
<mask> defaultValue={groupValue}
<mask> accessibilityLabel="choose multiple items"
<mask> onChange={(values) => {
<mask> setGroupValue(values || []);
<mask> }}
<mask> alignItems="flex-start"
<mask> >
<mask> <Checkbox value="Phone" my="1">
<mask> Phone
<mask> </Checkbox>
<mask> <Checkbox value="Email" my="1">
<mask> Email
<mask> </Checkbox>
<mask> <Checkbox value="Message" my="1">
<mask> Message
<mask> </Checkbox>
<mask> <Checkbox value="Fax" my="1">
<mask> Fax
<mask> </Checkbox>
<mask> </Checkbox.Group>
<mask> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
<mask> You must select at least three methods
<mask> </FormControl.ErrorMessage>
<mask> </FormControl>
<mask> </Container>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Checkbox.Group
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="pick an item"
onChange={(values) => {
setGroupValue(values || []);
}}
>
<Checkbox value="Photography" my="1">
Photography
</Checkbox>
<Checkbox value="Writing" my="1">
Writing
</Checkbox>
<Checkbox value="Gardening" my="1">
Gardening
</Checkbox>
<Checkbox value="Cooking" my="1">
Cooking
</Checkbox>
</Checkbox.Group>
</VStack>
</s> add </Box> </s> remove <VStack space={2}>
<HStack alignItems="baseline">
<Heading fontSize="lg">Hobbies</Heading>
</HStack>
<VStack>
<Box>
<Text>Selected: ({groupValue.length})</Text>
</Box>
</s> add <Box alignItems="center">
<VStack space={2}>
<HStack alignItems="baseline">
<Heading fontSize="lg">Hobbies</Heading>
</HStack>
<VStack>
<Box>
<Text>Selected: ({groupValue.length})</Text>
</Box>
</VStack>
<Checkbox.Group
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="pick an item"
onChange={(values) => {
setGroupValue(values || []);
}}
>
<Checkbox value="Photography" my="1">
Photography
</Checkbox>
<Checkbox value="Writing" my="1">
Writing
</Checkbox>
<Checkbox value="Gardening" my="1">
Gardening
</Checkbox>
<Checkbox value="Cooking" my="1">
Cooking
</Checkbox>
</Checkbox.Group> </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box> </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/FormControlled.tsx
|
<Box alignItems="center">
<VStack space={2}>
<HStack alignItems="baseline">
<Heading fontSize="lg">Hobbies</Heading>
</HStack>
<VStack>
<Box>
<Text>Selected: ({groupValue.length})</Text>
</Box>
</VStack>
<Checkbox.Group
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="pick an item"
onChange={(values) => {
setGroupValue(values || []);
}}
>
<Checkbox value="Photography" my="1">
Photography
</Checkbox>
<Checkbox value="Writing" my="1">
Writing
</Checkbox>
<Checkbox value="Gardening" my="1">
Gardening
</Checkbox>
<Checkbox value="Cooking" my="1">
Cooking
</Checkbox>
</Checkbox.Group>
|
<mask> 'Gardening',
<mask> ]);
<mask>
<mask> return (
<mask> <VStack space={2}>
<mask> <HStack alignItems="baseline">
<mask> <Heading fontSize="lg">Hobbies</Heading>
<mask> </HStack>
<mask> <VStack>
<mask> <Box>
<mask> <Text>Selected: ({groupValue.length})</Text>
<mask> </Box>
<mask> </VStack>
<mask> <Checkbox.Group
<mask> colorScheme="green"
<mask> defaultValue={groupValue}
<mask> accessibilityLabel="pick an item"
</s> feat: example design changes (#4522) </s> remove <Checkbox.Group
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="pick an item"
onChange={(values) => {
setGroupValue(values || []);
}}
>
<Checkbox value="Photography" my="1">
Photography
</Checkbox>
<Checkbox value="Writing" my="1">
Writing
</Checkbox>
<Checkbox value="Gardening" my="1">
Gardening
</Checkbox>
<Checkbox value="Cooking" my="1">
Cooking
</Checkbox>
</Checkbox.Group>
</VStack>
</s> add </Box> </s> remove <HStack space={2}>
</s> add <HStack justifyContent="center" space={2}> </s> remove <Center>
<Heading mb="10" size="md">
Sizes
</Heading>
<Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
>
<Stack
direction={{ base: 'column', md: 'row' }}
alignItems="center"
space={4}
w="75%"
maxW="300px" </s> remove <Heading mb="10">Sizes</Heading>
<VStack space={2}>
</s> add <VStack space={4}> </s> remove <Container>
<FormControl isInvalid>
<FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
Preferred contact method
</FormControl.Label>
<Text fontSize="md">Selected Values: </Text>
<Checkbox.Group
mt="2"
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="choose multiple items"
onChange={(values) => {
setGroupValue(values || []);
}}
alignItems="flex-start"
>
<Checkbox value="Phone" my="1">
Phone
</Checkbox>
<Checkbox value="Email" my="1">
Email
</Checkbox>
<Checkbox value="Message" my="1">
Message
</Checkbox>
<Checkbox value="Fax" my="1">
Fax
</Checkbox>
</Checkbox.Group>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
You must select at least three methods
</FormControl.ErrorMessage>
</FormControl>
</Container>
</s> add <Box alignItems="center">
<Container>
<FormControl isInvalid>
<FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
Preferred contact method
</FormControl.Label>
<Text fontSize="md">Selected Values: </Text>
<Checkbox.Group
mt="2"
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="choose multiple items"
onChange={(values) => {
setGroupValue(values || []);
}}
alignItems="flex-start"
>
<Checkbox value="Phone" my="1">
Phone
</Checkbox>
<Checkbox value="Email" my="1">
Email
</Checkbox>
<Checkbox value="Message" my="1">
Message
</Checkbox>
<Checkbox value="Fax" my="1">
Fax
</Checkbox>
</Checkbox.Group>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
You must select at least three methods
</FormControl.ErrorMessage>
</FormControl>
</Container>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/checkboxGroup.tsx
|
</Box>
|
<mask> <Box>
<mask> <Text>Selected: ({groupValue.length})</Text>
<mask> </Box>
<mask> </VStack>
<mask> <Checkbox.Group
<mask> colorScheme="green"
<mask> defaultValue={groupValue}
<mask> accessibilityLabel="pick an item"
<mask> onChange={(values) => {
<mask> setGroupValue(values || []);
<mask> }}
<mask> >
<mask> <Checkbox value="Photography" my="1">
<mask> Photography
<mask> </Checkbox>
<mask> <Checkbox value="Writing" my="1">
<mask> Writing
<mask> </Checkbox>
<mask> <Checkbox value="Gardening" my="1">
<mask> Gardening
<mask> </Checkbox>
<mask> <Checkbox value="Cooking" my="1">
<mask> Cooking
<mask> </Checkbox>
<mask> </Checkbox.Group>
<mask> </VStack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <VStack space={2}>
<HStack alignItems="baseline">
<Heading fontSize="lg">Hobbies</Heading>
</HStack>
<VStack>
<Box>
<Text>Selected: ({groupValue.length})</Text>
</Box>
</s> add <Box alignItems="center">
<VStack space={2}>
<HStack alignItems="baseline">
<Heading fontSize="lg">Hobbies</Heading>
</HStack>
<VStack>
<Box>
<Text>Selected: ({groupValue.length})</Text>
</Box>
</VStack>
<Checkbox.Group
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="pick an item"
onChange={(values) => {
setGroupValue(values || []);
}}
>
<Checkbox value="Photography" my="1">
Photography
</Checkbox>
<Checkbox value="Writing" my="1">
Writing
</Checkbox>
<Checkbox value="Gardening" my="1">
Gardening
</Checkbox>
<Checkbox value="Cooking" my="1">
Cooking
</Checkbox>
</Checkbox.Group> </s> remove <Container>
<FormControl isInvalid>
<FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
Preferred contact method
</FormControl.Label>
<Text fontSize="md">Selected Values: </Text>
<Checkbox.Group
mt="2"
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="choose multiple items"
onChange={(values) => {
setGroupValue(values || []);
}}
alignItems="flex-start"
>
<Checkbox value="Phone" my="1">
Phone
</Checkbox>
<Checkbox value="Email" my="1">
Email
</Checkbox>
<Checkbox value="Message" my="1">
Message
</Checkbox>
<Checkbox value="Fax" my="1">
Fax
</Checkbox>
</Checkbox.Group>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
You must select at least three methods
</FormControl.ErrorMessage>
</FormControl>
</Container>
</s> add <Box alignItems="center">
<Container>
<FormControl isInvalid>
<FormControl.Label _text={{ fontSize: 'lg', bold: true }}>
Preferred contact method
</FormControl.Label>
<Text fontSize="md">Selected Values: </Text>
<Checkbox.Group
mt="2"
colorScheme="green"
defaultValue={groupValue}
accessibilityLabel="choose multiple items"
onChange={(values) => {
setGroupValue(values || []);
}}
alignItems="flex-start"
>
<Checkbox value="Phone" my="1">
Phone
</Checkbox>
<Checkbox value="Email" my="1">
Email
</Checkbox>
<Checkbox value="Message" my="1">
Message
</Checkbox>
<Checkbox value="Fax" my="1">
Fax
</Checkbox>
</Checkbox.Group>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
You must select at least three methods
</FormControl.ErrorMessage>
</FormControl>
</Container>
</Box> </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box> </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box>
|
[
"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",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/checkboxGroup.tsx
|
import { Checkbox, Stack, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Checkbox, VStack } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={3} alignItems="flex-start">
<mask> <Checkbox value="danger" colorScheme="danger" defaultIsChecked>
</s> feat: example design changes (#4522) </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box> </s> remove import { Checkbox, VStack, Icon } from 'native-base';
</s> add import { Checkbox, Stack, Icon, Box } from 'native-base'; </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start" </s> remove import { Checkbox, VStack, Center, Heading } from 'native-base';
</s> add import { Checkbox, VStack, Center } from 'native-base'; </s> remove import { Slider, Heading, VStack } from 'native-base';
</s> add import { Slider, Box, VStack } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/customColor.tsx
|
<Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box>
|
<mask> import { Checkbox, VStack } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={3} alignItems="flex-start">
<mask> <Checkbox value="danger" colorScheme="danger" defaultIsChecked>
<mask> Danger
<mask> </Checkbox>
<mask> <Checkbox value="info" colorScheme="info" defaultIsChecked>
<mask> Info
<mask> </Checkbox>
<mask> <Checkbox value="orange" colorScheme="orange" defaultIsChecked>
<mask> Orange
<mask> </Checkbox>
<mask> <Checkbox value="purple" colorScheme="purple" defaultIsChecked>
<mask> Purple
<mask> </Checkbox>
<mask> </VStack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove import { Checkbox, VStack } from 'native-base';
</s> add import { Checkbox, Stack, Box } from 'native-base'; </s> remove <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
</s> add <Checkbox value="red" size="sm" defaultIsChecked> </s> remove <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
Development
</s> add <Checkbox size="md" defaultIsChecked value="green">
UX Research </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/customColor.tsx
|
import { Checkbox, Stack, Icon, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Checkbox, VStack, Icon } from 'native-base';
<mask> import { MaterialCommunityIcons } from '@expo/vector-icons';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={3} alignItems="flex-start">
</s> feat: example design changes (#4522) </s> remove import { Checkbox, Icon } from 'native-base';
</s> add import { Checkbox, Icon, Box } from 'native-base'; </s> remove import { Checkbox, VStack } from 'native-base';
</s> add import { Checkbox, Stack, Box } from 'native-base'; </s> remove import { IconButton, Icon } from 'native-base';
</s> add import { IconButton, Icon, Box } from 'native-base'; </s> remove import { Checkbox, VStack, Center, Heading } from 'native-base';
</s> add import { Checkbox, VStack, Center } from 'native-base'; </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/customIcon.tsx
|
<Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
|
<mask> import { MaterialCommunityIcons } from '@expo/vector-icons';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={3} alignItems="flex-start">
<mask> <Checkbox
<mask> value="orange"
<mask> colorScheme="orange"
<mask> size="md"
<mask> icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
<mask> defaultIsChecked
<mask> >
<mask> Darts
<mask> </Checkbox>
<mask> <Checkbox
<mask> value="dark"
</s> feat: example design changes (#4522) </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box> </s> remove <Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</s> add <Box alignItems="flex-start">
<Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</Box> </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add </s> remove import { Checkbox, VStack, Icon } from 'native-base';
</s> add import { Checkbox, Stack, Icon, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/customIcon.tsx
|
<Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box>
|
<mask> size="md"
<mask> icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
<mask> defaultIsChecked
<mask> >
<mask> Darts
<mask> </Checkbox>
<mask> <Checkbox
<mask> value="dark"
<mask> colorScheme="dark"
<mask> size="md"
<mask> icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
<mask> defaultIsChecked
<mask> >
<mask> Movie
<mask> </Checkbox>
<mask> <Checkbox
<mask> colorScheme="red"
<mask> value="red"
<mask> size="md"
<mask> icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
<mask> defaultIsChecked
<mask> >
<mask> Camping
<mask> </Checkbox>
<mask> <Checkbox
<mask> value="blue"
<mask> colorScheme="blue"
<mask> size="md"
<mask> icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
<mask> defaultIsChecked
<mask> >
<mask> Chess
<mask> </Checkbox>
<mask> </VStack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start" </s> remove <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
Development
</s> add <Checkbox size="md" defaultIsChecked value="green">
UX Research </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove <Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</s> add <Box alignItems="flex-start">
<Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</Box> </s> remove <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
</s> add <Checkbox value="red" size="sm" defaultIsChecked>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/customIcon.tsx
|
import { Checkbox, VStack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Checkbox, VStack, Center, Heading } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Center>
<mask> <Heading textAlign="center" mb="10">
</s> feat: example design changes (#4522) </s> remove import { Switch, VStack, Heading } from 'native-base';
</s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base';
</s> add import { Switch, VStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base';
</s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base';
</s> add import { Spinner, HStack } from 'native-base'; </s> remove import { VStack, Center, Heading } from 'native-base';
</s> add import { VStack, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/size.tsx
|
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Center>
<mask> <Heading textAlign="center" mb="10">
<mask> Sizes
<mask> </Heading>
<mask> <VStack space={3}>
<mask> <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
<mask> UX Research
<mask> </Checkbox>
<mask> <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
</s> feat: example design changes (#4522) </s> remove <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
</s> add <Checkbox value="red" size="sm" defaultIsChecked> </s> remove <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
Development
</s> add <Checkbox size="md" defaultIsChecked value="green">
UX Research </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/size.tsx
|
|
<Checkbox value="red" size="sm" defaultIsChecked>
|
<mask> <Heading textAlign="center" mb="10">
<mask> Sizes
<mask> </Heading>
<mask> <VStack space={3}>
<mask> <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
<mask> UX Research
<mask> </Checkbox>
<mask> <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
<mask> Development
<mask> </Checkbox>
</s> feat: example design changes (#4522) </s> remove <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
Development
</s> add <Checkbox size="md" defaultIsChecked value="green">
UX Research </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/size.tsx
|
<Checkbox size="md" defaultIsChecked value="green">
UX Research
|
<mask> <VStack space={3}>
<mask> <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
<mask> UX Research
<mask> </Checkbox>
<mask> <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
<mask> Development
<mask> </Checkbox>
<mask> <Checkbox
<mask> colorScheme="purple"
<mask> value="yellow"
<mask> size="lg"
</s> feat: example design changes (#4522) </s> remove <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
</s> add <Checkbox value="red" size="sm" defaultIsChecked> </s> remove <Checkbox
colorScheme="purple"
value="yellow"
size="lg"
defaultIsChecked
>
Devops
</s> add <Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/size.tsx
|
<Checkbox value="yellow" size="lg" defaultIsChecked>
UX Research
|
<mask> </Checkbox>
<mask> <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
<mask> Development
<mask> </Checkbox>
<mask> <Checkbox
<mask> colorScheme="purple"
<mask> value="yellow"
<mask> size="lg"
<mask> defaultIsChecked
<mask> >
<mask> Devops
<mask> </Checkbox>
<mask> </VStack>
<mask> </Center>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Checkbox colorScheme="green" size="md" defaultIsChecked value="green">
Development
</s> add <Checkbox size="md" defaultIsChecked value="green">
UX Research </s> remove <Checkbox value="red" colorScheme="red" size="sm" defaultIsChecked>
</s> add <Checkbox value="red" size="sm" defaultIsChecked> </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</VStack>
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start"
>
<Checkbox value="danger" colorScheme="danger" defaultIsChecked>
Danger
</Checkbox>
<Checkbox value="info" colorScheme="info" defaultIsChecked>
Info
</Checkbox>
<Checkbox value="orange" colorScheme="orange" defaultIsChecked>
Orange
</Checkbox>
<Checkbox value="purple" colorScheme="purple" defaultIsChecked>
Purple
</Checkbox>
</Stack>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/size.tsx
|
import { Checkbox, Icon, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Checkbox, Icon } from 'native-base';
<mask> import { MaterialCommunityIcons } from '@expo/vector-icons';
<mask> import { Platform } from 'react-native';
<mask>
<mask> export const Example = () => {
<mask> const myRef = React.useRef();
</s> feat: example design changes (#4522) </s> remove import { Checkbox, VStack, Icon } from 'native-base';
</s> add import { Checkbox, Stack, Icon, Box } from 'native-base'; </s> remove import { IconButton, Icon } from 'native-base';
</s> add import { IconButton, Icon, Box } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { Checkbox, VStack, Center, Heading } from 'native-base';
</s> add import { Checkbox, VStack, Center } from 'native-base'; </s> remove import { Checkbox, VStack } from 'native-base';
</s> add import { Checkbox, Stack, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/withRef.tsx
|
<Box alignItems="flex-start">
<Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</Box>
|
<mask> myRef?.current?.setNativeProps({ style: styleObj });
<mask> }
<mask> }, [myRef, bg]);
<mask> return (
<mask> <Checkbox
<mask> value="success"
<mask> colorScheme="success"
<mask> icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
<mask> wrapperRef={myRef}
<mask> onChange={(state) => {
<mask> if (state) {
<mask> setBg('#00de0050');
<mask> } else {
<mask> setBg('#fa000050');
<mask> }
<mask> }}
<mask> >
<mask> Archery
<mask> </Checkbox>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <VStack space={3} alignItems="flex-start">
<Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
</s> add <Box alignItems="center">
<Stack
direction={{ base: 'column', md: 'row' }}
space={3}
alignItems="flex-start" </s> remove Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</VStack>
</s> add <Checkbox
value="orange"
colorScheme="orange"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bullseye" />} />}
defaultIsChecked
>
Darts
</Checkbox>
<Checkbox
value="dark"
colorScheme="dark"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="bat" />} />}
defaultIsChecked
>
Movie
</Checkbox>
<Checkbox
colorScheme="red"
value="red"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="campfire" />} />}
defaultIsChecked
>
Camping
</Checkbox>
<Checkbox
value="blue"
colorScheme="blue"
size="md"
icon={<Icon as={<MaterialCommunityIcons name="chess-knight" />} />}
defaultIsChecked
>
Chess
</Checkbox>
</Stack>
</Box> </s> remove <Button
size="sm"
variant={'solid'}
_text={{ color: '#1F2937' }}
ref={myRef}
px="3"
>
Send
</Button>
</s> add <Box alignItems="center">
<Button
size="sm"
variant={'solid'}
_text={{ color: '#1F2937' }}
ref={myRef}
px="3"
>
Send
</Button>
</Box> </s> remove <Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</s> add <Center>
<Button
onPress={() => {
if (!toast.isActive(id)) {
toast.show({
id,
title: "Hey! You can't create a duplicate toast",
});
}
}}
>
Click me!
</Button>
</Center> </s> remove <IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
</s> add <Box alignItems="center">
<IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
_icon: {
size: '2xl',
},
},
}}
_ios={{
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Checkbox/withRef.tsx
|
<Flex h={40} alignItems="center">
|
<mask> import { Flex, Spacer, Center } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Flex h={40} w={20} mt={6}>
<mask> <Center
<mask> size={16}
<mask> bg="primary.500"
<mask> _dark={{ bg: 'primary.400' }}
<mask> rounded="sm"
</s> feat: example design changes (#4522) </s> remove import { Divider, Flex, Text } from 'native-base';
</s> add import { Divider, Flex, Text, Box } from 'native-base'; </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove import { Box, Progress, Heading, Center } from 'native-base';
</s> add import { Box, Progress, Center } from 'native-base'; </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Flex/spacer.tsx
|
import { HStack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { HStack, Stack, Center, Heading } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Stack
<mask> space={[20, 40, 80]}
</s> feat: example design changes (#4522) </s> remove <Stack
space={[20, 40, 80]}
direction={['row', 'column', 'row-reverse']}
alignItems="center"
>
<Heading textAlign="center">HStack</Heading>
<Heading textAlign="center">HStack1</Heading>
{/* <HStack space={3} alignItems="center">
<Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} />
<Center h="40" w="20" bg="secondary.500" rounded="md" shadow={3} />
<Center h="40" w="20" bg="emerald.500" rounded="md" shadow={3} />
</HStack> */}
</Stack>
</s> add <HStack space={3} justifyContent="center">
<Center h="40" w="20" bg="primary.300" rounded="md" shadow={3} />
<Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} />
<Center h="40" w="20" bg="primary.700" rounded="md" shadow={3} />
</HStack> </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { VStack, Center, Heading } from 'native-base';
</s> add import { VStack, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/HStack/basic.tsx
|
<HStack space={3} justifyContent="center">
<Center h="40" w="20" bg="primary.300" rounded="md" shadow={3} />
<Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} />
<Center h="40" w="20" bg="primary.700" rounded="md" shadow={3} />
</HStack>
|
<mask> import { HStack, Stack, Center, Heading } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Stack
<mask> space={[20, 40, 80]}
<mask> direction={['row', 'column', 'row-reverse']}
<mask> alignItems="center"
<mask> >
<mask> <Heading textAlign="center">HStack</Heading>
<mask> <Heading textAlign="center">HStack1</Heading>
<mask> {/* <HStack space={3} alignItems="center">
<mask> <Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} />
<mask> <Center h="40" w="20" bg="secondary.500" rounded="md" shadow={3} />
<mask> <Center h="40" w="20" bg="emerald.500" rounded="md" shadow={3} />
<mask> </HStack> */}
<mask> </Stack>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove <Heading textAlign="center" mb="10">
VStack
</Heading>
<Center w="64" h="20" bg="primary.500" rounded="md" shadow={3} />
<Center w="64" h="20" bg="secondary.500" rounded="md" shadow={3} />
<Center w="64" h="20" bg="emerald.500" rounded="md" shadow={3} />
</s> add <Center w="64" h="20" bg="indigo.300" rounded="md" shadow={3} />
<Center w="64" h="20" bg="indigo.500" rounded="md" shadow={3} />
<Center w="64" h="20" bg="indigo.700" rounded="md" shadow={3} /> </s> remove import { HStack, Stack, Center, Heading } from 'native-base';
</s> add import { HStack, Center } from 'native-base'; </s> remove <VStack
w="400"
borderWidth="1"
space={8}
overflow="hidden"
rounded="md"
borderColor="coolGray.200"
>
<Skeleton h="40" />
<Skeleton.Text px="4" />
<Skeleton m="4" rounded="md" startColor="primary.100" />
</VStack>
</s> add <Center>
<VStack
w="90%"
maxW="400"
borderWidth="1"
space={8}
overflow="hidden"
rounded="md"
borderColor="coolGray.200"
>
<Skeleton h="40" />
<Skeleton.Text px="4" />
<Skeleton px="4" my="4" rounded="md" startColor="primary.100" />
</VStack>
</Center> </s> remove <>
<Heading mb="10">ZStack</Heading>
<Box h="40">
</s> add <Center h="40">
<Box mt="-32"> </s> remove <VStack
w="400"
borderWidth="1"
space={6}
rounded="md"
alignItems="center"
borderColor="coolGray.200"
>
<Skeleton h="40" />
<Skeleton
borderWidth={1}
</s> add <Center>
<VStack
w="90%"
maxW="400"
borderWidth="1"
space={6}
rounded="md"
alignItems="center"
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/HStack/basic.tsx
|
<mask>
<mask> export function Example() {
<mask> return (
<mask> <VStack space={1} alignItems="center">
<mask> <Heading textAlign="center" mb="10">
<mask> Sizes
<mask> </Heading>
<mask> <Heading size="xs">xs</Heading>
<mask> <Heading size="sm">sm</Heading>
<mask> <Heading size="md">md</Heading>
<mask> <Heading size="lg">lg</Heading>
<mask> <Heading size="xl">xl</Heading>
</s> feat: example design changes (#4522) </s> remove <VStack space={1} alignItems="center" mt={3}>
<Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add <VStack space={1} alignItems="center"> </s> remove <Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add </s> remove <VStack space={4} alignItems="center">
<Heading textAlign="center" mb="10">
Sizes
</Heading>
</s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove import { VStack, Center, Heading } from 'native-base';
</s> add import { VStack, Center } from 'native-base'; </s> remove <Heading textAlign="center" mb="10">
Track & Thumb color
</Heading>
</s> add
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Heading/Sizes.tsx
|
|
import { Input, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
<mask> };
</s> feat: example design changes (#4522) </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
</s> add return (
<Box alignItems="center">
<Input mx="3" placeholder="Input" w="75%" maxWidth="300px" />
</Box>
); </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Basic.tsx
|
return (
<Box alignItems="center">
<Input mx="3" placeholder="Input" w="75%" maxWidth="300px" />
</Box>
);
|
<mask> import React from 'react';
<mask> import { Input } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Basic.tsx
|
import { Input, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const [value, setValue] = React.useState('');
<mask> const handleChange = (text: string) => setValue(text);
<mask> return (
</s> feat: example design changes (#4522) </s> remove <Input
value={value}
w={{ base: '75%', md: '25%' }}
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</s> add <Box alignItems="center">
<Input
value={value}
w="75%"
maxW="300px"
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</Box> </s> remove
</s> add const ref = React.useRef(null);
React.useEffect(() => {
console.log('ref here', ref.current);
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
ref.current.focus();
}, []); </s> remove import { Select, VStack, CheckIcon } from 'native-base';
</s> add import { Select, Box, CheckIcon, Center } from 'native-base'; </s> remove import { Button, Modal, FormControl, Input } from 'native-base';
</s> add import { Button, Modal, FormControl, Input, Center } from 'native-base'; </s> remove import { Button, useToast } from 'native-base';
</s> add import { Button, useToast, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Controlled.tsx
|
<Box alignItems="center">
<Input
value={value}
w="75%"
maxW="300px"
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</Box>
|
<mask> export const Example = () => {
<mask> const [value, setValue] = React.useState('');
<mask> const handleChange = (text: string) => setValue(text);
<mask> return (
<mask> <Input
<mask> value={value}
<mask> w={{ base: '75%', md: '25%' }}
<mask> onChangeText={handleChange}
<mask> placeholder="Value Controlled Input"
<mask> />
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
</s> add return (
<Box alignItems="center">
<Input mx="3" placeholder="Input" w="75%" maxWidth="300px" />
</Box>
); </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove <Stack mt={3} space={4} w={{ base: '75%', md: '25%' }}>
<Center>
<Heading textAlign="center" mb="10">
Input sizes
</Heading>
</Center>
<Input size="xs" placeholder="xs Input" />
<Input size="sm" placeholder="sm Input" />
<Input size="md" placeholder="md Input" />
<Input size="lg" placeholder="lg Input" />
<Input size="xl" placeholder="xl Input" />
<Input size="2xl" placeholder="2xl Input" />
</Stack>
</s> add <Center>
<Stack mt={3} space={4} w="75%" maxW="300px">
<Input size="xs" placeholder="xs Input" />
<Input size="sm" placeholder="sm Input" />
<Input size="md" placeholder="md Input" />
<Input size="lg" placeholder="lg Input" />
<Input size="xl" placeholder="xl Input" />
<Input size="2xl" placeholder="2xl Input" />
</Stack>
</Center> </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Controlled.tsx
|
<mask> import { Input, Icon, Stack } from 'native-base';
<mask> import { MaterialIcons } from '@expo/vector-icons';
<mask>
<mask> export const Example = () => {
<mask> const [show, setShow] = React.useState(false);
<mask> return (
<mask> <Stack space={4} w="100%" alignItems="center">
<mask> <Input
<mask> w={{ base: '75%', md: '25%' }}
<mask> InputLeftElement={
</s> feat: example design changes (#4522) </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove import { Input, Button } from 'native-base';
</s> add import { Input, Button, Box } from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Elements.tsx
|
|
<mask> placeholder="Name"
<mask> />
<mask> <Input
<mask> w={{ base: '75%', md: '25%' }}
<mask> type={show ? 'text' : 'password'}
<mask> InputRightElement={
<mask> <Icon
<mask> as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
<mask> size={5}
<mask> mr="2"
</s> feat: example design changes (#4522) </s> remove as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
</s> add as={<MaterialIcons name="visibility-off" />} </s> remove onPress={() => setShow(!show)}
</s> add </s> remove <Input
type={show ? 'text' : 'password'}
w={{ base: '75%', md: '25%' }}
InputRightElement={
<Button size="xs" rounded="none" w="1/6" h="full" onPress={handleClick}>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</s> add <Box alignItems="center">
<Input
type={show ? 'text' : 'password'}
w="75%"
maxW="300px"
py="0"
InputRightElement={
<Button
size="xs"
rounded="none"
w="1/6"
h="full"
onPress={handleClick}
>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</Box> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove placement={position == 'auto' ? undefined : position}
</s> add placement={position === 'auto' ? undefined : position}
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Elements.tsx
|
|
as={<MaterialIcons name="visibility-off" />}
|
<mask> w={{ base: '75%', md: '25%' }}
<mask> type={show ? 'text' : 'password'}
<mask> InputRightElement={
<mask> <Icon
<mask> as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
<mask> size={5}
<mask> mr="2"
<mask> color="muted.400"
<mask> onPress={() => setShow(!show)}
<mask> />
</s> feat: example design changes (#4522) </s> remove type={show ? 'text' : 'password'}
</s> add </s> remove onPress={() => setShow(!show)}
</s> add </s> remove <Input
type={show ? 'text' : 'password'}
w={{ base: '75%', md: '25%' }}
InputRightElement={
<Button size="xs" rounded="none" w="1/6" h="full" onPress={handleClick}>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</s> add <Box alignItems="center">
<Input
type={show ? 'text' : 'password'}
w="75%"
maxW="300px"
py="0"
InputRightElement={
<Button
size="xs"
rounded="none"
w="1/6"
h="full"
onPress={handleClick}
>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</Box> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove placement={position == 'auto' ? undefined : position}
</s> add placement={position === 'auto' ? undefined : position}
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Elements.tsx
|
<mask> as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
<mask> size={5}
<mask> mr="2"
<mask> color="muted.400"
<mask> onPress={() => setShow(!show)}
<mask> />
<mask> }
<mask> placeholder="Password"
<mask> />
<mask> </Stack>
</s> feat: example design changes (#4522) </s> remove as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
</s> add as={<MaterialIcons name="visibility-off" />} </s> remove type={show ? 'text' : 'password'}
</s> add </s> remove <Input
type={show ? 'text' : 'password'}
w={{ base: '75%', md: '25%' }}
InputRightElement={
<Button size="xs" rounded="none" w="1/6" h="full" onPress={handleClick}>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</s> add <Box alignItems="center">
<Input
type={show ? 'text' : 'password'}
w="75%"
maxW="300px"
py="0"
InputRightElement={
<Button
size="xs"
rounded="none"
w="1/6"
h="full"
onPress={handleClick}
>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</Box> </s> remove <Circle size={98} bg="secondary.400">
<Icon as={<MaterialIcons name="audiotrack" />} color="white" size={8} />
</s> add <Circle size="40px" bg="secondary.400">
<Icon as={<MaterialIcons name="audiotrack" />} color="white" size={5} /> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Elements.tsx
|
|
import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input, FormControl, WarningOutlineIcon } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <FormControl isInvalid w={{ base: '75%', md: '25%' }}>
<mask> <FormControl.Label>Password</FormControl.Label>
</s> feat: example design changes (#4522) </s> remove <FormControl isInvalid w={{ base: '75%', md: '25%' }}>
<FormControl.Label>Password</FormControl.Label>
<Input placeholder="Enter password" />
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Try different from previous passwords.
</FormControl.ErrorMessage>
</FormControl>
</s> add <Box alignItems="center">
<FormControl isInvalid w="75%" maxW="300px">
<FormControl.Label>Password</FormControl.Label>
<Input placeholder="Enter password" />
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Try different from previous passwords.
</FormControl.ErrorMessage>
</FormControl>
</Box> </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove const [show, setShow] = React.useState(false);
</s> add
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/FormControlled.tsx
|
<Box alignItems="center">
<FormControl isInvalid w="75%" maxW="300px">
<FormControl.Label>Password</FormControl.Label>
<Input placeholder="Enter password" />
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Try different from previous passwords.
</FormControl.ErrorMessage>
</FormControl>
</Box>
|
<mask> import { Input, FormControl, WarningOutlineIcon } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <FormControl isInvalid w={{ base: '75%', md: '25%' }}>
<mask> <FormControl.Label>Password</FormControl.Label>
<mask> <Input placeholder="Enter password" />
<mask> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
<mask> Try different from previous passwords.
<mask> </FormControl.ErrorMessage>
<mask> </FormControl>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove <Box w={{ base: '90%', md: '25%' }}>
<FormControl isRequired>
<Stack mx="4">
<FormControl.Label>Password</FormControl.Label>
<Input type="password" defaultValue="12345" placeholder="password" />
<FormControl.HelperText>
Must be atleast 6 characters.
</FormControl.HelperText>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Atleast 6 characters are required.
</FormControl.ErrorMessage>
</Stack>
</FormControl>
</s> add <Box alignItems="center">
<Box w="90%" maxWidth="300px">
<FormControl isRequired>
<Stack mx="4">
<FormControl.Label>Password</FormControl.Label>
<Input
type="password"
defaultValue="12345"
placeholder="password"
/>
<FormControl.HelperText>
Must be atleast 6 characters.
</FormControl.HelperText>
<FormControl.ErrorMessage
leftIcon={<WarningOutlineIcon size="xs" />}
>
Atleast 6 characters are required.
</FormControl.ErrorMessage>
</Stack>
</FormControl>
</Box> </s> remove <VStack space={4} mx="10" width="80%">
<FormControl isInvalid>
<FormControl.Label>Set your budget</FormControl.Label>
<Slider defaultValue={50}>
<Slider.Track>
<Slider.FilledTrack />
</Slider.Track>
<Slider.Thumb />
</Slider>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Something is wrong.
</FormControl.ErrorMessage>
</FormControl>
</VStack>
</s> add <Box alignItems="center">
<VStack space={4} w="75%" maxW="300">
<FormControl isInvalid>
<FormControl.Label>Set your budget</FormControl.Label>
<Slider defaultValue={50}>
<Slider.Track>
<Slider.FilledTrack />
</Slider.Track>
<Slider.Thumb />
</Slider>
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Something is wrong.
</FormControl.ErrorMessage>
</FormControl>
</VStack>
</Box> </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/FormControlled.tsx
|
import { Input, Button, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input, Button } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const [show, setShow] = React.useState(false);
<mask> const handleClick = () => setShow(!show);
<mask>
</s> feat: example design changes (#4522) </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove import { Modal, Button, Input, FormControl } from 'native-base';
</s> add import { Modal, Button, Input, FormControl, HStack } from 'native-base'; </s> remove import { Button } from 'native-base';
</s> add import { Button, Box } from 'native-base'; </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove import { Button, Modal, FormControl, Input } from 'native-base';
</s> add import { Button, Modal, FormControl, Input, Center } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Masked.tsx
|
<Box alignItems="center">
<Input
type={show ? 'text' : 'password'}
w="75%"
maxW="300px"
py="0"
InputRightElement={
<Button
size="xs"
rounded="none"
w="1/6"
h="full"
onPress={handleClick}
>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</Box>
|
<mask> const [show, setShow] = React.useState(false);
<mask> const handleClick = () => setShow(!show);
<mask>
<mask> return (
<mask> <Input
<mask> type={show ? 'text' : 'password'}
<mask> w={{ base: '75%', md: '25%' }}
<mask> InputRightElement={
<mask> <Button size="xs" rounded="none" w="1/6" h="full" onPress={handleClick}>
<mask> {show ? 'Hide' : 'Show'}
<mask> </Button>
<mask> }
<mask> placeholder="Password"
<mask> />
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove type={show ? 'text' : 'password'}
</s> add </s> remove as={<MaterialIcons name={show ? 'visibility' : 'visibility-off'} />}
</s> add as={<MaterialIcons name="visibility-off" />} </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove import { Input, Button } from 'native-base';
</s> add import { Input, Button, Box } from 'native-base'; </s> remove <Input
value={value}
w={{ base: '75%', md: '25%' }}
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</s> add <Box alignItems="center">
<Input
value={value}
w="75%"
maxW="300px"
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Masked.tsx
|
import { Input, Stack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input, Stack, Center, Heading } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Stack mt={3} space={4} w={{ base: '75%', md: '25%' }}>
<mask> <Center>
</s> feat: example design changes (#4522) </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove <Stack space={4} w={{ base: '75%', md: '25%' }}>
<Center>
<Heading textAlign="center" mb="10">
Input Variants
</Heading>
</Center>
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</s> add <Center>
<Stack space={4} w="75%" maxW="300px">
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</Center> </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Size.tsx
|
<Center>
<Stack mt={3} space={4} w="75%" maxW="300px">
<Input size="xs" placeholder="xs Input" />
<Input size="sm" placeholder="sm Input" />
<Input size="md" placeholder="md Input" />
<Input size="lg" placeholder="lg Input" />
<Input size="xl" placeholder="xl Input" />
<Input size="2xl" placeholder="2xl Input" />
</Stack>
</Center>
|
<mask> import { Input, Stack, Center, Heading } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Stack mt={3} space={4} w={{ base: '75%', md: '25%' }}>
<mask> <Center>
<mask> <Heading textAlign="center" mb="10">
<mask> Input sizes
<mask> </Heading>
<mask> </Center>
<mask> <Input size="xs" placeholder="xs Input" />
<mask> <Input size="sm" placeholder="sm Input" />
<mask> <Input size="md" placeholder="md Input" />
<mask> <Input size="lg" placeholder="lg Input" />
<mask> <Input size="xl" placeholder="xl Input" />
<mask> <Input size="2xl" placeholder="2xl Input" />
<mask> </Stack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Input
value={value}
w={{ base: '75%', md: '25%' }}
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</s> add <Box alignItems="center">
<Input
value={value}
w="75%"
maxW="300px"
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</Box> </s> remove <Stack space={4} w={{ base: '75%', md: '25%' }}>
<Center>
<Heading textAlign="center" mb="10">
Input Variants
</Heading>
</Center>
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</s> add <Center>
<Stack space={4} w="75%" maxW="300px">
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</Center> </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
</s> add return (
<Box alignItems="center">
<Input mx="3" placeholder="Input" w="75%" maxWidth="300px" />
</Box>
); </s> remove <FormControl isInvalid w={{ base: '75%', md: '25%' }}>
<FormControl.Label>Password</FormControl.Label>
<Input placeholder="Enter password" />
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Try different from previous passwords.
</FormControl.ErrorMessage>
</FormControl>
</s> add <Box alignItems="center">
<FormControl isInvalid w="75%" maxW="300px">
<FormControl.Label>Password</FormControl.Label>
<Input placeholder="Enter password" />
<FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}>
Try different from previous passwords.
</FormControl.ErrorMessage>
</FormControl>
</Box> </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Size.tsx
|
import { Input, Stack, Center } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Input, Stack, Center, Heading } from 'native-base';
<mask> export const Example = () => {
<mask> return (
<mask> <Stack space={4} w={{ base: '75%', md: '25%' }}>
<mask> <Center>
<mask> <Heading textAlign="center" mb="10">
</s> feat: example design changes (#4522) </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove <Stack space={4} w={{ base: '75%', md: '25%' }}>
<Center>
<Heading textAlign="center" mb="10">
Input Variants
</Heading>
</Center>
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</s> add <Center>
<Stack space={4} w="75%" maxW="300px">
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</Center> </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base';
</s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove const [show, setShow] = React.useState(false);
</s> add </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Variant.tsx
|
<Center>
<Stack space={4} w="75%" maxW="300px">
<Input variant="outline" placeholder="Outline" />
<Input variant="filled" placeholder="Filled" />
<Input variant="underlined" placeholder="Underlined" />
<Input variant="unstyled" placeholder="Unstyled" />
<Input variant="rounded" placeholder="Round" />
</Stack>
</Center>
|
<mask> import React from 'react';
<mask> import { Input, Stack, Center, Heading } from 'native-base';
<mask> export const Example = () => {
<mask> return (
<mask> <Stack space={4} w={{ base: '75%', md: '25%' }}>
<mask> <Center>
<mask> <Heading textAlign="center" mb="10">
<mask> Input Variants
<mask> </Heading>
<mask> </Center>
<mask> <Input variant="outline" placeholder="Outline" />
<mask> <Input variant="filled" placeholder="Filled" />
<mask> <Input variant="underlined" placeholder="Underlined" />
<mask> <Input variant="unstyled" placeholder="Unstyled" />
<mask> <Input variant="rounded" placeholder="Round" />
<mask> </Stack>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Stack mt={3} space={4} w={{ base: '75%', md: '25%' }}>
<Center>
<Heading textAlign="center" mb="10">
Input sizes
</Heading>
</Center>
<Input size="xs" placeholder="xs Input" />
<Input size="sm" placeholder="sm Input" />
<Input size="md" placeholder="md Input" />
<Input size="lg" placeholder="lg Input" />
<Input size="xl" placeholder="xl Input" />
<Input size="2xl" placeholder="2xl Input" />
</Stack>
</s> add <Center>
<Stack mt={3} space={4} w="75%" maxW="300px">
<Input size="xs" placeholder="xs Input" />
<Input size="sm" placeholder="sm Input" />
<Input size="md" placeholder="md Input" />
<Input size="lg" placeholder="lg Input" />
<Input size="xl" placeholder="xl Input" />
<Input size="2xl" placeholder="2xl Input" />
</Stack>
</Center> </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />;
</s> add return (
<Box alignItems="center">
<Input mx="3" placeholder="Input" w="75%" maxWidth="300px" />
</Box>
); </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base'; </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base';
</s> add import { Input, Stack, Center } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Input/Variant.tsx
|
import { Link, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Link } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Link mt={4} href="https://nativebase.io">
<mask> Click here to open documentation.
</s> feat: example design changes (#4522) </s> remove <Link mt={4} href="https://nativebase.io">
Click here to open documentation.
</Link>
</s> add <Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box> </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove import { Link, Text } from 'native-base';
</s> add import { Link, Text, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/Basic.tsx
|
<Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box>
|
<mask> import { Link } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Link mt={4} href="https://nativebase.io">
<mask> Click here to open documentation.
<mask> </Link>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</s> add color: 'cyan.300',
}}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
_light: {
color: 'cyan.600',
},
color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</Box> </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove <Tooltip label="Hey, I'm here!" openDelay={500}>
<Button>More</Button>
</Tooltip>
</s> add <Center>
<Tooltip label="Click here to read more" openDelay={500}>
<Button>More</Button>
</Tooltip>
</Center>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/Basic.tsx
|
import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Link
<mask> href="https://nativebase.io"
</s> feat: example design changes (#4522) </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove <Link
href="https://nativebase.io"
_hover={{ bg: 'primary.100' }}
isExternal
>
<Box bg="cyan.700" p="5" rounded="8" flexShrink="1">
<HStack alignItems="flex-start">
<Text fontSize="xs" color="cyan.50" fontWeight="medium">
Open Source
</s> add <Box alignItems="center">
<Link href="https://nativebase.io" isExternal>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Open Source
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
2020
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
NativeBase v3 </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CompositeLink.tsx
|
<Box alignItems="center">
<Link href="https://nativebase.io" isExternal>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Open Source
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
2020
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
NativeBase v3
|
<mask> import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Link
<mask> href="https://nativebase.io"
<mask> _hover={{ bg: 'primary.100' }}
<mask> isExternal
<mask> >
<mask> <Box bg="cyan.700" p="5" rounded="8" flexShrink="1">
<mask> <HStack alignItems="flex-start">
<mask> <Text fontSize="xs" color="cyan.50" fontWeight="medium">
<mask> Open Source
<mask> </Text>
<mask> <Spacer />
<mask> <Text fontSize="2xs" color="cyan.100">
<mask> 1 month ago
<mask> </Text>
</s> feat: example design changes (#4522) </s> remove <Pressable
onPress={() => {
console.log('Hello world');
}}
>
<Box p="5" rounded="8" bg="cyan.700">
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</s> add <Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems. </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CompositeLink.tsx
|
<Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems.
|
<mask> <HStack alignItems="flex-start">
<mask> <Text fontSize="xs" color="cyan.50" fontWeight="medium">
<mask> Open Source
<mask> </Text>
<mask> <Spacer />
<mask> <Text fontSize="2xs" color="cyan.100">
<mask> 1 month ago
<mask> </Text>
<mask> </HStack>
<mask> <Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
<mask> NativeBase
<mask> </Heading>
</s> feat: example design changes (#4522) </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data </s> remove <Link
href="https://nativebase.io"
_hover={{ bg: 'primary.100' }}
isExternal
>
<Box bg="cyan.700" p="5" rounded="8" flexShrink="1">
<HStack alignItems="flex-start">
<Text fontSize="xs" color="cyan.50" fontWeight="medium">
Open Source
</s> add <Box alignItems="center">
<Link href="https://nativebase.io" isExternal>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Open Source
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
2020
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
NativeBase v3 </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove <Pressable
onPress={() => {
console.log('Hello world');
}}
>
<Box p="5" rounded="8" bg="cyan.700">
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</s> add <Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CompositeLink.tsx
|
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box>
|
<mask> <Spacer />
<mask> <Text fontSize="2xs" color="cyan.100">
<mask> 1 month ago
<mask> </Text>
<mask> </HStack>
<mask> <Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
<mask> NativeBase
<mask> </Heading>
<mask> <Text mt="1" fontSize="sm" color="white">
<mask> NativeBase is a component library that enables devs to build universal
<mask> design systems.
<mask> </Text>
<mask> <Flex>
<mask> <Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
<mask> Read More
<mask> </Text>
<mask> </Flex>
<mask> </Box>
<mask> </Link>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems. </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove Read More
</Text>
) : (
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</s> add Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago </s> remove <Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</s> add <Box alignItems="center">
<Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</Box> </s> remove )}
</Flex>
</Box>
);
}}
</Pressable>
</s> add </HStack>
<Text
color="coolGray.800"
mt="3"
fontWeight="medium"
fontSize="xl"
>
Marketing License
</Text>
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery
and collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
textDecorationLine="underline"
color="darkBlue.600"
alignSelf="flex-start"
>
Read More
</Text>
) : (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
color="darkBlue.600"
>
Read More
</Text>
)}
</Flex>
</Box>
);
}}
</Pressable>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CompositeLink.tsx
|
<Box alignItems="center">
|
<mask> const toggleState = () => {
<mask> setState(!state);
<mask> };
<mask> return (
<mask> <>
<mask> <Box h="100" w="100" bg={state ? 'emerald.500' : 'indigo.500'} />
<mask> <Link onPress={toggleState} mt="8">
<mask> <Box
<mask> px="3"
<mask> py="2"
</s> feat: example design changes (#4522) </s> remove <Input
type={show ? 'text' : 'password'}
w={{ base: '75%', md: '25%' }}
InputRightElement={
<Button size="xs" rounded="none" w="1/6" h="full" onPress={handleClick}>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</s> add <Box alignItems="center">
<Input
type={show ? 'text' : 'password'}
w="75%"
maxW="300px"
py="0"
InputRightElement={
<Button
size="xs"
rounded="none"
w="1/6"
h="full"
onPress={handleClick}
>
{show ? 'Hide' : 'Show'}
</Button>
}
placeholder="Password"
/>
</Box> </s> remove placement={position == 'auto' ? undefined : position}
</s> add placement={position === 'auto' ? undefined : position} </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove <Link mt={4} href="https://nativebase.io">
Click here to open documentation.
</Link>
</s> add <Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box> </s> remove <>
<Button onPress={() => console.log('hello world')}>Primary</Button>
</>
</s> add <Box alignItems="center">
<Button onPress={() => console.log('hello world')}>Click Me</Button>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CustomOnPress.tsx
|
</Box>
|
<mask> >
<mask> Change Color
<mask> </Box>
<mask> </Link>
<mask> </>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove </>
</s> add </Box> </s> remove </>
</s> add </Center> </s> remove color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</s> add color: 'cyan.300',
}}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
_light: {
color: 'cyan.600',
},
color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</Box> </s> remove <Link mt={4} href="https://nativebase.io">
Click here to open documentation.
</Link>
</s> add <Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/CustomOnPress.tsx
|
import { Link, Text, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Link, Text } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Text mx="16">
<mask> NativeBase is a component library that enables devs to build universal
</s> feat: example design changes (#4522) </s> remove <Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</s> add <Box alignItems="center">
<Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</Box> </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems. </s> remove <Container>
<Heading>
A component library for the
<Heading color="emerald.500"> React Ecosystem</Heading>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</s> add <Center>
<Container>
<Heading>
A component library for the
<Text color="emerald.500"> React Ecosystem</Text>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</Center> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/ExternalLink.tsx
|
<Box alignItems="center">
<Text mx="16">
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.{' '}
<Link
href="https://nativebase.io"
isExternal
_text={{ color: 'blue.400' }}
mt={-0.5}
_web={{
mb: -2,
}}
>
Read More
</Link>
</Text>
</Box>
|
<mask> import { Link, Text } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Text mx="16">
<mask> NativeBase is a component library that enables devs to build universal
<mask> design systems. It is built on top of React Native, allowing you to
<mask> develop apps for Android, iOS and the Web.{' '}
<mask> <Link
<mask> href="https://nativebase.io"
<mask> isExternal
<mask> _text={{ color: 'blue.400' }}
<mask> mt={-0.5}
<mask> _web={{
<mask> mb: -2,
<mask> }}
<mask> >
<mask> Read More
<mask> </Link>
<mask> </Text>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove import { Link, Text } from 'native-base';
</s> add import { Link, Text, Box } from 'native-base'; </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove <Container>
<Heading>
A component library for the
<Heading color="emerald.500"> React Ecosystem</Heading>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</s> add <Center>
<Container>
<Heading>
A component library for the
<Text color="emerald.500"> React Ecosystem</Text>
</Heading>
<Text mt="3" fontWeight="medium">
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Text>
</Container>
</Center> </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems. </s> remove 'Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting Lorem Ipsum is simply dummy text of the printing and typesetting'
</s> add 'Lose yourself in the greens of nature, the ones that make you strong. Come visit us at the Greenway Park, and we will be happy to show you around.'
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/ExternalLink.tsx
|
import { Link, Box } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Link } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> // @ts-ignore
<mask> <Link
</s> feat: example design changes (#4522) </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove <Link mt={4} href="https://nativebase.io">
Click here to open documentation.
</Link>
</s> add <Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box> </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove
</s> add const ref = React.useRef(null);
React.useEffect(() => {
console.log('ref here', ref.current);
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
ref.current.focus();
}, []);
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/UnderlineLink.tsx
|
<Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl',
|
<mask> import { Link } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> // @ts-ignore
<mask> <Link
<mask> _text={{
<mask> fontSize: 'xl',
<mask> _light: {
<mask> color: 'cyan.500',
<mask> },
<mask> color: 'cyan.300',
<mask> }}
<mask> mt={4}
<mask> href="https://nativebase.io"
<mask> isUnderlined
<mask> _hover={{
<mask> _text: {
<mask> _light: {
<mask> color: 'cyan.600',
<mask> },
<mask> color: 'cyan.400',
<mask> },
</s> feat: example design changes (#4522) </s> remove color: 'cyan.600',
</s> add color: 'cyan.500', </s> remove color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</s> add color: 'cyan.300',
}}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
_light: {
color: 'cyan.600',
},
color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</Box> </s> remove <IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
</s> add <Box alignItems="center">
<IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
_icon: {
size: '2xl',
},
},
}}
_ios={{ </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base'; </s> remove import { Link } from 'native-base';
</s> add import { Link, Box } from 'native-base';
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/UnderlineLink.tsx
|
color: 'cyan.500',
|
<mask> isUnderlined
<mask> _hover={{
<mask> _text: {
<mask> _light: {
<mask> color: 'cyan.600',
<mask> },
<mask> color: 'cyan.400',
<mask> },
<mask> }}
<mask> >
</s> feat: example design changes (#4522) </s> remove color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</s> add color: 'cyan.300',
}}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
_light: {
color: 'cyan.600',
},
color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</Box> </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove <IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
</s> add <Box alignItems="center">
<IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
_icon: {
size: '2xl',
},
},
}}
_ios={{ </s> remove },
}}
_ios={{
_icon: {
size: '2xl',
},
}}
/>
</s> add }}
/>
</Box> </s> remove <IconButton
variant="unstyled"
icon={<CloseIcon size="3" color="coolGray.600" />}
/>
</HStack>
<Box pl="6" _dark={{ _text: { color: 'coolGray.600' } }}>
Your application has been received. We will review your application
and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
<Alert w="100%" status="success">
<VStack space={1} flexShrink={1} w="100%" alignItems="center">
<Alert.Icon size="md" />
<Text
fontSize="md"
fontWeight="medium"
_dark={{ color: 'coolGray.800' }}
>
Application received!
</Text>
</s> add <Box pl="6" _dark={{ _text: { color: 'coolGray.600' } }}>
Your application has been received. We will review your
application and respond within the next 48 hours.
</Box>
</VStack>
</Alert>
<Alert w="100%" status="success">
<VStack space={1} flexShrink={1} w="100%" alignItems="center">
<Alert.Icon size="md" />
<Text
fontSize="md"
fontWeight="medium"
_dark={{ color: 'coolGray.800' }}
>
Application received!
</Text>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/UnderlineLink.tsx
|
color: 'cyan.300',
}}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
_light: {
color: 'cyan.600',
},
color: 'cyan.400',
},
}}
>
Click me to open NativeBase website.
</Link>
</Box>
|
<mask> _text: {
<mask> _light: {
<mask> color: 'cyan.600',
<mask> },
<mask> color: 'cyan.400',
<mask> },
<mask> }}
<mask> >
<mask> Click me to open NativeBase website.
<mask> </Link>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove color: 'cyan.600',
</s> add color: 'cyan.500', </s> remove // @ts-ignore
<Link
_text={{
fontSize: 'xl',
_light: {
color: 'cyan.500',
},
color: 'cyan.300',
}}
mt={4}
href="https://nativebase.io"
isUnderlined
_hover={{
_text: {
</s> add <Box alignItems="center">
{/* @ts-ignore */}
<Link
_text={{
fontSize: 'xl', </s> remove <Link mt={4} href="https://nativebase.io">
Click here to open documentation.
</Link>
</s> add <Box alignItems="center">
<Link href="https://nativebase.io">
Click here to open documentation.
</Link>
</Box> </s> remove <IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
</s> add <Box alignItems="center">
<IconButton
icon={<Icon as={Entypo} name="emoji-happy" />}
borderRadius="full"
_icon={{
color: 'orange.500',
size: 'md',
}}
_hover={{
bg: 'orange.600:alpha.20',
}}
_pressed={{
bg: 'orange.600:alpha.20',
_icon: {
name: 'emoji-flirt',
},
_ios: {
_icon: {
size: '2xl',
},
},
}}
_ios={{ </s> remove },
}}
_ios={{
_icon: {
size: '2xl',
},
}}
/>
</s> add }}
/>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Link/UnderlineLink.tsx
|
import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Pressable
<mask> onPress={() => {
</s> feat: example design changes (#4522) </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove <Pressable
onPress={() => {
console.log('Hello world');
}}
>
<Box p="5" rounded="8" bg="cyan.700">
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</s> add <Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License </s> remove import { HStack, Stack, Center, Heading } from 'native-base';
</s> add import { HStack, 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';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Basic.tsx
|
<Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License
|
<mask> import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Pressable
<mask> onPress={() => {
<mask> console.log('Hello world');
<mask> }}
<mask> >
<mask> <Box p="5" rounded="8" bg="cyan.700">
<mask> <HStack alignItems="flex-start">
<mask> <Text fontSize={12} color="cyan.50" fontWeight="medium">
<mask> Business
<mask> </Text>
<mask> <Spacer />
<mask> <Text fontSize={10} color="cyan.100">
<mask> 1 month ago
<mask> </Text>
</s> feat: example design changes (#4522) </s> remove <Link
href="https://nativebase.io"
_hover={{ bg: 'primary.100' }}
isExternal
>
<Box bg="cyan.700" p="5" rounded="8" flexShrink="1">
<HStack alignItems="flex-start">
<Text fontSize="xs" color="cyan.50" fontWeight="medium">
Open Source
</s> add <Box alignItems="center">
<Link href="https://nativebase.io" isExternal>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Open Source
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
2020
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
NativeBase v3 </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems.
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Basic.tsx
|
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
|
<mask> <HStack alignItems="flex-start">
<mask> <Text fontSize={12} color="cyan.50" fontWeight="medium">
<mask> Business
<mask> </Text>
<mask> <Spacer />
<mask> <Text fontSize={10} color="cyan.100">
<mask> 1 month ago
<mask> </Text>
<mask> </HStack>
<mask> <Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
<mask> Marketing License
<mask> </Text>
</s> feat: example design changes (#4522) </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove <Pressable
onPress={() => {
console.log('Hello world');
}}
>
<Box p="5" rounded="8" bg="cyan.700">
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</s> add <Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License </s> remove <Spacer />
<Text fontSize="2xs" color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
NativeBase is a component library that enables devs to build
universal design systems. </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove Read More
</Text>
) : (
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</s> add Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Basic.tsx
|
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box>
|
<mask> <Spacer />
<mask> <Text fontSize={10} color="cyan.100">
<mask> 1 month ago
<mask> </Text>
<mask> </HStack>
<mask> <Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
<mask> Marketing License
<mask> </Text>
<mask> <Text mt="2" fontSize={14} color="cyan.100">
<mask> Unlock powerfull time-saving tools for creating email delivery and
<mask> collecting marketing data
<mask> </Text>
<mask> <Flex>
<mask> <Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
<mask> Read More
<mask> </Text>
<mask> </Flex>
<mask> </Box>
<mask> </Pressable>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data </s> remove )}
</Flex>
</Box>
);
}}
</Pressable>
</s> add </HStack>
<Text
color="coolGray.800"
mt="3"
fontWeight="medium"
fontSize="xl"
>
Marketing License
</Text>
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery
and collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
textDecorationLine="underline"
color="darkBlue.600"
alignSelf="flex-start"
>
Read More
</Text>
) : (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
color="darkBlue.600"
>
Read More
</Text>
)}
</Flex>
</Box>
);
}}
</Pressable>
</Box> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove Read More
</Text>
) : (
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</s> add Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Basic.tsx
|
import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base';
|
<mask> import React from 'react';
<mask> import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Pressable>
<mask> {({ isHovered, isFocused, isPressed }) => {
</s> feat: example design changes (#4522) </s> remove import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
</s> add import { Pressable, Text, Box, HStack, Spacer, Flex, Badge } from 'native-base'; </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove import { Link, Text, Box, Flex, HStack, Spacer, Heading } from 'native-base';
</s> add import { Link, Text, Box, Flex, HStack, Spacer, Badge } from 'native-base'; </s> remove import { HStack, Stack, Center, Heading } from 'native-base';
</s> add import { HStack, 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';
|
[
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Events.tsx
|
<Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
|
<mask> import { Pressable, Text, Box, HStack, Spacer, Flex } from 'native-base';
<mask>
<mask> export function Example() {
<mask> return (
<mask> <Pressable>
<mask> {({ isHovered, isFocused, isPressed }) => {
<mask> return (
<mask> <Box
<mask> bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
<mask> p="5"
<mask> rounded="8"
<mask> style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
<mask> >
<mask> <HStack alignItems="flex-start">
<mask> <Text fontSize={12} color="cyan.50" fontWeight="medium">
<mask> Business
<mask> </Text>
<mask> <Spacer />
<mask> <Text fontSize={10} color="cyan.100">
<mask> 1 month ago
<mask> </Text>
<mask> </HStack>
<mask> <Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
<mask> Marketing License
<mask> </Text>
<mask> <Text mt="2" fontSize={14} color="cyan.100">
<mask> Unlock powerfull time-saving tools for creating email delivery and
<mask> collecting marketing data
<mask> </Text>
<mask> <Flex>
<mask> {isFocused ? (
<mask> <Text
<mask> mt="2"
<mask> fontSize={12}
<mask> fontWeight="medium"
<mask> bg="cyan.500"
<mask> color="cyan.200"
<mask> alignSelf="flex-start"
<mask> >
<mask> Read More
<mask> </Text>
<mask> ) : (
<mask> <Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
</s> feat: example design changes (#4522) </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data </s> remove )}
</Flex>
</Box>
);
}}
</Pressable>
</s> add </HStack>
<Text
color="coolGray.800"
mt="3"
fontWeight="medium"
fontSize="xl"
>
Marketing License
</Text>
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery
and collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
textDecorationLine="underline"
color="darkBlue.600"
alignSelf="flex-start"
>
Read More
</Text>
) : (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
color="darkBlue.600"
>
Read More
</Text>
)}
</Flex>
</Box>
);
}}
</Pressable>
</Box> </s> remove Read More
</Text>
) : (
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</s> add Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago </s> remove <Pressable
onPress={() => {
console.log('Hello world');
}}
>
<Box p="5" rounded="8" bg="cyan.700">
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</s> add <Box alignItems="center">
<Pressable onPress={() => console.log("I'm Pressed")}>
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg="coolGray.100"
p="5"
rounded="8"
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4"
>
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
</Text>
</HStack>
<Text color="coolGray.800" mt="3" fontWeight="medium" fontSize="xl">
Marketing License
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Events.tsx
|
Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago
|
<mask> bg="cyan.500"
<mask> color="cyan.200"
<mask> alignSelf="flex-start"
<mask> >
<mask> Read More
<mask> </Text>
<mask> ) : (
<mask> <Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
<mask> Read More
<mask> </Text>
<mask> )}
<mask> </Flex>
<mask> </Box>
<mask> );
</s> feat: example design changes (#4522) </s> remove )}
</Flex>
</Box>
);
}}
</Pressable>
</s> add </HStack>
<Text
color="coolGray.800"
mt="3"
fontWeight="medium"
fontSize="xl"
>
Marketing License
</Text>
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery
and collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
textDecorationLine="underline"
color="darkBlue.600"
alignSelf="flex-start"
>
Read More
</Text>
) : (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
color="darkBlue.600"
>
Read More
</Text>
)}
</Flex>
</Box>
);
}}
</Pressable>
</Box> </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Events.tsx
|
</HStack>
<Text
color="coolGray.800"
mt="3"
fontWeight="medium"
fontSize="xl"
>
Marketing License
</Text>
<Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery
and collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
textDecorationLine="underline"
color="darkBlue.600"
alignSelf="flex-start"
>
Read More
</Text>
) : (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
color="darkBlue.600"
>
Read More
</Text>
)}
</Flex>
</Box>
);
}}
</Pressable>
</Box>
|
<mask> ) : (
<mask> <Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
<mask> Read More
<mask> </Text>
<mask> )}
<mask> </Flex>
<mask> </Box>
<mask> );
<mask> }}
<mask> </Pressable>
<mask> );
<mask> }
</s> feat: example design changes (#4522) </s> remove Read More
</Text>
) : (
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</s> add Business
</Badge>
<Spacer />
<Text fontSize={10} color="coolGray.800">
1 month ago </s> remove </HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Pressable>
</Box> </s> remove </HStack>
<Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg">
NativeBase
</Heading>
<Text mt="1" fontSize="sm" color="white">
NativeBase is a component library that enables devs to build universal
design systems.
</Text>
<Flex>
<Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400">
Read More
</Text>
</Flex>
</Box>
</Link>
</s> add <Flex>
<Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600">
Read More
</Text>
</Flex>
</Box>
</Link>
</Box> </s> remove <Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
bg={isPressed ? 'cyan.900' : isHovered ? 'cyan.800' : 'cyan.700'}
p="5"
rounded="8"
style={{ transform: [{ scale: isPressed ? 0.96 : 1 }] }}
>
<HStack alignItems="flex-start">
<Text fontSize={12} color="cyan.50" fontWeight="medium">
Business
</Text>
<Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</Text>
</HStack>
<Text color="cyan.50" mt="3" fontWeight="medium" fontSize={20}>
Marketing License
</Text>
<Text mt="2" fontSize={14} color="cyan.100">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
</Text>
<Flex>
{isFocused ? (
<Text
mt="2"
fontSize={12}
fontWeight="medium"
bg="cyan.500"
color="cyan.200"
alignSelf="flex-start"
</s> add <Box alignItems="center">
<Pressable>
{({ isHovered, isFocused, isPressed }) => {
return (
<Box
maxW="96"
borderWidth="1"
borderColor="coolGray.300"
shadow="3"
bg={
isPressed
? 'coolGray.200'
: isHovered
? 'coolGray.200'
: 'coolGray.100'
}
p="5"
rounded="8"
style={{
transform: [
{
scale: isPressed ? 0.96 : 1,
},
],
}}
>
<HStack alignItems="center">
<Badge
colorScheme="darkBlue"
_text={{ color: 'white' }}
variant="solid"
rounded="4" </s> remove <Spacer />
<Text fontSize={10} color="cyan.100">
1 month ago
</s> add <Text mt="2" fontSize="sm" color="coolGray.700">
Unlock powerfull time-saving tools for creating email delivery and
collecting marketing data
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Pressable/Events.tsx
|
const ref = React.useRef(null);
React.useEffect(() => {
console.log('ref here', ref.current);
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
// ref.current.setNativeProps({
// backgroundColor: 'red',
// });
ref.current.focus();
}, []);
|
<mask> import { Radio } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> const [value, setValue] = React.useState('one');
<mask>
<mask> return (
<mask> <Radio.Group
<mask> name="myRadioGroup"
<mask> accessibilityLabel="favorite number"
<mask> value={value}
</s> feat: example design changes (#4522) </s> remove import { Input } from 'native-base';
</s> add import { Input, Box } from 'native-base'; </s> remove <Input
value={value}
w={{ base: '75%', md: '25%' }}
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</s> add <Box alignItems="center">
<Input
value={value}
w="75%"
maxW="300px"
onChangeText={handleChange}
placeholder="Value Controlled Input"
/>
</Box> </s> remove import { Center, Heading, Radio } from 'native-base';
</s> add import { Radio, Stack } from 'native-base'; </s> remove <Center>
<Heading mb="10" size="md">
Sizes
</Heading>
<Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
>
<Stack
direction={{ base: 'column', md: 'row' }}
alignItems="center"
space={4}
w="75%"
maxW="300px" </s> remove import { Button, Modal, VStack, HStack, Text, Radio } from 'native-base';
</s> add import {
Button,
Modal,
VStack,
HStack,
Text,
Radio,
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/primitives/Radio/controlledRadio.tsx
|
<Radio value="one" my={1} bg="blue.200">
|
<mask> onChange={(nextValue) => {
<mask> setValue(nextValue);
<mask> }}
<mask> >
<mask> <Radio value="one" my={1}>
<mask> One
<mask> </Radio>
<mask> <Radio value="two" my={1}>
<mask> Two
<mask> </Radio>
</s> feat: example design changes (#4522) </s> remove <Radio value="two" my={1}>
</s> add <Radio value="two" my={1} bg="red.200" ref={ref}> </s> remove </Radio.Group>
</Center>
</s> add </Stack>
</Radio.Group> </s> remove <Center>
<Heading mb="10" size="md">
Sizes
</Heading>
<Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
>
<Stack
direction={{ base: 'column', md: 'row' }}
alignItems="center"
space={4}
w="75%"
maxW="300px" </s> remove <Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</s> add <Center>
<Button
onPress={() => {
toast.show({
render: () => {
return (
<Box bg="emerald.500" px="2" py="1" rounded="sm" mb={5}>
Hello! Have a nice day
</Box>
);
},
});
}}
>
Custom Toast
</Button>
</Center> </s> remove <Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</s> add <Box alignItems="flex-start">
<Checkbox
value="success"
colorScheme="success"
icon={<Icon as={MaterialCommunityIcons} name="bullseye" opacity={1} />}
wrapperRef={myRef}
onChange={(state) => {
if (state) {
setBg('#00de0050');
} else {
setBg('#fa000050');
}
}}
>
Archery
</Checkbox>
</Box>
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Radio/controlledRadio.tsx
|
<Radio value="two" my={1} bg="red.200" ref={ref}>
|
<mask> >
<mask> <Radio value="one" my={1}>
<mask> One
<mask> </Radio>
<mask> <Radio value="two" my={1}>
<mask> Two
<mask> </Radio>
<mask> </Radio.Group>
<mask> );
<mask> };
</s> feat: example design changes (#4522) </s> remove <Radio value="one" my={1}>
</s> add <Radio value="one" my={1} bg="blue.200"> </s> remove </Radio.Group>
</Center>
</s> add </Stack>
</Radio.Group> </s> remove <Center>
<Heading mb="10" size="md">
Sizes
</Heading>
<Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
>
<Stack
direction={{ base: 'column', md: 'row' }}
alignItems="center"
space={4}
w="75%"
maxW="300px" </s> remove </>
</s> add </Box> </s> remove AK
</s> add TS
|
[
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] |
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
|
example/storybook/stories/components/primitives/Radio/controlledRadio.tsx
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.