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 |
|---|---|---|---|---|
/>
<Skeleton.Text
startColor="#0dead0"
endColor="#0face0"
lineHeight={20}
h={24} | <mask> <Skeleton
<mask> startColor="warning.200"
<mask> endColor="danger.200"
<mask> size={20}
<mask> variant="circle"
<mask> />
<mask> </VStack>
<mask> );
<mask> };
</s> feat: skeleton example and api update </s> remove <Skeleton
</s> add <Skelet... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Color.tsx |
import React, { useState } from 'react'; | <mask> import React from 'react';
<mask> import {
<mask> Box,
<mask> Skeleton,
<mask> VStack,
<mask> Text,
</s> feat: skeleton example and api update </s> remove import { Box } from 'native-base';
</s> add import { Box, Text } from 'native-base'; </s> remove import Basic from './Basic';
import Color fro... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
function CompositionComponent() {
const [loaded, setLoaded] = useState(false);
setTimeout(() => {
setLoaded(true);
}, 5000); | <mask> Avatar,
<mask> HStack,
<mask> Image,
<mask> } from 'native-base';
<mask> function Composition({ loaded }: any) {
<mask> return (
<mask> <VStack>
<mask> <HStack alignItems="center">
<mask> {loaded ? (
<mask> <Avatar
</s> feat: skeleton example and api update </s> rem... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
<Skeleton.Circle size={12} isLoaded={loaded}> | <mask> function Composition({ loaded }: any) {
<mask> return (
<mask> <VStack>
<mask> <HStack alignItems="center">
<mask> {loaded ? (
<mask> <Avatar
<mask> source={{
<mask> uri: 'https://nativebase.github.io/img/native-base-icon.png',
<mask> }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
</Skeleton.Circle>
<Skeleton.Text
isLoaded={loaded}
w="50%"
ml={2}
_stack={{ justifyContent: 'center' }}
>
<Text fontWeight="bold" fontSize="lg" my="auto" ml={2}>
Nativebase
</Text>
</Skeleton.Text> | <mask> source={{
<mask> uri: 'https://nativebase.github.io/img/native-base-icon.png',
<mask> }}
<mask> />
<mask> ) : (
<mask> <Skeleton variant="circle" size={12} />
<mask> )}
<mask> <Text fontWeight="bold" fontSize="lg" ml={2}>
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
<Skeleton height="100%" isLoaded={loaded}> | <mask> )}
<mask> </Text>
<mask> </HStack>
<mask> <Box size={200} mt={1}>
<mask> {loaded ? (
<mask> <Image
<mask> source={{
<mask> uri: 'https://www.w3schools.com/css/img_lights.jpg',
<mask> }}
<mask> alt="NativeB... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
size={200} | <mask> source={{
<mask> uri: 'https://www.w3schools.com/css/img_lights.jpg',
<mask> }}
<mask> alt="NativeBase logo"
<mask> />
<mask> </Skeleton>
<mask> </Box>
<mask> </VStack>
</s> feat: skeleton example and api update </s> remove ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
</Skeleton> | <mask> uri: 'https://www.w3schools.com/css/img_lights.jpg',
<mask> }}
<mask> alt="NativeBase logo"
<mask> />
<mask> ) : (
<mask> <Skeleton variant="rect" height="100%" />
<mask> )}
<mask> </Box>
<mask> </VStack>
<mask> );
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
<CompositionComponent /> | <mask>
<mask> export const Example = () => {
<mask> return (
<mask> <VStack space={4}>
<mask> <Composition />
<mask> <Composition loaded />
<mask> </VStack>
<mask> );
<mask> };
</s> feat: skeleton example and api update </s> remove .add('Composition', () => <Composition />);
</s> a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/Composition.tsx |
import { Example as Basic } from './Basic';
import { Example as Color } from './Color';
import { Example as Composition } from './Composition';
import { Example as IsLoaded } from './isLoaded';
import { Example as FadeDuration } from './FadeDuration'; | <mask> import React from 'react';
<mask> import { storiesOf } from '@storybook/react-native';
<mask> import { withKnobs } from '@storybook/addon-knobs';
<mask> import Wrapper from './../../Wrapper';
<mask> import Basic from './Basic';
<mask> import Color from './Color';
<mask> import Composition from './Composit... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/index.tsx |
.add('Composition', () => <Composition />)
.add('FadeDuration', () => <FadeDuration />)
.add('isLoaded', () => <IsLoaded />); | <mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
<mask> .add('Basic', () => <Basic />)
<mask> .add('Color', () => <Color />)
<mask> .add('Composition', () => <Composition />);
</s> feat: skeleton example and api update </s> remove import Basic from... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/composites/Skeleton/index.tsx |
import { Box, Text } from 'native-base'; | <mask> import React from 'react';
<mask> import { Box } from 'native-base';
<mask> export const Example = () => {
<mask> return (
<mask> <Box
<mask> bg="primary.400"
<mask> p={4}
</s> feat: skeleton example and api update </s> remove <Stack width="90%">
<Skeleton variant="text" heigh... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/primitives/Box/basic.tsx |
<Text></Text> | <mask> _text={{ fontSize: 'md', fontWeight: 'bold', color: 'white' }}
<mask> >
<mask> This is a Box
<mask> </Box>
<mask> );
<mask> };
</s> feat: skeleton example and api update </s> remove ) : (
<Skeleton variant="rect" height="100%" />
)}
</s> add </Skele... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/components/primitives/Box/basic.tsx |
export * from './components/composites/Skeleton'; | <mask> export * from './components/primitives/Radio';
<mask> export * from './components/primitives/Row';
<mask> export * from './components/primitives/Select';
<mask> // export * from './components/composites/SimpleGrid';
<mask> // export * from './components/composites/Skeleton';
<mask> export * from './compone... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | example/storybook/stories/index.ts |
const { children, ...props } = allProps; | <mask> import type { ISkeletonProps } from './types';
<mask>
<mask> const Skeleton = (allProps: ISkeletonProps, ref: any) => {
<mask> const isDomUsable = canUseDom();
<mask> const { variant, children, ...props } = allProps;
<mask> const newProps = useThemeProps('Skeleton', props);
<mask> const { style, ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
duration: newProps.fadeDuration * 10000 * (1 / newProps.speed), | <mask> if (isDomUsable) {
<mask> const blink = Animated.sequence([
<mask> Animated.timing(blinkAnim, {
<mask> toValue: 1,
<mask> duration: 1000,
<mask> useNativeDriver: Platform.OS !== 'web',
<mask> }),
<mask> Animated.timing(blinkAnim, {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
duration: newProps.fadeDuration * 10000 * (1 / newProps.speed), | <mask> useNativeDriver: Platform.OS !== 'web',
<mask> }),
<mask> Animated.timing(blinkAnim, {
<mask> toValue: 0,
<mask> duration: 1000,
<mask> useNativeDriver: Platform.OS !== 'web',
<mask> }),
<mask> ]);
<mask> Animated.loop(blink).st... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
}, [blinkAnim, isDomUsable, newProps]); | <mask> }),
<mask> ]);
<mask> Animated.loop(blink).start();
<mask> }
<mask> }, [blinkAnim, isDomUsable]);
<mask>
<mask> const skeletonStyle: any = {
<mask> skeleton: {
<mask> position: 'absolute',
<mask> top: 0,
</s> feat: skeleton example and api update </s> remov... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
borderRadius: 3, | <mask> top: 0,
<mask> bottom: 0,
<mask> height: '100%',
<mask> width: '100%',
<mask> borderRadius: variant === 'circle' ? 999 : 3,
<mask> backgroundColor: skeletonColor,
<mask> opacity: blinkAnim, // Bind opacity to animated value
<mask> },
<mask> };
<mask>
</... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
return newProps.isLoaded ? (
children
) : (
<Box style={[style]} borderRadius={3} bg={baseColor} {...props} ref={ref}> | <mask> opacity: blinkAnim, // Bind opacity to animated value
<mask> },
<mask> };
<mask>
<mask> return (
<mask> <Box
<mask> style={[
<mask> style,
<mask> {
<mask> transform:
<mask> props.transform ?? variant === 'text'
<mask> ? [{ s... | [
"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/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
{/* <Box h={fontSize}></Box> */} | <mask> children
<mask> ) : (
<mask> <Box style={[style]} borderRadius={3} bg={baseColor} {...props} ref={ref}>
<mask> <Animated.View style={skeletonStyle.skeleton} />
<mask> {children ? <View style={{ opacity: 0 }}>{children}</View> : null}
<mask> </Box>
<mask> );
<mask> };
<mask>
... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/Skeleton.tsx |
import type { ITextProps } from '../../primitives'; | <mask> import type { IBoxProps } from '../../primitives';
<mask>
<mask> export type ISkeletonProps = IBoxProps & {
<mask> fadeDuration?: number;
<mask> isLoaded?: boolean;
<mask> speed?: number;
</s> feat: skeleton example and api update </s> remove variant?: 'rect' | 'circle' | 'text';
</s> add };
ex... | [
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/types.tsx |
fadeDuration?: number;
isLoaded?: boolean;
speed?: number; | <mask>
<mask> export type ISkeletonProps = IBoxProps & {
<mask> startColor?: string;
<mask> endColor?: string;
<mask> size?: string | number;
<mask> };
<mask>
</s> feat: skeleton example and api update </s> remove variant?: 'rect' | 'circle' | 'text';
</s> add };
export type ISkeletonTextProps = ITe... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/types.tsx |
};
export type ISkeletonTextProps = ITextProps &
IBoxProps & {
fadeDuration?: number;
isLoaded?: boolean;
speed?: number;
startColor?: string;
endColor?: string;
noOfLines?: number;
space?: number | string;
_stack?: any;
};
export type ISkeletonComponentType = ((
props: ISkeleton... | <mask> export type ISkeletonProps = IBoxProps & {
<mask> startColor?: string;
<mask> endColor?: string;
<mask> size?: string | number;
<mask> variant?: 'rect' | 'circle' | 'text';
<mask> };
</s> feat: skeleton example and api update </s> remove export type { ISkeletonProps } from './Skeleton';
</s> add ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/Skeleton/types.tsx |
export type { ISkeletonProps, ISkeletonTextProps } from './Skeleton'; | <mask>
<mask> // export { default as Stat } from './Stat';
<mask>
<mask> export { Skeleton } from './Skeleton';
<mask> export type { ISkeletonProps } from './Skeleton';
<mask>
<mask> export { Accordion } from './Accordion';
<mask> export type {
<mask> IAccordionProps,
<mask> IAccordionDetailsProps,
</... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/components/composites/index.ts |
'none': 16,
'shorter': 20,
'short': 22,
'base': 24,
'tall': 26,
'taller': 32,
'3': 12,
'4': 16,
'5': 20,
'6': 24,
'7': 28,
'8': 32,
'9': 36,
'10': 40, | <mask> '4xl': 1.25,
<mask> '5xl': 1.5,
<mask> },
<mask> lineHeights: {
<mask> 'none': 1,
<mask> 'shorter': 1.25,
<mask> 'short': 1.375,
<mask> 'base': 1.5,
<mask> 'tall': 1.625,
<mask> 'taller': '2',
<mask> '3': '12px',
<mask> '4': '16px',
<mask> '5': '20px',... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/base/typography.ts |
import { Skeleton, SkeletonText } from './skeleton'; | <mask> import { default as NumberInput, NumberInputStepper } from './number-input';
<mask> import PinInput from './pin-input';
<mask> import Progress from './progress';
<mask> import Radio from './radio';
<mask> import Skeleton from './skeleton';
<mask> import Spinner from './spinner';
<mask> import Stat from '.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/index.ts |
SkeletonText, | <mask> SimpleGrid,
<mask> Skeleton,
<mask> SliderFilledTrack,
<mask> SliderThumb,
<mask> SliderTrack,
<mask> Slider,
<mask> Slide,
<mask> SlideFade,
</s> feat: skeleton example and api update </s> remove import React from 'react';
</s> add import React, { useState } from 'react'; </s> remove ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/index.ts |
import typography from '../base/typography'; | <mask> import { getColor } from '../tools/colors';
<mask> import { mode } from '../tools';
<mask>
<mask> const baseStyle = (props: Record<string, any>) => {
<mask> let { startColor, endColor, theme } = props;
<mask> let skeletonColor = getColor(
</s> feat: skeleton example and api update </s> remove import ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/skeleton.ts |
const baseStyleText = (props: Record<string, any>) => {
let { startColor, theme } = props;
let skeletonColor = getColor(
theme,
startColor,
mode(theme.colors.muted[200], theme.colors.muted[600])(props)
);
let baseColor = 'transparent';
return {
skeletonColor,
baseColor,
};
}; | <mask> skeletonColor,
<mask> baseColor,
<mask> };
<mask> };
<mask>
<mask> const defaultProps = {
<mask> fadeDuration: 0.1,
<mask> speed: 1.0,
<mask> isLoaded: false,
<mask> };
</s> feat: skeleton example and api update </s> remove variant: 'text',
</s> add fadeDuration: 0.1,
speed: 1.... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/skeleton.ts |
fadeDuration: 0.1,
speed: 1.0,
isLoaded: false,
};
const fontSizes = {
...typography.fontSizes,
};
const lineHeights = {
...typography.lineHeights,
};
const defaultPropsText = {
fadeDuration: 0.1,
speed: 1.0,
isLoaded: false,
noOfLines: 1,
lineHeight: 12,
};
// SkeletonText
export const Skeleton... | <mask> };
<mask> };
<mask>
<mask> const defaultProps = {
<mask> variant: 'text',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> defaultProps,
</s> feat: skeleton example and api update </s> remove export default {
</s> add // Skeleton
export const Skeleton = { </s> remove ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/skeleton.ts |
// Skeleton
export const Skeleton = { | <mask> const defaultProps = {
<mask> variant: 'text',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> defaultProps,
<mask> };
</s> feat: skeleton example and api update </s> remove variant: 'text',
</s> add fadeDuration: 0.1,
speed: 1.0,
isLoaded: false,
};
const fontSizes = ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/bf6b4c6d2021ab59de381a161cbede6b70315b79 | src/theme/components/skeleton.ts |
import ViewNB from './View';
import Header from './Header';
import Content from './Content';
import Footer from './Footer';
import NativeBaseComponent from '../Base/NativeBaseComponent'; | <mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import {View, Image, ScrollView} from 'react-native';
<mask> import ViewNB from './../View';
<mask> import Header from './../Header';
<mask> import Content from './../Content';
<mask> import Footer from './../Footer';
<mask> import Fab from ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
import computeProps from '../../Utils/computeProps'; | <mask> import Footer from './../Footer';
<mask> import Fab from './../Fab';
<mask> import NativeBaseComponent from '../../Base/NativeBaseComponent';
<mask> import _ from 'lodash';
<mask> import computeProps from '../../../Utils/computeProps';
<mask>
<mask> export default class Container extends NativeBaseCompon... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
if(item && item.type == Header) { | <mask>
<mask> renderHeader() {
<mask> if(Array.isArray(this.props.children)) {
<mask> return _.find(this.props.children, function(item) {
<mask> if(item && _.get(item, 'type', null) == Header) {
<mask> return true;
<mask> }
<mask> });
<mask> }
<mask>
</s> Upd... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
if(this.props.children && this.props.children.type == Header) { | <mask> });
<mask> }
<mask>
<mask> else {
<mask> if(this.props.children && _.get(this.props.children, 'type', null) == Header) {
<mask> return this.props.children;
<mask> }
<mask> }
<mask> }
<mask> renderContent() {
</s> Updates the Container widget with the changes ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
if(item && (item.type == ViewNB || item.type == Content || item.type == Image || item.type == View || item.type == ScrollView )) { | <mask> renderContent() {
<mask> if(Array.isArray(this.props.children)) {
<mask>
<mask> return _.filter(this.props.children, function(item) {
<mask> if(item && (_.get(item, 'type', null) == ViewNB || _.get(item, 'type', null) == Content || _.get(item, 'type', null) == Image || _.get(item, 'type... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
if(item && item.type == Footer) { | <mask> }
<mask> renderFooter() {
<mask> if(Array.isArray(this.props.children)) {
<mask> return _.find(this.props.children, function(item) {
<mask> if(item && _.get(item, 'type', null) == Footer) {
<mask> return true;
<mask> }
<mask> });
<mask> }
<mask>
</s> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
<View {...this.prepareRootProps()}> | <mask> return computeProps(this.props, defaultProps);
<mask> }
<mask> render() {
<mask> return(
<mask> <View ref={c => this._root = c} {...this.prepareRootProps()}>
<mask>
<mask> {this.renderHeader()}
<mask>
<mask> {this.renderContent()}
<mask>
</s> Updates the Container ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
{this.props.allowExtraContent == true ? this.renderOther() : null} | <mask> {this.renderContent()}
<mask>
<mask> {this.renderFooter()}
<mask>
<mask> </View>
<mask> );
<mask>
<mask> }
<mask>
</s> Updates the Container widget with the changes of merge request #218 </s> remove <View ref={c => this._root = c} {...this.prepareRootProps()}>
</s... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | Components/Widgets/Container/index.js |
'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=tr... | <mask>
<mask> 'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _crea... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
var _View=require('./View');var _View2=_interopRequireDefault(_View);
var _Header=require('./Header');var _Header2=_interopRequireDefault(_Header);
var _Content=require('./Content');var _Content2=_interopRequireDefault(_Content);
var _Footer=require('./Footer');var _Footer2=_interopRequireDefault(_Footer);
var _NativeB... | <mask> 'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=f... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
var _computeProps=require('../../Utils/computeProps');var _computeProps2=_interopRequireDefault(_computeProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class... | <mask> var _Footer=require('./../Footer');var _Footer2=_interopRequireDefault(_Footer);
<mask> var _Fab=require('./../Fab');var _Fab2=_interopRequireDefault(_Fab);
<mask> var _NativeBaseComponent2=require('../../Base/NativeBaseComponent');var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
Container=function(_NativeBaseComponent){_inherits(Container,_NativeBaseComponent);function Container(){_classCallCheck(this,Container);return _possibleConstructorReturn(this,(Container.__proto__||Object.getPrototypeOf(Container)).apply(this,arguments));}_createClass(Container,[{key:'renderOther',value:function renderO... | <mask> var _NativeBaseComponent2=require('../../Base/NativeBaseComponent');var _NativeBaseComponent3=_interopRequireDefault(_NativeBaseComponent2);
<mask> var _lodash=require('lodash');var _lodash2=_interopRequireDefault(_lodash);
<mask> var _computeProps=require('../../../Utils/computeProps');var _computeProps2=_in... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
if(item&&item.type==_Header2.default){ | <mask>
<mask> {
<mask> if(Array.isArray(this.props.children)){
<mask> return _lodash2.default.find(this.props.children,function(item){
<mask> if(item&&_lodash2.default.get(item,'type',null)==_Header2.default){
<mask> return true;
<mask> }
<mask> });
<mask> }else
<mask>
</s> Updates the Container widget wit... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
if(this.props.children&&this.props.children.type==_Header2.default){ | <mask> });
<mask> }else
<mask>
<mask> {
<mask> if(this.props.children&&_lodash2.default.get(this.props.children,'type',null)==_Header2.default){
<mask> return this.props.children;
<mask> }
<mask> }
<mask> }},{key:'renderContent',value:function renderContent()
<mask> {
</s> Updates the Container widget with ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
if(item&&(item.type==_View2.default||item.type==_Content2.default||item.type==_reactNative.Image||item.type==_reactNative.View||item.type==_reactNative.ScrollView)){ | <mask> {
<mask> if(Array.isArray(this.props.children)){
<mask>
<mask> return _lodash2.default.filter(this.props.children,function(item){
<mask> if(item&&(_lodash2.default.get(item,'type',null)==_View2.default||_lodash2.default.get(item,'type',null)==_Content2.default||_lodash2.default.get(item,'type',null)==_reac... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
if(item&&item.type==_Footer2.default){ | <mask> }},{key:'renderFooter',value:function renderFooter()
<mask> {
<mask> if(Array.isArray(this.props.children)){
<mask> return _lodash2.default.find(this.props.children,function(item){
<mask> if(item&&_lodash2.default.get(item,'type',null)==_Footer2.default){
<mask> return true;
<mask> }
<mask> });
<mask> }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
{ | <mask>
<mask>
<mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:'render',value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps()),
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
_react2.default.createElement(_reactNative.View,this.prepareRootProps(), | <mask> return(0,_computeProps2.default)(this.props,defaultProps);
<mask> }},{key:'render',value:function render()
<mask> {var _this2=this;
<mask> return(
<mask> _react2.default.createElement(_reactNative.View,_extends({ref:function ref(c){return _this2._root=c;}},this.prepareRootProps()),
<mask>
<mask> this.ren... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
this.renderFooter(), | <mask> this.renderHeader(),
<mask>
<mask> this.renderContent(),
<mask>
<mask> this.renderFooter()));
<mask>
<mask>
<mask>
<mask>
<mask> }}]);return Container;}(_NativeBaseComponent3.default);exports.default=Container;
</s> Updates the Container widget with the changes of merge request #218 </s> remove ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
this.props.allowExtraContent==true?this.renderOther():null)); | <mask> this.renderFooter(),
<mask>
<mask>
<mask>
<mask>
<mask> }}]);return Container;}(_NativeBaseComponent3.default);exports.default=Container;
<mask> //# sourceMappingURL=index.js.map </s> Updates the Container widget with the changes of merge request #218 </s> remove this.renderFooter()));
</s> add this.... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c13e57140006cf37bcd46e99b8a072a81ba52569 | dist/Components/Widgets/Container/index.js |
import variable from './../variables/platform'; | <mask> import variable from "./../variables/platform";
<mask>
<mask> export default (variables = variable) => {
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask>
</s> Added brandDark and brandLight color constants to theme/variables </s> remove const pl... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
const platformStyle = variables.platformStyle;
const platform = variables.platform; | <mask> import variable from "./../variables/platform";
<mask>
<mask> export default (variables = variable) => {
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask>
<mask> const buttonTheme = {
<mask> ".disabled": {
<mask> backgroundColor: variables... | [
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
const buttonTheme = {
'.disabled': {
backgroundColor: variables.btnDisabledBg,
},
'.bordered': {
'.dark': {
'NativeBase.Text': {
color: variables.brandDark,
},
'NativeBase.Icon': {
color: variables.brandDark,
},
'NativeBase.IconNB': {... | <mask> export default (variables = variable) => {
<mask> const platformStyle = variables.platformStyle;
<mask> const platform = variables.platform;
<mask>
<mask> const buttonTheme = {
<mask> ".disabled": {
<mask> backgroundColor: variables.btnDisabledBg,
<mask> },
<mask> ".bordered": {
<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/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.dark': {
'.bordered': {
'NativeBase.Text': {
color: variables.brandDark,
},
'NativeBase.Icon': {
color: variables.brandDark,
},
'NativeBase.IconNB': {
color: variables.brandDark,
},
},
backgroundColor: variables.brandD... | <mask> shadowRadius: null,
<mask> backgroundColor: "transparent",
<mask> },
<mask>
<mask> ".dark": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: "#000",
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: "#000",
<mask> },
<mask> "NativeBase.I... | [
"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/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.primary': {
'.bordered': {
'NativeBase.Text': {
color: variables.btnPrimaryBg,
},
'NativeBase.Icon': {
color: variables.btnPrimaryBg,
},
'NativeBase.IconNB': {
color: variables.btnPrimaryBg,
},
},
backgroundColor: vari... | <mask> },
<mask> backgroundColor: "#f4f4f4",
<mask> },
<mask>
<mask> ".primary": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: variables.btnPrimaryBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnPrimaryBg,
<mask> },
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.success': {
'.bordered': {
'NativeBase.Text': {
color: variables.btnSuccessBg,
},
'NativeBase.Icon': {
color: variables.btnSuccessBg,
},
'NativeBase.IconNB': {
color: variables.btnSuccessBg,
},
},
backgroundColor: vari... | <mask> },
<mask> backgroundColor: variables.btnPrimaryBg,
<mask> },
<mask>
<mask> ".success": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: variables.btnSuccessBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnSuccessBg,
<mask> }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.info': {
'.bordered': {
'NativeBase.Text': {
color: variables.btnInfoBg,
},
'NativeBase.Icon': {
color: variables.btnInfoBg,
},
'NativeBase.IconNB': {
color: variables.btnInfoBg,
},
},
backgroundColor: variables.btnInf... | <mask> },
<mask> backgroundColor: variables.btnSuccessBg,
<mask> },
<mask>
<mask> ".info": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: variables.btnInfoBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnInfoBg,
<mask> },
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.warning': {
'.bordered': {
'NativeBase.Text': {
color: variables.btnWarningBg,
},
'NativeBase.Icon': {
color: variables.btnWarningBg,
},
'NativeBase.IconNB': {
color: variables.btnWarningBg,
},
},
backgroundColor: vari... | <mask> },
<mask> backgroundColor: variables.btnInfoBg,
<mask> },
<mask>
<mask> ".warning": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: variables.btnWarningBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnWarningBg,
<mask> },
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.danger': {
'.bordered': {
'NativeBase.Text': {
color: variables.btnDangerBg,
},
'NativeBase.Icon': {
color: variables.btnDangerBg,
},
'NativeBase.IconNB': {
color: variables.btnDangerBg,
},
},
backgroundColor: variable... | <mask> },
<mask> backgroundColor: variables.btnWarningBg,
<mask> },
<mask>
<mask> ".danger": {
<mask> ".bordered": {
<mask> "NativeBase.Text": {
<mask> color: variables.btnDangerBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnDangerBg,
<mask> },
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.block': {
justifyContent: 'center',
alignSelf: 'stretch',
}, | <mask> },
<mask> backgroundColor: variables.btnDangerBg,
<mask> },
<mask>
<mask> ".block": {
<mask> justifyContent: "center",
<mask> alignSelf: "stretch",
<mask> },
<mask>
<mask> ".full": {
<mask> justifyContent: "center",
<mask> alignSelf: "stretch",
<mask> borderRadius: 0,
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.full': {
justifyContent: 'center',
alignSelf: 'stretch',
borderRadius: 0,
}, | <mask> justifyContent: "center",
<mask> alignSelf: "stretch",
<mask> },
<mask>
<mask> ".full": {
<mask> justifyContent: "center",
<mask> alignSelf: "stretch",
<mask> borderRadius: 0,
<mask> },
<mask>
<mask> ".rounded": {
<mask> // paddingHorizontal: variables.buttonPadding + 20,
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.rounded': {
// paddingHorizontal: variables.buttonPadding + 20,
borderRadius: variables.borderRadiusLarge,
}, | <mask> alignSelf: "stretch",
<mask> borderRadius: 0,
<mask> },
<mask>
<mask> ".rounded": {
<mask> // paddingHorizontal: variables.buttonPadding + 20,
<mask> borderRadius: variables.borderRadiusLarge,
<mask> },
<mask>
<mask> ".transparent": {
<mask> backgroundColor: "transparent",
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.transparent': {
backgroundColor: 'transparent',
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null, | <mask> // paddingHorizontal: variables.buttonPadding + 20,
<mask> borderRadius: variables.borderRadiusLarge,
<mask> },
<mask>
<mask> ".transparent": {
<mask> backgroundColor: "transparent",
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'NativeBase.Text': {
color: variables.btnPrimaryBg,
},
'NativeBase.Icon': {
color: variables.btnPrimaryBg,
},
'NativeBase.IconNB': {
color: variables.btnPrimaryBg,
},
'.dark': {
'NativeBase.Text': {
color: variables.brandDark,
}... | <mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask>
<mask> "NativeBase.Text": {
<mask> color: variables.btnPrimaryBg,
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.btnPrimaryBg,
<mask> },
<mask> "NativeBase.IconNB": {
<mas... | [
"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/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.small': {
height: 30,
'NativeBase.Text': {
fontSize: 14,
},
}, | <mask> backgroundColor: null,
<mask> },
<mask> },
<mask>
<mask> ".small": {
<mask> height: 30,
<mask> "NativeBase.Text": {
<mask> fontSize: 14,
<mask> },
<mask> },
<mask>
<mask> ".large": {
<mask> height: 60,
<mask> "NativeBase.Text": {
<mask> fontSize: 22,
</s> A... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.large': {
height: 60,
'NativeBase.Text': {
fontSize: 22,
lineHeight: 32,
},
}, | <mask> fontSize: 14,
<mask> },
<mask> },
<mask>
<mask> ".large": {
<mask> height: 60,
<mask> "NativeBase.Text": {
<mask> fontSize: 22,
<mask> lineHeight: 32,
<mask> },
<mask> },
<mask>
<mask> ".capitalize": {},
<mask>
<mask> ".vertical": {
<mask> flexDirection: "c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.capitalize': {}, | <mask> lineHeight: 32,
<mask> },
<mask> },
<mask>
<mask> ".capitalize": {},
<mask>
<mask> ".vertical": {
<mask> flexDirection: "column",
<mask> height: null,
<mask> },
</s> Added brandDark and brandLight color constants to theme/variables </s> remove ".large": {
height: 60,
"Na... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.vertical': {
flexDirection: 'column',
height: null,
}, | <mask> },
<mask>
<mask> ".capitalize": {},
<mask>
<mask> ".vertical": {
<mask> flexDirection: "column",
<mask> height: null,
<mask> },
<mask>
<mask> "NativeBase.Text": {
<mask> fontFamily: variables.btnFontFamily,
<mask> marginLeft: 0,
<mask> marginRight: 0,
</s> Added brandDar... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'NativeBase.Text': {
fontFamily: variables.btnFontFamily,
marginLeft: 0,
marginRight: 0,
color: variables.inverseTextColor,
fontSize: variables.btnTextSize,
lineHeight: variables.btnLineHeight,
paddingHorizontal: 16,
backgroundColor: 'transparent',
// childPosit... | <mask> flexDirection: "column",
<mask> height: null,
<mask> },
<mask>
<mask> "NativeBase.Text": {
<mask> fontFamily: variables.btnFontFamily,
<mask> marginLeft: 0,
<mask> marginRight: 0,
<mask> color: variables.inverseTextColor,
<mask> fontSize: variables.btnTextSize,
<mask> line... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'NativeBase.Icon': {
color: variables.inverseTextColor,
fontSize: 24,
marginHorizontal: 16,
paddingTop: platform === 'ios' ? 2 : undefined,
},
'NativeBase.IconNB': {
color: variables.inverseTextColor,
fontSize: 24,
marginHorizontal: 16,
paddingTop: platform ==... | <mask> backgroundColor: "transparent",
<mask> // childPosition: 1
<mask> },
<mask>
<mask> "NativeBase.Icon": {
<mask> color: variables.inverseTextColor,
<mask> fontSize: 24,
<mask> marginHorizontal: 16,
<mask> paddingTop: platform === "ios" ? 2 : undefined,
<mask> },
<mask> "Native... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
'.iconLeft': {
'NativeBase.Text': {
marginLeft: 0,
},
'NativeBase.IconNB': {
marginRight: 0,
marginLeft: 16,
},
'NativeBase.Icon': {
marginRight: 0,
marginLeft: 16,
},
},
'.iconRight': {
'NativeBase.Text': {
marginRigh... | <mask> marginHorizontal: 16,
<mask> paddingTop: platform === "ios" ? 2 : undefined,
<mask> },
<mask>
<mask> ".iconLeft": {
<mask> "NativeBase.Text": {
<mask> marginLeft: 0,
<mask> },
<mask> "NativeBase.IconNB": {
<mask> marginRight: 0,
<mask> marginLeft: 16,
<mask> },
<ma... | [
"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/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
paddingVertical: variables.buttonPadding,
// paddingHorizontal: variables.buttonPadding + 10,
backgroundColor: variables.btnPrimaryBg,
borderRadius: variables.borderRadiusBase,
borderColor: variables.btnPrimaryBg,
borderWidth: null,
height: 45,
alignSelf: 'flex-start',
flexDirection:... | <mask> },
<mask> },
<mask> },
<mask>
<mask> paddingVertical: variables.buttonPadding,
<mask> // paddingHorizontal: variables.buttonPadding + 10,
<mask> backgroundColor: variables.btnPrimaryBg,
<mask> borderRadius: variables.borderRadiusBase,
<mask> borderColor: variables.btnPrimaryBg,
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/components/Button.js |
brandDark: "#000",
brandLight: "#f4f4f4", | <mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> // Font
<mask> fontFamily: platform === "ios" ? "System" : "Roboto",
<mask> fontSizeBase: 15,
</s> Added brandDark and brandLight color constants to theme/variables </s> remove "NativeBase.Icon": {
color: variables.inve... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/commonColor.js |
return color(this.toolbarDefaultBg)
.darken(0.2)
.hex(); | <mask> toolbarTextColor: "#fff",
<mask> iosStatusbar: "light-content",
<mask> toolbarDefaultBorder: "#2874F0",
<mask> get statusBarColor() {
<mask> return color(this.toolbarDefaultBg).darken(0.2).hex();
<mask> },
<mask>
<mask> // Icon
<mask> iconFamily: "Ionicons",
<mask> iconFontSize: pl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/commonColor.js |
return color(this.radioColor)
.darken(0.2)
.hex(); | <mask>
<mask> radioColor: "#7e7e7e",
<mask>
<mask> get radioSelectedColor() {
<mask> return color(this.radioColor).darken(0.2).hex();
<mask> },
<mask>
<mask> // Spinner
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
</s> Added brandDark and brandLight color c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/commonColor.js |
return color(this.tabBgColor)
.darken(0.03)
.hex(); | <mask> borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),
<mask> contentPadding: 10,
<mask>
<mask> get darkenHeader() {
<mask> return color(this.tabBgColor).darken(0.03).hex();
<mask> },
<mask>
<mask> dropdownBg: "#000",
<mask> dropdownLinkColor: "#414142",
<mask> inputLineHeight: 2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/commonColor.js |
brandDark: "#000",
brandLight: "#f4f4f4", | <mask> brandSuccess: "#5cb85c",
<mask> brandDanger: "#d9534f",
<mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> // Font
<mask> fontFamily: "Roboto",
<mask> fontSizeBase: 15,
<mask>
</s> Added brandDark and brandLight color constants to theme/variables </s> remove ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/material.js |
return color(this.toolbarDefaultBg)
.darken(0.2)
.hex(); | <mask> toolbarTextColor: "#fff",
<mask> toolbarDefaultBorder: "#3F51B5",
<mask> iosStatusbar: "light-content",
<mask> get statusBarColor() {
<mask> return color(this.toolbarDefaultBg).darken(0.2).hex();
<mask> },
<mask>
<mask> // Icon
<mask> iconFamily: "Ionicons",
<mask> iconFontSize: pl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/material.js |
return color(this.radioColor)
.darken(0.2)
.hex(); | <mask>
<mask> radioColor: "#7e7e7e",
<mask>
<mask> get radioSelectedColor() {
<mask> return color(this.radioColor).darken(0.2).hex();
<mask> },
<mask>
<mask> // Spinner
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
</s> Added brandDark and brandLight color c... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/material.js |
return color(this.tabBgColor)
.darken(0.03)
.hex(); | <mask> borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),
<mask> contentPadding: 10,
<mask>
<mask> get darkenHeader() {
<mask> return color(this.tabBgColor).darken(0.03).hex();
<mask> },
<mask>
<mask> dropdownBg: "#000",
<mask> dropdownLinkColor: "#414142",
<mask> inputLineHeight: 2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/material.js |
brandDark: "#000",
brandLight: "#f4f4f4", | <mask> brandDanger: "#d9534f",
<mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> // Font
<mask> fontFamily: platform === "ios" ? "System" : "Roboto",
<mask> fontSizeBase: 15,
<mask>
<mask> get fontSizeH1() {
</s> Added brandDark and brandLight color constants to the... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1ccfd0c299d63a1b94aafaa384fcac5ccdd20b7 | src/theme/variables/platform.js |
deceleration: 0.98,
useNativeDriver: false | <mask> }
<mask>
<mask> Animated.decay(this.state.pan, {
<mask> velocity: { x: velocity, y: vy },
<mask> deceleration: 0.98
<mask> }).start(this._resetState.bind(this));
<mask> } else {
<mask> Animated.spring(this.state.pan, {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1e4a42f8a2152510762ad6233316e58e63558ed | src/basic/DeckSwiper.js |
deceleration: 0.98,
useNativeDriver: false | <mask> Animated.spring(this.state.enter, { toValue: 1, friction: 7, useNativeDriver: false }).start();
<mask> this.selectNext();
<mask> Animated.decay(this.state.pan, {
<mask> velocity: { x: 8, y: 1 },
<mask> deceleration: 0.98
<mask> }).start(this._resetState.bind(this));
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1e4a42f8a2152510762ad6233316e58e63558ed | src/basic/DeckSwiper.js |
deceleration: 0.98,
userNativeDriver: false | <mask> Animated.spring(this.state.enter, { toValue: 1, friction: 7, useNativeDriver: false }).start();
<mask> this.selectNext();
<mask> Animated.decay(this.state.pan, {
<mask> velocity: { x: -8, y: 1 },
<mask> deceleration: 0.98
<mask> }).start(this._resetState.bind(this));... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c1e4a42f8a2152510762ad6233316e58e63558ed | src/basic/DeckSwiper.js |
import { getColor } from '../../../theme';
import { useTheme } from '../../../hooks'; | <mask> import { View } from 'react-native';
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps';
<mask> import { makeStyledComponent } from '../../../utils/styled';
<mask> import { wrapStringChild } from '../../../utils/wrapStringChild';
<mask> import type { IBoxProps } from './types';
<mask>... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/Box/index.tsx |
const theme = useTheme(); | <mask> let MemoizedGradient: any;
<mask>
<mask> const Box = ({ children, ...props }: IBoxProps, ref: any) => {
<mask> // const { _text, ...resolvedProps } = useThemeProps('Box', props);
<mask> const { _text, ...resolvedProps } = usePropsResolution('Box', props);
<mask> let Gradient = useNativeBaseConfig('N... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/Box/index.tsx |
lgrad.colors = lgrad.colors?.map((color: string) => {
return getColor(color, theme.colors, theme);
}); | <mask> }
<mask>
<mask> Gradient = MemoizedGradient;
<mask>
<mask> let startObj = { x: 0, y: 0 };
<mask> let endObj = { x: 0, y: 1 };
<mask> if (lgrad.start && lgrad.start.length === 2) {
<mask> startObj = {
</s> fix: migrated linear gradint and contrast text </s> remove ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/Box/index.tsx |
import { useContrastText } from '../../../hooks'; | <mask> useIsPressed,
<mask> } from '../../primitives/Pressable/Pressable';
<mask> import { useFocusRing } from '@react-native-aria/focus';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask>
<mask> const Button = (
<mask> {
<mask> //@ts-ignore
<mask> childre... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/Button/Button.tsx |
// Setting contrast text then no color is comming
const contrastTextColor = useContrastText(
resolvedProps.bg || resolvedProps.backgroundColor || resolvedProps.bgColor,
_text?.color
);
if (
(resolvedProps.bg ||
resolvedProps.backgroundColor ||
resolvedProps.bgColor) &&
contrastTextC... | <mask> isFocusVisible: isFocusVisibleProp || isFocusVisible,
<mask> });
<mask>
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps(props)) {
<mask> return null;
<mask> }
<mask>
</s> fix: migrated linear gradint and contrast text </s> remove { isHovered, isDisabled... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/Button/Button.tsx |
{ wrapperRef, isDisabled, isInvalid, isReadOnly, ...props }: ITextAreaProps, | <mask> totalLines?: number;
<mask> }
<mask>
<mask> const TextArea = (
<mask> { wrapperRef, isDisabled, ...props }: ITextAreaProps,
<mask> ref: any
<mask> ) => {
<mask> const _ref = React.useRef(null);
<mask> const { isHovered } = useHover({}, _ref);
<mask> const { totalLines, ...newProps } = useP... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/TextArea/index.tsx |
const [isFocused, setIsFocused] = React.useState(false);
const handleFocus = (focusState: boolean, callback: any) => {
setIsFocused(focusState);
callback();
};
const { totalLines, onFocus, onBlur, ...newProps } = usePropsResolution( | <mask> ref: any
<mask> ) => {
<mask> const _ref = React.useRef(null);
<mask> const { isHovered } = useHover({}, _ref);
<mask> const { totalLines, ...newProps } = usePropsResolution(
<mask> 'TextArea',
<mask> props,
<mask> { isHovered, isDisabled },
<mask> { extendTheme: ['Input'] }
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/TextArea/index.tsx |
{ isHovered, isDisabled, isFocused, isInvalid, isReadOnly }, | <mask> const { isHovered } = useHover({}, _ref);
<mask> const { totalLines, ...newProps } = usePropsResolution(
<mask> 'TextArea',
<mask> props,
<mask> { isHovered, isDisabled },
<mask> { extendTheme: ['Input'] }
<mask> );
<mask> //TODO: refactor for responsive prop
<mask> if (useHasR... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/TextArea/index.tsx |
onFocus={(e) => {
handleFocus(true, onFocus ? () => onFocus(e) : () => {});
}}
onBlur={(e) => {
handleFocus(false, onBlur ? () => onBlur(e) : () => {});
}} | <mask> INTERNAL_notResolveThemeAndPseudoProps
<mask> numberOfLines={totalLines}
<mask> wrapperRef={wrapperRef}
<mask> ref={mergeRefs([_ref, ref])}
<mask> // onFocus={(e) => {
<mask> // handleFocus(true, onFocus ? () => onFocus(e) : () => {});
<mask> // }}
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/components/primitives/TextArea/index.tsx |
export function useContrastText(bg: string, color?: string) { | <mask> import { useToken } from './useToken';
<mask> import { useAccessibleColors } from '../core/color-mode/hooks';
<mask> import { useNativeBaseConfig } from '../core/NativeBaseContext';
<mask>
<mask> export function useContrastText(
<mask> bg: string,
<mask> color?: string,
<mask> disableContrastText?... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/hooks/useContrastText.ts |
if (useNativeBaseConfig('NativeBaseConfigProvider').disableContrastText) {
return trueColor; | <mask> 'NativeBaseConfigProvider'
<mask> ).config.suppressColorAccessibilityWarning;
<mask>
<mask> const [accessibleColors] = useAccessibleColors();
<mask> if (disableContrastText) {
<mask> return;
<mask> }
<mask> if (typeof bg !== 'string') {
<mask> return;
<mask> }
<mask>
</s> fi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/hooks/useContrastText.ts |
const darkTextConstrast = getContrastRatio(trueBg, trueDarkText);
const lightTextConstrast = getContrastRatio(trueBg, trueLightText); | <mask> trueBg = bg;
<mask> }
<mask> let trueContrastColor;
<mask> let contrastColorToken;
<mask> let darkTextConstrast = getContrastRatio(trueBg, trueDarkText);
<mask> let lightTextConstrast = getContrastRatio(trueBg, trueLightText);
<mask>
<mask> if (
<mask> darkTextConstrast >= contrastT... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/hooks/useContrastText.ts |
<mask> import { Platform } from 'react-native';
<mask> import { useNativeBase } from '../useNativeBase';
<mask> import { useColorMode } from '../../core/color-mode';
<mask> import { omitUndefined, extractInObject } from '../../theme/tools';
<mask> import { useContrastText } from '../useContrastText';
<mask> impor... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/hooks/useThemeProps/usePropsResolution.tsx | |
<mask> import { useResponsiveSSRProps } from '../useResponsiveSSRProps';
<mask> import React from 'react';
<mask> import { ResponsiveQueryContext } from '../../utils/useResponsiveQuery/ResponsiveQueryProvider';
<mask> import type { ComponentTheme } from '../../theme';
<mask> import { useNativeBaseConfig } from '..... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/c417b7deee8cf5f22f48576a8750b53d87acb96b | src/hooks/useThemeProps/usePropsResolution.tsx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.