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
_text: { fontFamily: 'mono', fontSize: 'sm', },
<mask> <mask> const { variants, defaultProps } = Badge; <mask> <mask> const baseStyle = { <mask> fontFamily: 'mono', <mask> fontSize: 'sm', <mask> borderRadius: 'sm', <mask> px: 2, <mask> py: 1, <mask> }; <mask> </s> fix: updated the code and theme to support api changes </s> remove const Style...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9
src/theme/components/code.ts
{ [key in string]: boolean; }
<mask> <mask> export const ToastProvider = ({ children }: { children: any }) => { <mask> const [toastInfo, setToastInfo] = useState<IToastInfo>({}); <mask> const [visibleToasts, setVisibleToasts] = useState< <mask> { [key in string]: boolean } <mask> >({}); <mask> const themeProps = usePropsResoluti...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const [themeProps] = useState(usePropsResolution('Toast', {}));
<mask> const [toastInfo, setToastInfo] = useState<IToastInfo>({}); <mask> const [visibleToasts, setVisibleToasts] = useState< <mask> { [key in string]: boolean } <mask> >({}); <mask> const themeProps = usePropsResolution('Toast', {}); <mask> const { colorMode } = useColorMode(); <mask> let toastI...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const toastIndex = React.useRef(1);
<mask> { [key in string]: boolean } <mask> >({}); <mask> const themeProps = usePropsResolution('Toast', {}); <mask> const { colorMode } = useColorMode(); <mask> let toastIndex = React.useRef(1); <mask> <mask> const hideAll = () => { <mask> setVisibleToasts({}); <mask> }; <mask> </s> fea...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const hideAll = React.useCallback(() => {
<mask> const themeProps = usePropsResolution('Toast', {}); <mask> const { colorMode } = useColorMode(); <mask> let toastIndex = React.useRef(1); <mask> <mask> const hideAll = () => { <mask> setVisibleToasts({}); <mask> }; <mask> <mask> const hideToast = (id: any) => { <mask> setVisibleTo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
}, [setVisibleToasts]); const hideToast = React.useCallback( (id: any) => { setVisibleToasts((prevVisibleToasts) => ({ ...prevVisibleToasts, [id]: false, })); }, [setVisibleToasts] );
<mask> let toastIndex = React.useRef(1); <mask> <mask> const hideAll = () => { <mask> setVisibleToasts({}); <mask> }; <mask> <mask> const hideToast = (id: any) => { <mask> setVisibleToasts((prevVisibleToasts) => ({ <mask> ...prevVisibleToasts, <mask> [id]: false, <mask> }));...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const isActive = React.useCallback( (id: any) => { for (const toastPosition of Object.keys(toastInfo)) { const positionArray: Array<IToast> = toastInfo[toastPosition]; return positionArray.findIndex((toastData) => toastData.id === id) > -1; }
<mask> [id]: false, <mask> })); <mask> }; <mask> <mask> const isActive = (id: any) => { <mask> for (let toastPosition of Object.keys(toastInfo)) { <mask> // @ts-ignore <mask> let positionArray: Array<IToast> = toastInfo[toastPosition]; <mask> return positionArray.findIndex(...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
return false; }, [toastInfo] );
<mask> let positionArray: Array<IToast> = toastInfo[toastPosition]; <mask> return positionArray.findIndex((toastData) => toastData.id === id) > -1; <mask> } <mask> <mask> return false; <mask> }; <mask> <mask> const removeToast = (id: any) => { <mask> setToastInfo((prev) => { <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const removeToast = React.useCallback( (id: any) => { setToastInfo((prev) => { for (const toastPosition of Object.keys(prev)) { const positionArray: Array<IToast> = prev[toastPosition]; const isToastPresent = positionArray.findIndex((toastData) => toastData.id === id)...
<mask> <mask> return false; <mask> }; <mask> <mask> const removeToast = (id: any) => { <mask> setToastInfo((prev) => { <mask> for (let toastPosition of Object.keys(prev)) { <mask> // @ts-ignore <mask> let positionArray: Array<IToast> = prev[toastPosition]; <mask> co...
[ "keep", "keep", "keep", "keep", "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/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
<mask> <mask> let newToastInfo = { ...prev, ...temp }; <mask> return newToastInfo; <mask> } <mask> } <mask> <mask> return prev; <mask> }); <mask> }; <mask> </s> feat: performance fixes in toast provider and fixes in hybrid provider </s> remove const removeTo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
return prev; }); }, [setToastInfo] );
<mask> return newToastInfo; <mask> } <mask> } <mask> <mask> return prev; <mask> }); <mask> }; <mask> <mask> const getTextColor = ( <mask> variant: <mask> | 'solid' <mask> | 'left-accent' </s> feat: performance fixes in toast provider and fixes in hybr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const getTextColor = React.useCallback( ( variant: | 'solid' | 'left-accent' | 'top-accent' | 'outline' | 'subtle' | 'outline-light' | any ): any => { switch (variant) { case 'left-accent': case 'top-accent': case 'sub...
<mask> return prev; <mask> }); <mask> }; <mask> <mask> const getTextColor = ( <mask> variant: <mask> | 'solid' <mask> | 'left-accent' <mask> | 'top-accent' <mask> | 'outline' <mask> | 'subtle' <mask> | 'outline-light' <mask> | any <mask> ): an...
[ "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/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
const setToast = React.useCallback( (props: IToastProps): number => { // console.log("in settoast"); const { placement = 'bottom', title, render, status, id = toastIndex.current++, description, isClosable = true, duration = 5000, ...
<mask> return 'black'; <mask> } <mask> }; <mask> <mask> const setToast = (props: IToastProps): number => { <mask> const { <mask> placement = 'bottom', <mask> title, <mask> render, <mask> status, <mask> id = toastIndex.current++, <mask> description, <...
[ "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/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
); } else if (status || variant) { component = ( <Alert maxWidth="100%" alignSelf="center" status={status ?? 'info'} variant={variant as any} accessibilityLiveRegion={accessibilityLiveRegion} {...rest} > ...
<mask> > <mask> {description} <mask> </Box> <mask> </VStack> <mask> </Alert> <mask> ); <mask> } <mask> <mask> toastInfo[placement] = [ <mask> ...positionToastArray, <mask> { component, id, config: props }, <mask> ]; </s>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
toastInfo[placement] = [ ...positionToastArray, { component, id, config: props }, ];
<mask> </Alert> <mask> ); <mask> } <mask> <mask> toastInfo[placement] = [ <mask> ...positionToastArray, <mask> { component, id, config: props }, <mask> ]; <mask> <mask> setToastInfo({ ...toastInfo }); <mask> <mask> setVisibleToasts({ ...visibleToasts, [id]: t...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
setToastInfo({ ...toastInfo });
<mask> ...positionToastArray, <mask> { component, id, config: props }, <mask> ]; <mask> <mask> setToastInfo({ ...toastInfo }); <mask> <mask> setVisibleToasts({ ...visibleToasts, [id]: true }); <mask> if (duration !== null) { <mask> setTimeout(function () { <mask> hi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
setVisibleToasts({ ...visibleToasts, [id]: true }); if (duration !== null) { setTimeout(function () { hideToast(id); }, duration); }
<mask> ]; <mask> <mask> setToastInfo({ ...toastInfo }); <mask> <mask> setVisibleToasts({ ...visibleToasts, [id]: true }); <mask> if (duration !== null) { <mask> setTimeout(function () { <mask> hideToast(id); <mask> }, duration); <mask> } <mask> <mask> // iOS do...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
// iOS doesn't support accessibilityLiveRegion if (accessibilityAnnouncement && Platform.OS === 'ios') { AccessibilityInfo.announceForAccessibility(accessibilityAnnouncement); }
<mask> hideToast(id); <mask> }, duration); <mask> } <mask> <mask> // iOS doesn't support accessibilityLiveRegion <mask> if (accessibilityAnnouncement && Platform.OS === 'ios') { <mask> AccessibilityInfo.announceForAccessibility(accessibilityAnnouncement); <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
return id; }, [getTextColor, themeProps, toastInfo, visibleToasts, hideToast] ); const contextValue = React.useMemo(() => { return { toastInfo, setToastInfo, setToast, removeToast, hideAll, isActive, visibleToasts, setVisibleToasts, hideToast,...
<mask> if (accessibilityAnnouncement && Platform.OS === 'ios') { <mask> AccessibilityInfo.announceForAccessibility(accessibilityAnnouncement); <mask> } <mask> <mask> return id; <mask> }; <mask> <mask> return ( <mask> <ToastContext.Provider <mask> value={{ <mask> toas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
<ToastContext.Provider value={contextValue}>
<mask> return id; <mask> }; <mask> <mask> return ( <mask> <ToastContext.Provider <mask> value={{ <mask> toastInfo, <mask> setToastInfo, <mask> setToast, <mask> removeToast, <mask> hideAll, <mask> isActive, <mask> visibleToasts, <ma...
[ "keep", "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/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/components/composites/Toast/Toast.tsx
import React, { useMemo } from 'react';
<mask> import React, { useState } from 'react'; <mask> import { Platform } from 'react-native'; <mask> import { HybridContext } from './Context'; <mask> import { useModeManager } from './../color-mode/hooks'; <mask> import type { IColorModeProviderProps } from './../color-mode'; <mask> import { keyboardDismissHan...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/core/hybrid-overlay/HybridProvider.tsx
const contextValue = useMemo(() => { return { colorMode: { colorMode, toggleColorMode, setColorMode, accessibleColors, setAccessibleColors, }, }; }, [ colorMode, toggleColorMode, setColorMode, accessibleColors, setAccessibleColors, ])...
<mask> const [accessibleColors, setAccessibleColors] = React.useState<boolean>( <mask> isTextColorAccessible <mask> ); <mask> <mask> const [contextValue] = useState({ <mask> colorMode: { <mask> colorMode, <mask> toggleColorMode, <mask> setColorMode, <mask> accessibleColo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9840b99e371a10a7643a3a7b4b251dbcd83374de
src/core/hybrid-overlay/HybridProvider.tsx
<Pressable maxW="96">
<mask> <mask> export function Example() { <mask> return ( <mask> <Box alignItems="center"> <mask> <Pressable <mask> maxW="96" <mask> borderWidth="1" <mask> borderColor="coolGray.300" <mask> shadow="3" <mask> rounded="8" <mask> p="5" <mask> >...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98729a7fed23b0c3c919d140bda857eb0db84588
example/storybook/stories/components/primitives/Pressable/Events.tsx
p="5"
<mask> scale: isPressed ? 0.96 : 1, <mask> }, <mask> ], <mask> }} <mask> p="3" <mask> rounded="8" <mask> > <mask> <HStack alignItems="center"> <mask> <Badge <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98729a7fed23b0c3c919d140bda857eb0db84588
example/storybook/stories/components/primitives/Pressable/Events.tsx
shadow={3} borderWidth="1" borderColor="coolGray.300"
<mask> p="5" <mask> rounded="8" <mask> > <mask> <HStack alignItems="center"> <mask> <Badge <mask> colorScheme="darkBlue" <mask> _text={{ color: 'white' }} </s> fix: pressable example and update snapshots </...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98729a7fed23b0c3c919d140bda857eb0db84588
example/storybook/stories/components/primitives/Pressable/Events.tsx
<mask> {}, <mask> { resolveResponsively: ['space', 'direction'] } <mask> ); <mask> <mask> // eslint-disable-next-line react-hooks/rules-of-hooks <mask> const responsiveQueryContext = React.useContext(ResponsiveQueryContext); <mask> const disableCSSMediaQueries = responsiveQueryContext.disableCSS...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98cd225f3a6999f496ba9c6c56644cfb7c2a73c4
src/components/primitives/Stack/Stack.tsx
<mask> // eslint-disable-next-line react-hooks/rules-of-hooks <mask> const responsiveQueryContext = React.useContext(ResponsiveQueryContext); <mask> const disableCSSMediaQueries = responsiveQueryContext.disableCSSMediaQueries; <mask> <mask> // eslint-disable-next-line react-hooks/rules-of-hooks <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98cd225f3a6999f496ba9c6c56644cfb7c2a73c4
src/components/primitives/Stack/Stack.tsx
// Thanks @gregberge for code and @nandorojo for suggestion. // Original source: https://github.com/gregberge/react-flatten-children type ReactChildArray = ReturnType<typeof React.Children.toArray>; function flattenChildren(children: React.ReactNode): ReactChildArray { const childrenArray = React.Children.toArray(chi...
<mask> | ThemeSpaceType; <mask> <mask> const getSpacedChildren = ( <mask> children: JSX.Element[] | JSX.Element, <mask> space: undefined | SpaceType, <mask> axis: 'X' | 'Y', <mask> reverse: string, <mask> divider: JSX.Element | undefined </s> fix: fixed stack for fragment by child flattening </s> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98cd225f3a6999f496ba9c6c56644cfb7c2a73c4
src/utils/getSpacedChildren.tsx
let childrenArray = React.Children.toArray(flattenChildren(children));
<mask> axis: 'X' | 'Y', <mask> reverse: string, <mask> divider: JSX.Element | undefined <mask> ): any => { <mask> let childrenArray = React.Children.toArray(children); <mask> childrenArray = <mask> reverse === 'reverse' ? [...childrenArray].reverse() : childrenArray; <mask> <mask> const orient...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98cd225f3a6999f496ba9c6c56644cfb7c2a73c4
src/utils/getSpacedChildren.tsx
'https://pbs.twimg.com/profile_images/1369921787568422915/hoyvrUpc_400x400.jpg',
<mask> <Avatar.Group size="lg" max={4}> <mask> <Avatar <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg', <mask> }} <mask> > <mask> SS <mask> </Avatar> <mask> <Avatar </...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
return <Badge>NEW FEATURE</Badge>;
<mask> import React from 'react'; <mask> import { Badge } from 'native-base'; <mask> <mask> export default function () { <mask> return <Badge>DEFAULT BADGE</Badge>; <mask> } </s> fix: examples and border error message </s> remove import { Popover, Button } from 'native-base'; </s> add import { Popover, Butto...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Badge/usage.tsx
<Modal.Header>Cookie Policy</Modal.Header> <Modal.Body> We use our own and third-party cookies and other tracking technologies, by continuing to browse the website, you accept our use of cookies and tracking technologies. </Modal.Body>
<mask> overlayVisible={true} <mask> > <mask> <Modal.Content> <mask> <Modal.CloseButton /> <mask> <Modal.Header>Modal Header</Modal.Header> <mask> <Modal.Body>Modal body text</Modal.Body> <mask> <Modal.Footer> <mask> <ButtonGroup variant="...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/Basic.tsx
<Button>LEARN MORE</Button>
<mask> <Modal.Header>Modal Header</Modal.Header> <mask> <Modal.Body>Modal body text</Modal.Body> <mask> <Modal.Footer> <mask> <ButtonGroup variant="ghost" spacing={2}> <mask> <Button>ACTION 1</Button> <mask> <Button <mask> onPr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/Basic.tsx
ACCEPT
<mask> onPress={() => { <mask> setModalVisible(!modalVisible); <mask> }} <mask> > <mask> ACTION 2 <mask> </Button> <mask> </ButtonGroup> <mask> </Modal.Footer> <mask> </Modal.Content> <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/Basic.tsx
<Modal.Header>Want to set focus somewhere?</Modal.Header>
<mask> finalFocusRef={finalRef} <mask> > <mask> <Modal.Content> <mask> <Modal.CloseButton /> <mask> <Modal.Header>Hello World</Modal.Header> <mask> <Modal.Body> <mask> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos quasi <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/ModalRefEg.tsx
The below input will get focus upon opening of the Modal <Input mt={4} ref={initialRef} placeholder="I'll recieve focus on Modal's opening" />
<mask> <Modal.Content> <mask> <Modal.CloseButton /> <mask> <Modal.Header>Hello World</Modal.Header> <mask> <Modal.Body> <mask> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos quasi <mask> cupiditate expedita, ipsa corporis officia totam s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/ModalRefEg.tsx
<Modal.Header _text={{ fontSize: '2xl', fontWeight: 'bold' }}> Your Keyboard can't hide me.
<mask> avoidKeyboard <mask> > <mask> <Modal.Content> <mask> <Modal.CloseButton /> <mask> <Modal.Header _text={{ fontSize: '4xl', fontWeight: 'bold' }}> <mask> Hello World <mask> </Modal.Header> <mask> <Modal.Body> <mask> Lore...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/ModalWithAvoidKeyboard.tsx
Try typing something in the Input. <Input mt={4} placeholder="Click here..." />
<mask> <Modal.Header _text={{ fontSize: '4xl', fontWeight: 'bold' }}> <mask> Hello World <mask> </Modal.Header> <mask> <Modal.Body> <mask> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos quasi <mask> cupiditate expedita, ipsa corporis...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/ModalWithAvoidKeyboard.tsx
Hey There! Tell us about yourself.
<mask> > <mask> <Modal.Content> <mask> <Modal.CloseButton /> <mask> <Modal.Header _text={{ fontSize: '2xl', fontWeight: 'bold' }}> <mask> Hello World <mask> </Modal.Header> <mask> <Modal.Body> <mask> Lorem ipsum dolor sit amet consect...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/Size.tsx
Just a one liner would work for us. <Input mt={4} placeholder="Something about you..." />
<mask> <Modal.Header _text={{ fontSize: '2xl', fontWeight: 'bold' }}> <mask> Hello World <mask> </Modal.Header> <mask> <Modal.Body> <mask> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos quasi <mask> cupiditate expedita, ipsa delectus...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Modal/Size.tsx
import { Popover, Button, Link } from 'native-base';
<mask> import React from 'react'; <mask> import { Popover, Button } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <Popover <mask> trigger={(triggerProps: any) => { </s> fix: examples and border error message </s> remove return <Badge>DEFAULT BADGE</Badge>; ...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Popover/Basic.tsx
<Popover.Header>Data Saved</Popover.Header> <Popover.Body>Your changes has been saved.</Popover.Body> <Popover.Footer> <Link>View Changes</Link> </Popover.Footer>
<mask> }} <mask> > <mask> <Popover.Content> <mask> <Popover.CloseButton /> <mask> <Popover.Header>Confirmation!</Popover.Header> <mask> <Popover.Body> <mask> Are you sure you want to have that milkshake? <mask> </Popover.Body> <mask> <Popover.Fo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/Popover/Basic.tsx
import { SimpleGrid, Center } from 'native-base';
<mask> import { SimpleGrid, Box } from 'native-base'; <mask> import React from 'react'; <mask> <mask> const items = 12; <mask> const data = Array(items).fill(0); <mask> </s> fix: examples and border error message </s> remove import { Popover, Button } from 'native-base'; </s> add import { Popover, Button, Lin...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/SimpleGrid/NumberOfColumns.tsx
return ( <Center key={index} bg="primary.200" height={100} width={100} children={`${index}`} /> );
<mask> export default function NumberOfColumnsSimpleGrid() { <mask> return ( <mask> <SimpleGrid columns={3} space={4}> <mask> {data.map((_item, index) => { <mask> return <Box key={index} bg="primary.400" height={100} width={100} />; <mask> })} <mask> </SimpleGrid> <mask> ); <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
example/storybook/stories/components/composites/SimpleGrid/NumberOfColumns.tsx
(props: Omit<IIconButtonProps, 'icon'> & { ref?: any }) => JSX.Element
<mask> Body: React.MemoExoticComponent< <mask> (props: IBoxProps & { ref?: any }) => JSX.Element <mask> >; <mask> CloseButton: React.MemoExoticComponent< <mask> (props: IIconButtonProps & { ref?: any }) => JSX.Element <mask> >; <mask> Content: React.MemoExoticComponent< <mask> (props: IPop...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/components/composites/Popover/types.ts
BorderProps &
<mask> LayoutProps & <mask> FlexboxProps & <mask> TypographyProps & <mask> PositionProps & <mask> customBorderProps & <mask> customPositionProps & <mask> customExtraProps & <mask> customOutlineProps & <mask> customShadowProps & <mask> customLayoutProps & </s> fix: examples and border erro...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/components/primitives/Box/types.ts
customFlexboxProps & {
<mask> customLayoutProps & <mask> customTypographyProps & <mask> customBackgroundProps & <mask> customTransformProps & <mask> customFlexboxProps & <mask> BorderProps & { <mask> style?: ViewStyle; <mask> children?: JSX.Element | JSX.Element[] | string | any; <mask> shadow?: number; <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/components/primitives/Box/types.ts
if (property === 'border') { if (typeof props.border === 'string' && !props.border.includes(' ')) { throw Error( '`border` expects value in the form of `1px solid`,`1px dotted` or a number.' ); } }
<mask> for (let property in props) { <mask> // If the property exists in themePropertyMap then get its value <mask> if (themePropertyMap[property]) { <mask> let propValues = extractPropertyFromFunction( <mask> property, <mask> props, <mask> theme, <mask> component...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/hooks/useThemeProps/utils.ts
bg: mode('white', 'gray.800')(props),
<mask> props, <mask> colorScheme !== 'primary' ? colorScheme : status <mask> ); <mask> return { <mask> borderWidth: 1, <mask> borderColor: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), <mask> iconColor: mode(`${colorScheme}.500`, `${colorScheme}.500`)(props), <mask> textCo...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/theme/components/alert.ts
bg: mode('white', 'gray.800')(props),
<mask> ); <mask> return { <mask> borderWidth: 1, <mask> borderColor: transparentize(`${colorScheme}.600`, 0.2)(theme), <mask> iconColor: mode(`${colorScheme}.500`, `${colorScheme}.200`)(props), <mask> textColor: getColor(theme, `${colorScheme}.900`, colorScheme), </s> fix: examples and border...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/theme/components/alert.ts
borderColor: mode('gray.300', 'gray.700')(props),
<mask> mb: 3, <mask> pt: 3, <mask> px: 3, <mask> borderTopWidth: 1, <mask> }, <mask> popoverContentProps: { <mask> backgroundColor: mode('gray.100', 'gray.600')(props), </s> fix: examples and border error message </s> remove borderColor: mode('gray.100', 'gray.700')(p...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/theme/components/popover.ts
borderColor: mode('gray.300', 'gray.700')(props),
<mask> }, <mask> popoverContentProps: { <mask> backgroundColor: mode('gray.100', 'gray.600')(props), <mask> // borderColor: 'gray.300', <mask> borderColor: mode('gray.100', 'gray.700')(props), <mask> borderWidth: 1, <mask> }, <mask> popoverHeaderProps: { <mask> pt:...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/theme/components/popover.ts
borderColor: mode('gray.300', 'gray.700')(props),
<mask> pb: 3, <mask> pt: 3, <mask> borderTopWidth: 1, <mask> flexDirection: 'row', <mask> flexWrap: 'wrap', <mask> }, <mask> }; </s> fix: examples and border error message </s> remove borderColor: mode('gray.100', 'gray.700')(props), </s> add borderColor: mode('g...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/98db854d19b96e6973f645fe9d2b2a1de752a6bc
src/theme/components/popover.ts
import React, { Text, TouchableOpacity } from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, { Text, View, TouchableOpacity } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import button from '../Styles/button'; <mask> import _ from 'lodash'; <mask> import computeProps from '../../Uti...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
<mask> 'use strict'; <mask> <mask> import React, { Text, View, TouchableOpacity } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import button from '../Styles/button'; <mask> import _ from 'lodash'; <mask> import computeProps from '../../Utils/computeProps'; <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
import Icon from './Icon'; import _ from 'lodash';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import button from '../Styles/button'; <mask> import _ from 'lodash'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Icon from 'react-native-vector-icons/Ionicons'; <mask> <mask> <mask> export default class...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
<mask> import Icon from 'react-native-vector-icons/Ionicons'; <mask> <mask> <mask> export default class Button extends NativeBaseComponent { <mask> static childContextTypes = { <mask> theme: React.PropTypes.object <mask> } <mask> <mask> getChildContext() { <mask> return {the...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
backgroundColor: this.getTheme().btnPrimaryBg
<mask> padding: 10, <mask> justifyContent: 'space-around', <mask> flexDirection: 'row', <mask> alignSelf: 'center', <mask> backgroundColor: this.getTheme().btnPrimaryBg, <mask> } <mask> } <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
alignSelf: (this.props.block) ? 'stretch' : 'flex-start'
<mask> (this.props.warning) ? this.getTheme().btnWarningBg : <mask> (this.props.info) ? this.getTheme().btnInfoBg : <mask> this.getInitialStyle().button.backgroundColor, <mask> height: (this.props.large) ? 60 : (this.props.smal...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
isIconLeft() { var isIconLeft = false; if (this.props['icon-left']) { var isIconLeft = true; } return isIconLeft; } isIconRight() { var isIconRight = false; if (this.props['icon-right']) { var isIconRight = true; } retu...
<mask> <mask> } <mask> <mask> getTextStyle() { <mask> var mergedStyle = {}; <mask> <mask> var btnType = { <mask> color: ((this.props.bordered) && (this.props.primary)) ? this.getTheme().btnPrimaryBg : <mask> ((this.props.bordered) && (this.props.success)) ? this.g...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
return _.merge(mergedStyle, btnType, this.props.textStyle); } getIconProps(icon) { var defaultStyle = { color: ((this.props.bordered) && (this.props.primary)) ? this.getTheme().btnPrimaryBg : ((this.props.bordered) && (this.props.success)) ? this.getTheme().btnSuccessB...
<mask> fontSize: (this.props.large) ? this.getTheme().btnTextSizeLarge : (this.props.small) ? this.getTheme().btnTextSizeSmall : this.getTheme().btnTextSize, <mask> lineHeight: (this.props.large) ? 32 : (this.props.small) ? 15 : 22 <mask> } <mask> <mask> var addedBtnProps = _.merge(t...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
<mask> return _.merge(mergedStyle, addedBtnProps, this.props.textStyle); <mask> } <mask> <mask> renderChildren() { <mask> if(typeof this.props.children == undefined || typeof this.props.children == "string") { <mask> return <TouchableOpacity {...this.prepareRootProps()} > <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
if(typeof this.props.children == "string") { return <Text style={this.getTextStyle()}>{this.props.children}</Text> } else if(Array.isArray(this.props.children)) { var newChildren = []; var childrenArray = React.Children.toArray(this.props.children); ...
<mask> <Text style={this.getTextStyle()}>{this.props.children}</Text> <mask> </TouchableOpacity> <mask> } <mask> <mask> else if(Array.isArray(this.props.children)) { <mask> if(this.props.children[0] && (typeof this.props.children[0] == "string" || this.props...
[ "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/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
else return this.props.children
<mask> </Text> <mask> </TouchableOpacity> <mask> } <mask> <mask> else <mask> return <TouchableOpacity {...this.prepareRootProps()} > <mask> {this.props.children} <mask> </TouchableOpacity> <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
return( <TouchableOpacity {...this.prepareRootProps()} > {this.renderChildren()} </TouchableOpacity> );
<mask> </TouchableOpacity> <mask> } <mask> <mask> render() { <mask> return(this.renderChildren()); <mask> } <mask> <mask> } </s> default icon style, icon-left and icon-roght prop </s> remove else return <TouchableOpacity {...this.prepareRootProps()} > ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/9945be3b10107aac7762e55fa966d70c3f83eb93
Components/Widgets/Button.js
<mask> import View from './View'; <mask> import Button from './Button'; <mask> import Thumbnail from './Thumbnail'; <mask> <mask> var keyIndex = 0; <mask> <mask> export default class CardItemNB extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> return { <mask> l...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().fullImage
<mask> var defaultProps = {}; <mask> if(child.type == Image && !Array.isArray(this.props.children)) { <mask> defaultProps = { <mask> resizeMode: 'stretch', <mask> style: this.getInitialStyle().fullImage, <mask> key: keyIndex++ <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().itemButton
<mask> } <mask> else if(child.type == Button) { <mask> defaultProps = { <mask> small: true, <mask> style: this.getInitialStyle().itemButton, <mask> key: keyIndex++ <mask> } <mask> } <mask> else if(child.typ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().dividerItemText
<mask> } <mask> else if(child.type == Text) { <mask> if ((this.props.header) || (this.props.footer)) { <mask> defaultProps = { <mask> style: this.getInitialStyle().dividerItemText, <mask> key: keyIndex++ <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().itemSubNote
<mask> } <mask> else { <mask> if(child.props.note && this.thumbnailPresent()) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemSubNote, <mask> key: keyIndex++ <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().itemNote
<mask> } <mask> } <mask> else if(child.props.note) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemNote, <mask> key: keyIndex++ <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().itemText
<mask> } <mask> } <mask> else { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemText, <mask> key: keyIndex++ <mask> } <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().itemIcon
<mask> } <mask> } <mask> else if(child.type == Icon) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemIcon, <mask> key: keyIndex++ <mask> } <mask> } <mask> else if(child.type == Thumbnail) { ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().thumbnail
<mask> } <mask> } <mask> else if(child.type == Thumbnail) { <mask> defaultProps = { <mask> style: this.getInitialStyle().thumbnail, <mask> key: keyIndex++ <mask> } <mask> } <mask> else if(child.type == Image ) ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().fullImage
<mask> } <mask> } <mask> else if(child.type == Image ) { <mask> defaultProps = { <mask> style: this.getInitialStyle().fullImage, <mask> key: keyIndex++ <mask> } <mask> } <mask> else { <mask> defaul...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
foregroundColor: this.getContextForegroundColor()
<mask> } <mask> } <mask> else { <mask> defaultProps = { <mask> foregroundColor: this.getContextForegroundColor(), <mask> key: keyIndex++ <mask> } <mask> } <mask> <mask> return computeProps(child.props, defaul...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().listItemDivider
<mask> <mask> if((this.props.header) || (this.props.footer)) { <mask> <mask> defaultProps = { <mask> style: this.getInitialStyle().listItemDivider, <mask> key: keyIndex++ <mask> }; <mask> } <mask> <mask> else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
style: this.getInitialStyle().listItem
<mask> } <mask> <mask> else { <mask> defaultProps = { <mask> style: this.getInitialStyle().listItem, <mask> key: keyIndex++ <mask> }; <mask> } <mask> <mask> return computeProps(this.props, defaultProps); <mask> } <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
newChildren = React.Children.map(this.props.children, (child, i) => { return React.cloneElement(child, {...this.getChildProps(child), key: i});
<mask> var newChildren = []; <mask> <mask> if(!this.thumbnailPresent() && !this.iconPresent()) { <mask> <mask> newChildren = React.Children.map(this.props.children, (child) => { <mask> return React.cloneElement(child, this.getChildProps(child)); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
<View key='cardItem' style={{justifyContent: 'flex-start'}}>
<mask> else { <mask> newChildren = []; <mask> if(!Array.isArray(this.props.children)) { <mask> newChildren.push( <mask> <View key={keyIndex++} style={{justifyContent: 'flex-start'}}> <mask> {React.cloneElement(this.props.c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
<View key='cardItem' style={ this.notePresent() ? this.getRightStyle().right : this.squareThumbs() ? this.getRightStyle().right3 : this.getRightStyle().right2 }> {childrenArray.slice(1).map((child, i) => { return React.cloneElement(child, {...this....
<mask> <mask> var childrenArray = React.Children.toArray(this.props.children); <mask> newChildren.push(React.cloneElement(childrenArray[0], this.getChildProps(childrenArray[0]))); <mask> newChildren.push( <mask> <View key={keyIndex++} style={ thi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/CardItem.js
<mask> import computeProps from '../../Utils/computeProps'; <mask> import Input from './Input'; <mask> import _ from 'lodash'; <mask> <mask> var keyIndex = 0; <mask> <mask> export default class InputGroup extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> return { <mask> textInpu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
key: 'inpGroup'
<mask> var addedProps = _.merge(this.getInitialStyle().textInput, type); <mask> <mask> var defaultProps = { <mask> style: addedProps, <mask> key: keyIndex++ <mask> } <mask> <mask> return computeProps(this.props, defaultProps); <mask> } <mask> </s> fix issues arising from component keys </s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
key: 'icon'
<mask> } <mask> <mask> var defaultProps = { <mask> style: defaultStyle, <mask> key: keyIndex++ <mask> } <mask> <mask> return computeProps(icon.props, defaultProps); <mask> } <mask> </s> fix issues arising from component keys </s> remove key: keyIndex++ </s> add key: 'inpGroup' </s> r...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
<mask> <mask> if(Array.isArray(this.props.children)) { <mask> <mask> if(this.props.iconRight) { <mask> newChildren.push(<Input key={keyIndex++} {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> newChildren.push(React.clon...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
newChildren.push(React.cloneElement( iconElement[0], { ...this.getIconProps(iconElement[0]), key: 'icon0' } )); newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); ...
<mask> newChildren.push(React.cloneElement(iconElement[0],this.getIconProps(iconElement[0]))); <mask> } <mask> else { <mask> if (iconElement.length > 1) { <mask> newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0]))); <mask> newChildren.push(<Input key={key...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
<mask> newChildren.push(<Input key={keyIndex++} {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> newChildren.push(React.cloneElement(iconElement[1], this.getIconProps(iconElement[1]))); <mask> } else { <mask> newChildr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
<mask> } <mask> } <mask> <mask> else { <mask> newChildren.push(<Input key={keyIndex++} {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>); <mask> } <mask> <mask> return newChildren; <mask> } <mask> </s> fix issues arising ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/InputGroup.js
<mask> import Thumbnail from './Thumbnail'; <mask> import InputGroup from './InputGroup'; <mask> import _ from 'lodash'; <mask> <mask> var keyIndex = 0; <mask> <mask> export default class ListItemNB extends NativeBaseComponent { <mask> <mask> getInitialStyle() { <mask> <mask> return { </s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().fullImage
<mask> <mask> if(child.type == Image && !Array.isArray(this.props.children)) { <mask> defaultProps = { <mask> resizeMode: 'stretch', <mask> style: this.getInitialStyle().fullImage, <mask> key: keyIndex++ <mask> } <mask> } ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().itemButton
<mask> } <mask> else if(child.type == Button) { <mask> defaultProps = { <mask> small: true, <mask> style: this.getInitialStyle().itemButton, <mask> key: keyIndex++ <mask> } <mask> } <mask> else if(child.typ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
foregroundColor: this.getContextForegroundColor()
<mask> defaultProps = { <mask> style: { <mask> borderColor: this.getTheme().listBorderColor <mask> }, <mask> foregroundColor: this.getContextForegroundColor(), <mask> key: keyIndex++ <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().dividerItemText
<mask> } <mask> else if(child.type == Text) { <mask> if (this.props.itemDivider) { <mask> defaultProps = { <mask> style: this.getInitialStyle().dividerItemText, <mask> key: keyIndex++ <mask> } <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().itemSubNote
<mask> } <mask> } else { <mask> if(child.props.note && this.thumbnailPresent()) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemSubNote, <mask> key: keyIndex++ <mask> } <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().itemNote
<mask> } <mask> } <mask> else if(child.props.note) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemNote, <mask> key: keyIndex++ <mask> } <mask> } <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().itemText
<mask> } <mask> } <mask> else { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemText, <mask> key: keyIndex++ <mask> } <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().itemIcon
<mask> } <mask> } <mask> else if(child.type == Icon) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemIcon, <mask> key: keyIndex++ <mask> } <mask> } <mask> else if(child.type == Thumbnail) { ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().thumbnail
<mask> } <mask> } <mask> else if(child.type == Thumbnail) { <mask> defaultProps = { <mask> style: this.getInitialStyle().thumbnail, <mask> key: keyIndex++ <mask> } <mask> } <mask> else { <mask> def...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
foregroundColor: this.getContextForegroundColor()
<mask> } <mask> } <mask> else { <mask> defaultProps = { <mask> foregroundColor: this.getContextForegroundColor(), <mask> key: keyIndex++ <mask> } <mask> } <mask> <mask> return computeProps(child.props, defaul...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js
style: this.getInitialStyle().listItemDivider
<mask> var defaultProps = {}; <mask> <mask> if(this.props.itemDivider) <mask> defaultProps = { <mask> style: this.getInitialStyle().listItemDivider, <mask> key: keyIndex++ <mask> }; <mask> <mask> else <mask> defaultP...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/995d5398aaeb4a1d39267a923c3393c74c65a1e3
Components/Widgets/ListItem.js