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
startIcon={<Icon as={MaterialIcons} size="6" name="delete" />}
<mask> Albums <mask> </Text> <mask> </Box> <mask> <Actionsheet.Item <mask> startIcon={ <mask> <Icon <mask> as={MaterialIcons} <mask> color="trueGray.400" <mask> mr="1" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
startIcon={<Icon as={MaterialIcons} name="share" size="6" />}
<mask> > <mask> Delete <mask> </Actionsheet.Item> <mask> <Actionsheet.Item <mask> startIcon={ <mask> <Icon <mask> as={MaterialIcons} <mask> name="share" <mask> color="trueGray.400" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
startIcon={<Icon as={Ionicons} name="play-circle" size="6" />}
<mask> > <mask> Share <mask> </Actionsheet.Item> <mask> <Actionsheet.Item <mask> startIcon={ <mask> <Icon <mask> as={Ionicons} <mask> name="play-circle" <mask> color="trueGray.400" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
startIcon={<Icon as={MaterialIcons} size="6" name="favorite" />}
<mask> > <mask> Play <mask> </Actionsheet.Item> <mask> <Actionsheet.Item <mask> startIcon={ <mask> <Icon <mask> as={MaterialIcons} <mask> color="trueGray.400" <mask> mr="1" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
<mask> > <mask> Favourite <mask> </Actionsheet.Item> <mask> <Actionsheet.Item <mask> p={3} <mask> startIcon={ <mask> <Icon <mask> color="trueGray.400" <mask> mr="1" <mask> h="24" </...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
<Icon viewBox="0 0 24 24" size="6" fill="none">
<mask> </Actionsheet.Item> <mask> <Actionsheet.Item <mask> p={3} <mask> startIcon={ <mask> <Icon <mask> color="trueGray.400" <mask> mr="1" <mask> h="24" <mask> w="24" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Icon.tsx
<Actionsheet.Item isDisabled>Share</Actionsheet.Item>
<mask> Albums <mask> </Text> <mask> </Box> <mask> <Actionsheet.Item>Delete</Actionsheet.Item> <mask> <Actionsheet.Item>Share</Actionsheet.Item> <mask> <Actionsheet.Item>Play</Actionsheet.Item> <mask> <Actionsheet.Item>Favourite</Actionsh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
example/storybook/stories/components/composites/Actionsheet/Usage.tsx
import { Pressable } from '../../primitives/Pressable'; import Box, { IBoxProps } from '../../primitives/Box'; import { HStack } from '../../primitives/Stack'; import Spinner from '../../primitives/Spinner'; import type { IButtonProps } from '../../primitives/Button';
<mask> import React, { memo, forwardRef } from 'react'; <mask> import { Button } from '../../primitives/Button'; <mask> import type { IActionsheetItemProps } from './types'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProp...
[ "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/components/composites/Actionsheet/ActionsheetItem.tsx
const ActionsheetItem = ( { //@ts-ignore children, startIcon, rightIcon, leftIcon, endIcon, spinner, isDisabled, isLoading, spinnerPlacement = 'start', ...props }: IButtonProps & IBoxProps, ref: any ) => { const { _text, _stack, _icon, _spinner, is...
<mask> import type { IActionsheetItemProps } from './types'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ActionsheetItem = (props: IActionsheetItemProps, ref?: any) => { <mask> const resolve...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/components/composites/Actionsheet/ActionsheetItem.tsx
if (leftIcon) { startIcon = leftIcon; } if (rightIcon) { endIcon = rightIcon; } if (endIcon && React.isValidElement(endIcon)) { endIcon = React.Children.map( endIcon, (child: JSX.Element, index: number) => { return React.cloneElement(child, { key: `button-end-icon-${i...
<mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> <mask> return <Button {...resolvedProps} ref={ref} />; <mask> }; <mask> <mask> export default memo(forwardRef(ActionsheetItem)); </s> fix: actionsheet item api and ui changes </s> remove const ActionsheetItem = (props: I...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/components/composites/Actionsheet/ActionsheetItem.tsx
_stack: { space: 4, },
<mask> export const ActionsheetItem = { <mask> baseStyle: () => ({ <mask> width: '100%', <mask> justifyContent: 'flex-start', <mask> p: 4, <mask> _text: { <mask> fontSize: 'md', <mask> fontWeight: 'normal', </s> fix: actionsheet item api and ui changes </s> remove fontSize: ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/theme/components/actionsheet.ts
fontSize: 'md',
<mask> width: '100%', <mask> justifyContent: 'flex-start', <mask> p: 4, <mask> _text: { <mask> fontSize: 16, <mask> fontWeight: 'normal', <mask> }, <mask> _light: { <mask> bg: 'muted.50', <mask> _text: { </s> fix: actionsheet item api and ui changes </s> remove...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/theme/components/actionsheet.ts
_disabled: { opacity: 40, },
<mask> fontWeight: 'normal', <mask> }, <mask> _light: { <mask> bg: 'muted.50', <mask> _icon: { <mask> color: 'muted.500', <mask> }, </s> fix: actionsheet item api and ui changes </s> remove fontSize: 16, </s> add fontSize: 'md', </s> remove return <Button {...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/theme/components/actionsheet.ts
_icon: { color: 'muted.500', },
<mask> _light: { <mask> bg: 'muted.50', <mask> _text: { <mask> color: 'text.900', <mask> }, <mask> _hover: { <mask> bg: 'muted.200', <mask> }, </s> fix: actionsheet item api and ui changes </s> remove fontSize: 16, </s> add fontSize: 'md', </s> rem...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303a8a155bda73914f21d73df4e6c4e292ed4751
src/theme/components/actionsheet.ts
import { Typeahead, Icon } from 'native-base';
<mask> import React from 'react'; <mask> import { Typeahead, Box, Icon, Heading } from 'native-base'; <mask> <mask> let countries = [ <mask> 'Afghanistan', <mask> 'Australia', <mask> 'India', </s> feat: typeahead add async example </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } f...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx
const animals = [ { key: 1, value: 'Aardvark' }, { key: 2, value: 'Kangaroo' }, { key: 3, value: 'Snake' }, { key: 4, value: 'Pikachu' }, { key: 5, value: 'Tiger' }, { key: 6, value: 'Godzilla' },
<mask> import React from 'react'; <mask> import { Typeahead, Box, Icon, Heading } from 'native-base'; <mask> <mask> let countries = [ <mask> 'Afghanistan', <mask> 'Australia', <mask> 'India', <mask> 'USA', <mask> 'Germany', <mask> 'France', <mask> 'Iceland', <mask> 'Russia', <mask> 'Japa...
[ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx
const [items] = React.useState(animals); const [filterText, setFilterText] = React.useState(''); const filteredItems = React.useMemo(() => { return items.filter( (item) => item.value.toLowerCase().indexOf(filterText.toLowerCase()) > -1 ); }, [items, filterText]);
<mask> ]; <mask> <mask> export function UsingComponent() { <mask> return ( <mask> <Typeahead <mask> items={filteredItems} <mask> onInputChange={setFilterText} <mask> onSelectionChange={console.log} <mask> label="Select your favorite animal" </s> feat: typeahead add async example...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx
<Typeahead items={filteredItems} onInputChange={setFilterText} onSelectionChange={console.log} label="Select your favorite animal" toggleIcon={({ isOpen }: any) => { return isOpen ? ( <Icon name="arrow-drop-up" type="MaterialIcons" size={12} /> ) : ( ...
<mask> ]; <mask> <mask> export function UsingComponent() { <mask> return ( <mask> <Box> <mask> <Heading>Typeahead</Heading> <mask> <Typeahead <mask> mt={4} <mask> size="2xl" <mask> numberOfItems={6} <mask> options={countries} <mask> toggleIcon={({ i...
[ "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/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx
import { Typeahead, Icon, Box, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base'; <mask> <mask> let countries = [ <mask> { name: 'Afghanistan', abbr: 'AFG' }, <mask> { name: 'Australia', abbr: 'AUS' }, <mask> { name: 'India', abbr: 'IND' }, </s> feat: typeahead add...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
const animals = [ { key: 1, value: 'Aardvark' }, { key: 2, value: 'Kangaroo' }, { key: 3, value: 'Snake' }, { key: 4, value: 'Pikachu' }, { key: 5, value: 'Tiger' }, { key: 6, value: 'Godzilla' },
<mask> import React from 'react'; <mask> import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base'; <mask> <mask> let countries = [ <mask> { name: 'Afghanistan', abbr: 'AFG' }, <mask> { name: 'Australia', abbr: 'AUS' }, <mask> { name: 'India', abbr: 'IND' }, <mask> { name: 'USA', ...
[ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
<mask> { name: 'Norway', abbr: 'NOR' }, <mask> ]; <mask> <mask> export function UsingComponentWithRenderItem() { <mask> const { colorMode } = useColorMode(); <mask> return ( <mask> <Box> <mask> <Heading>Typeahead</Heading> <mask> <Typeahead <mask> mt={4} </s> feat: typeahead ad...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
<Typeahead items={animals} disabledKeys={[1]} width={400} onSelectionChange={console.log} label="Select your favorite animal" renderItem={(item: any) => { return ( <Box flexDirection="row" justifyContent="space-between" p={4}>
<mask> <mask> export function UsingComponentWithRenderItem() { <mask> const { colorMode } = useColorMode(); <mask> return ( <mask> <Box> <mask> <Heading>Typeahead</Heading> <mask> <Typeahead <mask> mt={4} <mask> size="2xl" <mask> numberOfItems={6} <mask> o...
[ "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/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
backgroundColor="black" height={10} width={10} borderRadius={9999} justifyContent="center" alignItems="center"
<mask> getOptionLabel={(country: any) => country.name} <mask> renderItem={(item: any) => { <mask> return ( <mask> <Box <mask> flex={1} <mask> bg={colorMode === 'light' ? 'red.100' : 'gray.600'} <mask> p={4} <mask> > <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
<Text color="white">{item.value[0]}</Text>
<mask> flex={1} <mask> bg={colorMode === 'light' ? 'red.100' : 'gray.600'} <mask> p={4} <mask> > <mask> <Text>{item}</Text> <mask> </Box> <mask> ); <mask> }} <mask> toggleIcon={({ isOpen }: any) => { <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
<Box>{item.value}</Box> </Box> ); }} toggleIcon={({ isOpen }: any) => { return isOpen ? ( <Icon name="arrow-drop-up" type="MaterialIcons" size={12} /> ) : ( <Icon name="arrow-drop-down" type="MaterialIcons" size={12} /> ); }} ...
<mask> p={4} <mask> > <mask> <Text>{item}</Text> <mask> </Box> <mask> ); <mask> }} <mask> toggleIcon={({ isOpen }: any) => { <mask> return isOpen ? ( <mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/UsingComponentWithRenderItem.tsx
import { UsingControlledInput } from './UsingControlledInput'; import { UsingWithAPI } from './UsingWithAPI';
<mask> import { withKnobs } from '@storybook/addon-knobs'; <mask> import Wrapper from './../../Wrapper'; <mask> import { UsingComponent } from './UsingComponent'; <mask> import { UsingComponentWithRenderItem } from './UsingComponentWithRenderItem'; <mask> import { UsingHook } from './UsingHook'; <mask> <mask> s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/index.tsx
.add('Basic', () => <UsingComponent />) .add('Using render item', () => <UsingComponentWithRenderItem />) .add('Using Controlled input', () => <UsingControlledInput />) .add('Using with async API', () => <UsingWithAPI />);
<mask> <mask> storiesOf('Typeahead', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Typeahead Component', () => <UsingComponent />) <mask> .add('Typeahead Component with RenderItem', () => ( <mask> <UsingComponentWithRend...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/components/composites/Typeahead/index.tsx
export * from './components/composites/Accordion'; export * from './components/composites/Actionsheet'; export * from './components/composites/Alert'; export * from './components/composites/AlertDialog'; export * from './components/composites/AppBar'; export * from './components/composites/AspectRatio'; export * from '...
<mask> // Components <mask> // export * from './components/composites/Accordion'; <mask> // export * from './components/composites/Actionsheet'; <mask> // export * from './components/composites/Alert'; <mask> // export * from './components/composites/AlertDialog'; <mask> // export * from './components/composites/...
[ "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replac...
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
export * from './components/primitives/View'; export * from './components/primitives/VStack'; export * from './components/composites/Wrap'; export * from './components/primitives/ZStack';
<mask> // export * from './components/composites/Toast'; <mask> // export * from './components/composites/Transitions'; <mask> export * from './components/composites/Combobox'; <mask> <mask> // export * from './components/primitives/View'; <mask> // export * from './components/primitives/VStack'; <mask> // expo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
// Hooks export * from './hooks/useBreakpointValue'; export * from './hooks/useClipboard'; export * from './hooks/useDisclose'; export * from './hooks/useMediaQuery'; export * from './hooks/usePopover'; export * from './hooks/useSafeArea';
<mask> // export * from './components/primitives/VStack'; <mask> // export * from './components/composites/Wrap'; <mask> // export * from './components/primitives/ZStack'; <mask> <mask> // // Hooks <mask> // export * from './hooks/useBreakpointValue'; <mask> // export * from './hooks/useClipboard'; <mask> // e...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
// Theme export * from './theme/Custom'; export * from './theme/Mode'; export * from './theme/Responsive';
<mask> // export * from './hooks/useMediaQuery'; <mask> // export * from './hooks/usePopover'; <mask> // export * from './hooks/useSafeArea'; <mask> <mask> // // Theme <mask> // export * from './theme/Custom'; <mask> // export * from './theme/Mode'; <mask> // export * from './theme/Responsive'; <mask> <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
// Community integrations export * from './community-integrations/Formik'; export * from './community-integrations/ReactHookForm';
<mask> // export * from './theme/Custom'; <mask> // export * from './theme/Mode'; <mask> // export * from './theme/Responsive'; <mask> <mask> // // Community integrations <mask> // export * from './community-integrations/Formik'; <mask> // export * from './community-integrations/ReactHookForm'; <mask> <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
// Examples export * from './examples';
<mask> // // Community integrations <mask> // export * from './community-integrations/Formik'; <mask> // export * from './community-integrations/ReactHookForm'; <mask> <mask> // // Examples <mask> // export * from './examples'; </s> feat: typeahead add async example </s> remove // // Community integrations // e...
[ "keep", "keep", "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
example/storybook/stories/index.ts
import React from 'react'; import { useButton } from '@react-native-aria/button'; import { ComboBoxState, useComboBoxState } from '@react-stately/combobox'; import { useComboBox } from '@react-native-aria/combobox'; import { useListBox, useOption } from '@react-native-aria/listbox'; import { ScrollView, findNodeHandle,...
<mask> import React, { useState, useCallback, forwardRef } from 'react'; <mask> import { ScrollView } from 'react-native'; <mask> import Box from '../../primitives/Box'; <mask> import Input from '../../primitives/Input'; <mask> import Button from '../../primitives/Button'; <mask> import Link from '../../primitive...
[ "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
import Pressable from '../../primitives/Pressable';
<mask> import React, { useState, useCallback, forwardRef } from 'react'; <mask> import { ScrollView } from 'react-native'; <mask> import Box from '../../primitives/Box'; <mask> import Input from '../../primitives/Input'; <mask> import Button from '../../primitives/Button'; <mask> import Link from '../../primitive...
[ "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
<mask> import Input from '../../primitives/Input'; <mask> import Button from '../../primitives/Button'; <mask> import Link from '../../primitives/Link'; <mask> import Text from '../../primitives/Text'; <mask> import { useColorMode } from './../../../core'; <mask> import { useTypeahead } from './useTypeahead'; <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
import Input from '../../primitives/Input'; import { useThemeProps } from '../../../hooks';
<mask> import { extractInObject } from '../../../theme/tools'; <mask> import { ITypeaheadProps, layoutPropsList } from './types'; <mask> <mask> export function Typeahead(props: Omit<ITypeaheadProps, 'children'>) { <mask> return ( <mask> <CheckboxImplementation {...props}> <mask> {(item: any) => { <...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
export function Typeahead(props: Omit<ITypeaheadProps, 'children'>) { return ( <CheckboxImplementation {...props}> {(item: any) => { return ( <Item textValue={item.value}> {props.renderItem ? ( props.renderItem(item) ) : ( <Box p={2} just...
<mask> import { useTypeahead } from './useTypeahead'; <mask> import { extractInObject } from '../../../theme/tools'; <mask> import { ITypeaheadProps, layoutPropsList } from './types'; <mask> <mask> const Typeahead = ( <mask> { <mask> options, <mask> renderItem, <mask> onChangeText, <mask> t...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
let triggerRef = React.useRef(null); let inputRef = React.useRef(null); let listBoxRef = React.useRef(null); let popoverRef = React.useRef(null); let { buttonProps: triggerProps, inputProps, listBoxProps, labelProps, } = useComboBox( { ...props, inputRef, buttonRef: tr...
<mask> }); <mask> options = tempOptions; <mask> } <mask> <mask> const { <mask> isOpen, <mask> getInputProps, <mask> getMenuItemProps, <mask> getMenuProps, <mask> getToggleButtonProps, <mask> } = useTypeahead({ <mask> items: inputItems, <mask> itemToString: (item) ...
[ "keep", "keep", "keep", "keep", "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/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
state );
<mask> item.toLowerCase().includes(inputValue.toLowerCase()) <mask> ) <mask> ); <mask> }, <mask> onSelectedItemChange, <mask> }); <mask> const toggleIconSetter = () => { <mask> if (typeof toggleIcon === 'function') <mask> return toggleIcon({ <mask> isOpen:...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
if (typeof props.toggleIcon === 'function') return props.toggleIcon({ isOpen: state.isOpen, isLoading: props.isLoading,
<mask> }, <mask> onSelectedItemChange, <mask> }); <mask> const toggleIconSetter = () => { <mask> if (typeof toggleIcon === 'function') <mask> return toggleIcon({ <mask> isOpen: isOpen && getInputProps(inputValue, onChangeText).value !== '', <mask> }); <mask> return toggl...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
return props.toggleIcon;
<mask> if (typeof toggleIcon === 'function') <mask> return toggleIcon({ <mask> isOpen: isOpen && getInputProps(inputValue, onChangeText).value !== '', <mask> }); <mask> return toggleIcon; <mask> }; <mask> <mask> // Causing App to crash , commenting this might have caused future ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
let { buttonProps } = useButton(triggerProps, triggerRef);
<mask> }); <mask> return toggleIcon; <mask> }; <mask> <mask> // Causing App to crash , commenting this might have caused future bugs , might need a revisit <mask> // React.useEffect(() => { <mask> // if (getInputProps(inputValue, onChangeText).value === '') { <mask> // // getToggleBut...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
<mask> // }, [inputValue, onChangeText, getInputProps, getToggleButtonProps]); <mask> <mask> const [dropdownTop, setDropDownTop]: any = useState(55); <mask> <mask> const onLayout = useCallback((event) => { <mask> const { height } = event.nativeEvent.layout; <mask> setDropDownTop(height % 2 === 0 ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
<Box flexDirection="row" {...layoutProps}>
<mask> const { height } = event.nativeEvent.layout; <mask> setDropDownTop(height % 2 === 0 ? height + 1 : height); //not to use theme values <mask> }, []); <mask> return ( <mask> <Box width="100%" flexDirection="row" onLayout={onLayout} {...layoutProps}> <mask> <Box flex={1}> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
{props.label && ( <Text {...labelProps} pb={1}> {props.label} </Text> )}
<mask> return ( <mask> <Box flexDirection="row" {...layoutProps}> <mask> <Box flex={1}> <mask> <Input <mask> {...inputProps} <mask> ref={inputRef} <mask> InputRightElement={ <mask> // @ts-ignore - RN has hitSlop type inconsistent for View and Pressab...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
{...inputProps} ref={inputRef}
<mask> return ( <mask> <Box width="100%" flexDirection="row" onLayout={onLayout} {...layoutProps}> <mask> <Box flex={1}> <mask> <Input <mask> {...newProps} <mask> {...getInputProps(inputValue, onChangeText)} <mask> InputRightElement={ <mask> <Button ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
// @ts-ignore - RN has hitSlop type inconsistent for View and Pressable! <Pressable {...buttonProps} ref={triggerRef}>
<mask> <Input <mask> {...newProps} <mask> {...getInputProps(inputValue, onChangeText)} <mask> InputRightElement={ <mask> <Button variant="unstyled" m={0} p={0} {...getToggleButtonProps()}> <mask> {toggleIconSetter()} <mask> </Button> <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
</Pressable>
<mask> {...getInputProps(inputValue, onChangeText)} <mask> InputRightElement={ <mask> <Button variant="unstyled" m={0} p={0} {...getToggleButtonProps()}> <mask> {toggleIconSetter()} <mask> </Button> <mask> } <mask> ref={ref} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
<mask> <Button variant="unstyled" m={0} p={0} {...getToggleButtonProps()}> <mask> {toggleIconSetter()} <mask> </Button> <mask> } <mask> ref={ref} <mask> /> <mask> </Box> <mask> <Box <mask> position="absolute" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
{state.isOpen && ( <ListBoxPopup {...listBoxProps} listBoxRef={listBoxRef} popoverRef={popoverRef} state={state} label={props.label} /> )}
<mask> } <mask> /> <mask> </Box> <mask> </Box> <mask> ); <mask> } <mask> </s> feat: typeahead add async example </s> remove ); }} toggleIcon={({ isOpen }: any) => { return isOpen ? ( <Icon name="arrow-drop-up" type="MaterialIcons" si...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
</Box> ); } type IListBoxProps = { popoverRef: any; listBoxRef: any; state: ComboBoxState<any>; dropdownHeight: number; label: string; }; function ListBoxPopup(props: IListBoxProps) { let { popoverRef, listBoxRef, state, dropdownHeight, label } = props; let { listBoxProps } = useListBox( { ...
<mask> } <mask> ref={ref} <mask> /> <mask> </Box> <mask> <Box <mask> position="absolute" <mask> top={dropdownTop} <mask> width="100%" <mask> height={dropdownHeight ? dropdownHeight : 200} <mask> {...getMenuProps()} <mask> >...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
} function Option({ item, state }: { item: any; state: ComboBoxState<any> }) { const searchItemStyle = useThemeProps('TypeAheadSearchItem', {}); let ref = React.useRef(null); let isDisabled = state.disabledKeys.has(item.key); let isSelected = state.selectionManager.isSelected(item.key); let isFocused = stat...
<mask> </ScrollView> <mask> </Box> <mask> </Box> <mask> ); <mask> }; <mask> <mask> export default React.memo(forwardRef(Typeahead)); <mask> export { useTypeahead }; </s> feat: typeahead add async example </s> remove export default React.memo(forwardRef(Typeahead)); export { useTypeahead };...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
let { optionProps } = useOption( { key: item.key, isDisabled, isSelected, shouldFocusOnHover: true, shouldUseVirtualFocus: true, }, state, ref ); let backgroundColor = searchItemStyle.backgroundColor; let opacity = 1; if (isSelected) { backgroundColor = sear...
<mask> </Box> <mask> ); <mask> }; <mask> <mask> export default React.memo(forwardRef(Typeahead)); <mask> export { useTypeahead }; </s> feat: typeahead add async example </s> remove }; </s> add } function Option({ item, state }: { item: any; state: ComboBoxState<any> }) { const searchItemStyle = useThe...
[ "keep", "keep", "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/index.tsx
import type { IBoxProps } from 'native-base'; export type IItem = { key: any; value: any; }; export type ITypeaheadProps = IBoxProps & { items: IItem[]; renderItem?: (item: any) => any; onInputChange?: (value: string) => void; toggleIcon?: any; dropdownHeight?: number | string; numberOfItems?: number;...
<mask> import type { IBoxProps, IInputProps } from 'native-base'; <mask> <mask> export type ITypeaheadProps = IBoxProps & <mask> IInputProps & { <mask> options: any[]; <mask> renderItem?: any; </s> feat: typeahead add async example </s> remove export type ITypeaheadProps = IBoxProps & IInputProps & ...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/types.ts
<mask> import type { IBoxProps, IInputProps } from 'native-base'; <mask> <mask> export type ITypeaheadProps = IBoxProps & <mask> IInputProps & { <mask> options: any[]; <mask> renderItem?: any; <mask> onChange?: Function; <mask> toggleIcon: any; <mask> dropdownHeight?: number | string; <...
[ "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/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/Typeahead/types.ts
export { Typeahead } from './Typeahead';
<mask> export { AppBar } from './AppBar'; <mask> <mask> export { Fab } from './Fab'; <mask> export type { IFabProps } from './Fab'; <mask> export { default as Typeahead, useTypeahead } from './Typeahead'; <mask> <mask> export { ComboBox } from './ComboBox'; </s> feat: typeahead add async example </s> remove e...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/components/composites/index.ts
<mask> IuseSnackbarProps, <mask> Fab, <mask> IFabProps, <mask> Typeahead, <mask> useTypeahead, <mask> ComboBox, <mask> } from './components/composites'; <mask> <mask> import { <mask> View, <mask> Text, </s> feat: typeahead add async example </s> remove useTypeahead, ComboBox, </s> add ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/index.tsx
<mask> Snackbar, <mask> useSnackbar, <mask> Fab, <mask> Typeahead, <mask> useTypeahead, <mask> ComboBox, <mask> Select, <mask> }; <mask> export type { <mask> IAlertProps, <mask> IAspectRatioProps, </s> feat: typeahead add async example </s> remove useTypeahead, ComboBox, </s> add </s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/303f639fb36cef374c2cfa9cf78f92eb17d08a9a
src/index.tsx
paddingBottom:variables.footerPaddingBottom,
<mask> shadowOpacity: null <mask> }, <mask> ".full": { <mask> height: variables.footerHeight, <mask> flex: 1 <mask> }, <mask> "NativeBase.Icon": { <mask> color: variables.topTabBarActiveTextColor <mask> }, <mask> "NativeBa...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/components/Footer.js
paddingBottom:variables.footerPaddingBottom,
<mask> borderColor: platform === "ios" && platformStyle !== "material" <mask> ? "#cbcbcb" <mask> : undefined, <mask> height: variables.footerHeight, <mask> elevation: 3, <mask> left: 0, <mask> right: 0 <mask> }; <mask> return footerTheme; </s> Added Footer padding for iPhon...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/components/Footer.js
height: (variables.footerHeight - (variables.isIphoneX ? 34 : 0)),
<mask> shadowRadius: null, <mask> shadowOpacity: null, <mask> alignSelf: "center", <mask> flex: 1, <mask> height: variables.footerHeight, <mask> justifyContent: "center", <mask> ".badge": { <mask> "NativeBase.Badge": { <mask> "NativeBase.Text": { <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/components/FooterTab.js
const isIphoneX = platform === "ios" && deviceHeight === 812 && deviceWidth === 375;
<mask> const deviceHeight = Dimensions.get("window").height; <mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = undefined; <mask> const isIphoneX = deviceHeight === 812 && deviceWidth === 375; <mask> <mask> export default { <mask> plat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/commonColor.js
footerHeight: isIphoneX ? 89 : 55,
<mask> return this.fontSizeBase * 1.4; <mask> }, <mask> <mask> // Footer <mask> footerHeight: 55, <mask> footerDefaultBg: "#2874F0", <mask> <mask> // FooterTab <mask> tabBarTextColor: "#8bb3f4", <mask> tabBarTextSize: platform === "ios" ? 14 : 11, </s> Added Footer padding for iPhoneX </s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/commonColor.js
footerPaddingBottom: isIphoneX ? 34 : 0,
<mask> footerHeight: isIphoneX ? 89 : 55, <mask> footerDefaultBg: "#2874F0", <mask> <mask> // FooterTab <mask> tabBarTextColor: "#8bb3f4", <mask> tabBarTextSize: platform === "ios" ? 14 : 11, </s> Added Footer padding for iPhoneX </s> remove footerHeight: 55, </s> add footerHeight: isIphoneX ? 89...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/commonColor.js
const isIphoneX = platform === "ios" && deviceHeight === 812 && deviceWidth === 375;
<mask> const deviceHeight = Dimensions.get("window").height; <mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = "material"; <mask> const isIphoneX = deviceHeight === 812 && deviceWidth === 375; <mask> <mask> export default { <mask> pla...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/material.js
footerHeight: isIphoneX ? 89 : 55,
<mask> return this.fontSizeBase * 1.4; <mask> }, <mask> <mask> // Footer <mask> footerHeight: 55, <mask> footerDefaultBg: "#3F51B5", <mask> <mask> // FooterTab <mask> tabBarTextColor: "#b3c7f9", <mask> tabBarTextSize: platform === "ios" ? 14 : 11, </s> Added Footer padding for iPhoneX </s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/material.js
footerPaddingBottom: isIphoneX ? 34 : 0,
<mask> <mask> // Footer <mask> footerHeight: isIphoneX ? 89 : 55, <mask> footerDefaultBg: "#3F51B5", <mask> <mask> // FooterTab <mask> tabBarTextColor: "#b3c7f9", <mask> tabBarTextSize: platform === "ios" ? 14 : 11, <mask> activeTab: "#fff", </s> Added Footer padding for iPhoneX </s> remove ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/material.js
const isIphoneX = platform === "ios" && deviceHeight === 812 && deviceWidth === 375;
<mask> const deviceHeight = Dimensions.get("window").height; <mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = undefined; <mask> const isIphoneX = deviceHeight === 812 && deviceWidth === 375; <mask> <mask> export default { <mask> plat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/platform.js
footerHeight: isIphoneX ? 89 : 55,
<mask> return this.fontSizeBase * 1.4; <mask> }, <mask> <mask> // Footer <mask> footerHeight: 55, <mask> footerDefaultBg: platform === "ios" ? "#F8F8F8" : "#4179F7", <mask> <mask> // FooterTab <mask> tabBarTextColor: platform === "ios" ? "#6b6b6b" : "#b3c7f9", <mask> tabBarTextSize: platfo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/platform.js
footerPaddingBottom: isIphoneX ? 34 : 0,
<mask> // Footer <mask> footerHeight: isIphoneX ? 89 : 55, <mask> footerDefaultBg: platform === "ios" ? "#F8F8F8" : "#4179F7", <mask> <mask> // FooterTab <mask> tabBarTextColor: platform === "ios" ? "#6b6b6b" : "#b3c7f9", <mask> tabBarTextSize: platform === "ios" ? 14 : 11, <mask> activeTab: plat...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/30a43d0e0d268fa0bf47034d17fb82365684c74b
src/theme/variables/platform.js
presets: [['babel-preset-expo', { jsxRuntime: 'classic' }]],
<mask> <mask> module.exports = function (api) { <mask> api.cache(true); <mask> return { <mask> presets: ['babel-preset-expo'], <mask> plugins: [ <mask> [ <mask> 'module-resolver', <mask> { <mask> alias: { </s> Revert "Revert "Feat/unit testing jest"" </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/babel.config.js
"@react-native-async-storage/async-storage": "^1.17.3",
<mask> }, <mask> "dependencies": { <mask> "@expo/vector-icons": "^12.0.0", <mask> "@react-native-aria/overlays": "^0.2.9", <mask> "@react-native-async-storage/async-storage": "~1.15.0", <mask> "expo": "^44.0.0", <mask> "expo-font": "~10.0.4", <mask> "expo-linear-gradient": "~11.0.3",...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/package.json
"@storybook/addon-storyshots": "6.3",
<mask> "@storybook/addon-knobs": "^5.3", <mask> "@storybook/addon-links": "^5.3", <mask> "@storybook/addon-ondevice-actions": "^5.3.23", <mask> "@storybook/addon-ondevice-knobs": "^5.3.23", <mask> "@storybook/addon-storyshots": "^6.3.4", <mask> "@storybook/react-native": "^5.3.23", <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/package.json
"react-test-renderer": "17.0.1",
<mask> "metro-react-native-babel-preset": "^0.64.0", <mask> "patch-package": "^6.2.2", <mask> "postinstall-postinstall": "^2.1.0", <mask> "react-dom": "17.0.1", <mask> "react-test-renderer": "^17.0.2", <mask> "typescript": "~4.3.5" <mask> }, <mask> "private": false <mask> } </s> Re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/package.json
import React, { useState } from 'react'; import { StatusBar, Box, Text, Button } from 'native-base';
<mask> import React from 'react'; <mask> import { StatusBar } from 'native-base'; <mask> export const Example = () => { <mask> return <StatusBar />; <mask> }; </s> Revert "Revert "Feat/unit testing jest"" </s> remove return <StatusBar />; </s> add const [hidden, setHidden] = useState(false); const change...
[ "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/basic/StatusBar/Basic.tsx
const [hidden, setHidden] = useState(false); const changeStatusBarVisibility = () => setHidden(!hidden); return ( <Box flex={1} justifyContent="center" safeArea> <StatusBar animated={true} backgroundColor="#61dafb" barStyle="default" showHideTransition="fade" hidd...
<mask> import React from 'react'; <mask> import { StatusBar } from 'native-base'; <mask> export const Example = () => { <mask> return <StatusBar />; <mask> }; </s> Revert "Revert "Feat/unit testing jest"" </s> remove import React from 'react'; import { StatusBar } from 'native-base'; </s> add import React, { u...
[ "keep", "keep", "keep", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/basic/StatusBar/Basic.tsx
ScrollView,
<mask> HStack, <mask> VStack, <mask> Text, <mask> Divider, <mask> Center, <mask> } from 'native-base'; <mask> <mask> export function Example() { <mask> const getTextColor = ( <mask> variant: </s> Revert "Revert "Feat/unit testing jest"" </s> remove import React from 'react'; import { StatusB...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Alert/variant.tsx
<ScrollView mt={5}> <Stack space={3} w="90%" maxW="400" mr={5} flexDirection="column" justifyContent="center" alignItems="center" >
<mask> } <mask> }; <mask> <mask> return ( <mask> <Center> <mask> <Stack space={3} w="90%" maxW="400"> <mask> {[ <mask> 'solid', <mask> 'left-accent', <mask> 'top-accent', <mask> 'outline', </s> Revert "Revert "Feat/unit testing jest"" </s> r...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Alert/variant.tsx
</ScrollView>
<mask> </> <mask> ); <mask> })} <mask> </Stack> <mask> </Center> <mask> ); <mask> } </s> Revert "Revert "Feat/unit testing jest"" </s> remove <Button onPress={toggleColorMode}>Toggle</Button> </s> add <Button onPress={toggleColorMode} h={10}> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Alert/variant.tsx
<HStack justifyContent="center" alignItems="center">
<mask> <Heading mb={4}>Breadcrumb Composition</Heading> <mask> <Breadcrumb spacing={2} _button={{ bg: 'transparent' }}> <mask> <Breadcrumb.Item> <mask> <Breadcrumb.Link> <mask> <HStack> <mask> <Breadcrumb.Icon <mask> as={<MaterialIcons name=...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Breadcrumb/Composition.tsx
<HStack justifyContent="center" alignItems="center"> <Breadcrumb.Icon fontWeight={'bold'} as={MaterialCommunityIcons} name="file-document" mr={1} size="xs" /> <Breadcrumb.Text>Docs</Brea...
<mask> </Breadcrumb.Link> <mask> </Breadcrumb.Item> <mask> <Breadcrumb.Item> <mask> <Breadcrumb.Link href="https://alpha.nativebase.io/" isExternal> <mask> <Breadcrumb.Icon <mask> fontWeight={'bold'} <mask> as={MaterialCommunityIcons} <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Breadcrumb/Composition.tsx
<HStack justifyContent="center" alignItems="center">
<mask> <Breadcrumb.Link <mask> href="https://github.com/GeekyAnts/nativebase" <mask> isExternal <mask> > <mask> <HStack> <mask> <Breadcrumb.Icon <mask> as={<AntDesign name="github" />} <mask> mr={1} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Breadcrumb/Composition.tsx
<Breadcrumb.Link> <Breadcrumb.Text _current={{ color: 'red.500' }}> Home (This is currently active) </Breadcrumb.Text> </Breadcrumb.Link>
<mask> <Box> <mask> <Heading mb={4}>Breadcrumb with String Separator</Heading> <mask> <Breadcrumb separator={'-'}> <mask> <Breadcrumb.Item isCurrent> <mask> <Breadcrumb.Link>Home (This is currently active)</Breadcrumb.Link> <mask> </Breadcrumb.Item> <mask> <Bread...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Breadcrumb/Separators.tsx
width: '100', height: '100',
<mask> viewBox: '0 0 100 100', <mask> size: 10, <mask> strokeWidth: '10', <mask> }} <mask> > <mask> <Path d="M46.667 90v-.008c-4.922 0-11.021-2.695-13.333-6.66V40c5.521 0 10-4.479 10-10V13.333A3.33 3.33 0 0 1 46.667 10C54.029 10 60 15.97 60 23.333v13.333A3.331 3...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/IconButton/SVGIcon.tsx
<Path d="M46.667 90v-.008c-4.922 0-11.021-2.695-13.333-6.66V40c5.521 0 10-4.479 10-10V13.333A3.33 3.33 0 0 1 46.667 10C54.029 10 60 15.97 60 23.333v13.333A3.331 3.331 0 0 0 63.334 40H80c5.52 0 10 4.479 10 10v30h-.004c0 5.52-4.477 9.992-9.996 10H46.667zM10 40h16.666v43.333H10z" />
<mask> size: 10, <mask> strokeWidth: '10', <mask> }} <mask> > <mask> <Icon width="100" height="100"> <mask> <Path d="M46.667 90v-.008c-4.922 0-11.021-2.695-13.333-6.66V40c5.521 0 10-4.479 10-10V13.333A3.33 3.33 0 0 1 46.667 10C54.029 10 60 15.97 60 23.333v13.333...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/IconButton/SVGIcon.tsx
<Alert justifyContent="center" status="error" safeAreaTop={8}>
<mask> const str = `${isOpenTop ? 'Hide' : 'Check Internet Connection'}`; <mask> return ( <mask> <Box h="32" w="300"> <mask> <Slide in={isOpenTop} placement="top"> <mask> <Alert justifyContent="center" status="error"> <mask> <Alert.Icon /> <mask> <Text color="error.600" ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Transitions/Slide.tsx
safeArea
<mask> justifyContent="center" <mask> _dark={{ <mask> bg: 'emerald.200', <mask> }} <mask> > <mask> <HStack space={2}> <mask> <CheckIcon <mask> size="4" <mask> color="emerald.600" <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/composites/Transitions/SlideWrapped.tsx
if (myRef.current && myRef.current.setNativeProps) { const styleObj = { borderWidth: 4, borderRadius: 4, borderColor: '#22D3EE', }; myRef?.current?.setNativeProps({ style: styleObj, }); }
<mask> export function Example() { <mask> const myRef = React.useRef(null); <mask> <mask> React.useEffect(() => { <mask> const styleObj = { <mask> borderWidth: 4, <mask> borderRadius: 4, <mask> borderColor: '#22D3EE', <mask> }; <mask> myRef?.current?.setNativeProps({ <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/Image/WithRef.tsx
import { List } from 'native-base'; import { SimpleLineIcons, Ionicons } from '@expo/vector-icons';
<mask> import React from 'react'; <mask> import { List, SearchIcon } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <List mt={2} my={2}> <mask> <List.Item> <mask> {/* <List.Icon as={<SearchIcon />} /> */} </s> Revert "Revert "Feat/unit testing jest"...
[ "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/ListWithIcon.tsx
<List mt={2} my={2} width={80}>
<mask> import { List, SearchIcon } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <List mt={2} my={2}> <mask> <List.Item> <mask> {/* <List.Icon as={<SearchIcon />} /> */} <mask> Inbox <mask> </List.Item> <mask> <List.Item> </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/ListWithIcon.tsx
<List.Icon as={SimpleLineIcons} name="docs" />
<mask> {/* <List.Icon as={<SearchIcon />} /> */} <mask> Inbox <mask> </List.Item> <mask> <List.Item> <mask> <List.Icon as={<SearchIcon />} /> <mask> Drafts <mask> </List.Item> <mask> <List.Item> <mask> <List.Icon as={<SearchIcon />} /> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/ListWithIcon.tsx
<List.Icon as={Ionicons} name="stats-chart-outline" />
<mask> <List.Icon as={<SearchIcon />} /> <mask> Drafts <mask> </List.Item> <mask> <List.Item> <mask> <List.Icon as={<SearchIcon />} /> <mask> Graphs and stats <mask> </List.Item> <mask> <List.Item> <mask> <List.Icon as={<SearchIcon />} /> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/ListWithIcon.tsx
<List.Icon as={Ionicons} name="attach" />
<mask> <List.Icon as={<SearchIcon />} /> <mask> Graphs and stats <mask> </List.Item> <mask> <List.Item> <mask> <List.Icon as={<SearchIcon />} /> <mask> Attachments <mask> </List.Item> <mask> </List> <mask> ); <mask> }; </s> Revert "Revert "Feat/unit tes...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/ListWithIcon.tsx
width={32}
<mask> py={2} <mask> my={2} <mask> > <mask> {title} <mask> </List.Item> <mask> ); </s> Revert "Revert "Feat/unit testing jest"" </s> remove <List mt={2} my={2}> </s> add <List mt={2} my={2} width={80}> </s> remove <List.Icon as={<SearchIcon />} /> </s> add <List.Icon as=...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/List/VirtualizedList.tsx
minWidth="100"
<mask> <FormControl> <mask> <FormControl.Label>Select Color</FormControl.Label> <mask> <Select <mask> selectedValue={value} <mask> minWidth="200" <mask> accessibilityLabel="Select a Color" <mask> placeholder="Select a Color" <mask> onValueC...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/components/primitives/Select/SelectLongList.tsx
mt={10}
<mask> p="4" <mask> flex="1" <mask> maxW="300" <mask> w="100%" <mask> bg={colorMode === 'dark' ? 'coolGray.800' : 'warmGray.50'} <mask> safeArea <mask> > <mask> <Text fontSize="lg" display="flex" mb="20"> </s> Revert "Revert "Feat/unit testing jest"...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/hooks/useColorMode/Basic.tsx
safeArea
<mask> mt={10} <mask> w="100%" <mask> bg={colorMode === 'dark' ? 'coolGray.800' : 'warmGray.50'} <mask> > <mask> <Text fontSize="lg" display="flex" mb="20"> <mask> The active color mode is{' '} <mask> <Text bold fontSize="lg"> <mask> {colorMo...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/hooks/useColorMode/Basic.tsx
<Button onPress={toggleColorMode} h={10}> Toggle </Button>
<mask> <Text bold fontSize="lg"> <mask> {colorMode} <mask> </Text> <mask> </Text> <mask> <Button onPress={toggleColorMode}>Toggle</Button> <mask> </Box> <mask> </Center> <mask> ); <mask> } <mask> </s> Revert "Revert "Feat/unit testing jest"" </s> r...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/hooks/useColorMode/Basic.tsx
mt={10} safeArea
<mask> bg={useColorModeValue('warmGray.50', 'coolGray.800')} <mask> maxW="300" <mask> w="100%" <mask> > <mask> <Text fontSize="lg" display="flex" mb={20}> <mask> The active color mode is{' '} <mask> <Text bold fontSize="18px"> <mask> {useColo...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/311ad8a16488ba7e56d0dde0c3324851c5a6f6b0
example/storybook/stories/hooks/useColorModeValue/Basic.tsx