docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
{startIcon ? (
<Box mr={Math.floor(innerButtonProps.px / 2) || 2}>{startIcon}</Box> | <mask>
<mask> accessibilityProps.isDisabled = accessibilityProps.isDisabled || isLoading;
<mask> const innerButton = (
<mask> <Box {...innerButtonProps} {...commonProps}>
<mask> {leftIcon ? (
<mask> <Box mr={Math.floor(innerButtonProps.px / 2) || 2}>{leftIcon}</Box>
<mask> ) : null}
<mask> {isLoading ? (
<mask> <Flex direction="row">
<mask> {spinner ? spinner : <Spinner color={_text?.color} size="sm" />}
<mask> <Text {..._text}>{isLoadingText ? ' ' + isLoadingText : ''}</Text>
</s> Fixes for Icon button and changes for Button icon props </s> remove {rightIcon ? (
<Box ml={Math.floor(innerButtonProps.px / 2) || 2}>{rightIcon}</Box>
</s> add {endIcon ? (
<Box ml={Math.floor(innerButtonProps.px / 2) || 2}>{endIcon}</Box> </s> remove {icon && label ? (
<HStack
// NOTE: Don't know why but it works
pt={Platform.OS === 'ios' ? 2 : undefined}
space={1}
justifyContent="center"
alignItems="center"
>
{icon}
{label}
</HStack>
) : (
icon ?? label
)}
</s> add {icon} </s> remove />
</s> add >
{icon && label ? (
<HStack space={1} justifyContent="center" alignItems="center">
{icon}
{label}
</HStack>
) : (
icon ?? label
)}
</Button> </s> remove const IconButton = ({ icon, label, ...props }: IIconButtonProps, ref: any) => {
</s> add const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { </s> remove leftIcon={<Icon name="menu" size={6} type="MaterialIcons" />}
</s> add startIcon={<Icon name="menu" size={6} type="MaterialIcons" />} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/components/primitives/Button/index.tsx |
{endIcon ? (
<Box ml={Math.floor(innerButtonProps.px / 2) || 2}>{endIcon}</Box> | <mask> >
<mask> {children}
<mask> </Text>
<mask> )}
<mask> {rightIcon ? (
<mask> <Box ml={Math.floor(innerButtonProps.px / 2) || 2}>{rightIcon}</Box>
<mask> ) : null}
<mask> </Box>
<mask> );
<mask>
<mask> const ariaProps = useButton(
</s> Fixes for Icon button and changes for Button icon props </s> remove {leftIcon ? (
<Box mr={Math.floor(innerButtonProps.px / 2) || 2}>{leftIcon}</Box>
</s> add {startIcon ? (
<Box mr={Math.floor(innerButtonProps.px / 2) || 2}>{startIcon}</Box> </s> remove />
</s> add >
{icon && label ? (
<HStack space={1} justifyContent="center" alignItems="center">
{icon}
{label}
</HStack>
) : (
icon ?? label
)}
</Button> </s> remove {icon && label ? (
<HStack
// NOTE: Don't know why but it works
pt={Platform.OS === 'ios' ? 2 : undefined}
space={1}
justifyContent="center"
alignItems="center"
>
{icon}
{label}
</HStack>
) : (
icon ?? label
)}
</s> add {icon} </s> remove const IconButton = ({ icon, label, ...props }: IIconButtonProps, ref: any) => {
</s> add const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { </s> remove leftIcon={<Icon name="menu" size={6} type="MaterialIcons" />}
</s> add startIcon={<Icon name="menu" size={6} type="MaterialIcons" />} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/components/primitives/Button/index.tsx |
startIcon?: JSX.Element | Array<JSX.Element>;
endIcon?: JSX.Element | Array<JSX.Element>; | <mask> isLoading?: any;
<mask> size?: 'xs' | 'sm' | 'md' | 'lg';
<mask> onPress?: any;
<mask> shadow?: number;
<mask> leftIcon?: JSX.Element | Array<JSX.Element>;
<mask> rightIcon?: JSX.Element | Array<JSX.Element>;
<mask> isLoadingText?: string;
<mask> spinner?: JSX.Element;
<mask> isDisabled?: boolean;
<mask> _text?: ITextProps;
<mask> };
</s> Fixes for Icon button and changes for Button icon props </s> remove // export type IFabListProps = IBoxProps;
// export type IFabItemProps = IButtonProps;
</s> add </s> remove export type IIconButtonProps = IButtonProps & {
icon?: JSX.Element;
label?: JSX.Element;
</s> add export type IIconButtonProps = Omit<IButtonProps, '_text'> & {
icon: JSX.Element; </s> remove const IconButton = ({ icon, label, ...props }: IIconButtonProps, ref: any) => {
</s> add const IconButton = ({ icon, ...props }: IIconButtonProps, ref: any) => { </s> remove import { Button, HStack, IButtonProps } from '../../primitives';
</s> add import Button, { IButtonProps } from '../../primitives/Button'; </s> remove sizes,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/components/primitives/Button/types.ts |
py: 2,
px: 2, | <mask> const baseStyle = {
<mask> borderRadius: 'md',
<mask> };
<mask>
<mask> const sizes = {
<mask> lg: {
<mask> py: 0,
<mask> px: 0,
<mask> fontSize: '3xl',
<mask> },
<mask> md: {
<mask> py: 0,
<mask> px: 0,
<mask> fontSize: '2xl',
<mask> },
<mask> sm: {
<mask> py: 0,
<mask> px: 0,
<mask> fontSize: 'xl',
<mask> },
<mask> };
<mask>
<mask> const defaultProps = {
<mask> size: 'md',
<mask> variant: 'ghost',
</s> Fixes for Icon button and changes for Button icon props </s> remove size: 'md',
</s> add </s> remove const { placement, ...newProps } = omitUndefined(props);
</s> add const { label, icon, placement, ...newProps } = omitUndefined(props); </s> remove <IconButton
</s> add <Button </s> remove export type IIconButtonProps = IButtonProps & {
icon?: JSX.Element;
label?: JSX.Element;
</s> add export type IIconButtonProps = Omit<IButtonProps, '_text'> & {
icon: JSX.Element; </s> remove import IconButton from '../IconButton';
</s> add import Button from '../../primitives/Button';
import { HStack } from '../../primitives/Stack'; | [
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/theme/components/icon-button.ts |
<mask> },
<mask> };
<mask>
<mask> const defaultProps = {
<mask> size: 'md',
<mask> variant: 'ghost',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
</s> Fixes for Icon button and changes for Button icon props </s> remove };
const sizes = {
lg: {
py: 0,
px: 0,
fontSize: '3xl',
},
md: {
py: 0,
px: 0,
fontSize: '2xl',
},
sm: {
py: 0,
px: 0,
fontSize: 'xl',
},
</s> add py: 2,
px: 2, </s> remove sizes,
</s> add </s> remove const { placement, ...newProps } = omitUndefined(props);
</s> add const { label, icon, placement, ...newProps } = omitUndefined(props); </s> remove <IconButton
</s> add <Button </s> remove export type IIconButtonProps = IButtonProps & {
icon?: JSX.Element;
label?: JSX.Element;
</s> add export type IIconButtonProps = Omit<IButtonProps, '_text'> & {
icon: JSX.Element; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/theme/components/icon-button.ts | |
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> sizes,
<mask> defaultProps,
<mask> };
</s> Fixes for Icon button and changes for Button icon props </s> remove size: 'md',
</s> add </s> remove };
const sizes = {
lg: {
py: 0,
px: 0,
fontSize: '3xl',
},
md: {
py: 0,
px: 0,
fontSize: '2xl',
},
sm: {
py: 0,
px: 0,
fontSize: 'xl',
},
</s> add py: 2,
px: 2, </s> remove // export { default as FabList } from './FabList';
// export { default as FabItem } from './FabItem';
</s> add </s> remove <IconButton
</s> add <Button </s> remove />
</s> add >
{icon && label ? (
<HStack space={1} justifyContent="center" alignItems="center">
{icon}
{label}
</HStack>
) : (
icon ?? label
)}
</Button> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1706397fb9f7c3102ee33c4bf02dbae44f5c4815 | src/theme/components/icon-button.ts | |
myNewButton: ({ myPaddingX }: { myPaddingX: number }) => { | <mask> variants: {
<mask> myBtn: {
<mask> padding: 10,
<mask> },
<mask> myNewButton: ({ myPadding }: { myPadding: number }) => {
<mask> return {
<mask> padding: myPadding,
<mask> };
<mask> },
<mask> },
</s> fix: basic components custom prop typing fixes </s> remove padding: myPadding,
</s> add padding: myPaddingX, </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | example/storybook/stories/components/Wrapper.tsx |
padding: myPaddingX, | <mask> padding: 10,
<mask> },
<mask> myNewButton: ({ myPadding }: { myPadding: number }) => {
<mask> return {
<mask> padding: myPadding,
<mask> };
<mask> },
<mask> },
<mask> sizes: {
<mask> newsize: ({ mySize }: { mySize: number }) => {
</s> fix: basic components custom prop typing fixes </s> remove myNewButton: ({ myPadding }: { myPadding: number }) => {
</s> add myNewButton: ({ myPaddingX }: { myPaddingX: number }) => { </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | example/storybook/stories/components/Wrapper.tsx |
variant={'myNewButton'} | <mask> const [state, setState] = React.useState(1);
<mask> return (
<mask> <Box style={{ position: 'absolute', top: 10, left: 20 }} m={2} bg="red.100">
<mask> <Button
<mask> // title={state.toString()}
<mask> onPress={() => setState(state + 1)}
<mask> />
<mask> </Box>
<mask> );
</s> fix: basic components custom prop typing fixes </s> remove myNewButton: ({ myPadding }: { myPadding: number }) => {
</s> add myNewButton: ({ myPaddingX }: { myPaddingX: number }) => { </s> remove padding: myPadding,
</s> add padding: myPaddingX, </s> remove export interface ISectionListProps<ItemT, sectionT = DefaultSectionT>
</s> add export interface InterfaceSectionListProps<ItemT, sectionT = DefaultSectionT> </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | example/storybook/stories/components/Wrapper.tsx |
import type { CustomProps, PlatformProps } from '../../types'; | <mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { FlatListProps } from 'react-native';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IFlatListProps<ItemT>
<mask> extends FlatListProps<ItemT>,
<mask> StyledProps,
<mask> PlatformProps<IFlatListProps<ItemT>> {
</s> fix: basic components custom prop typing fixes </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/FlatList/types.ts |
export interface InterfaceFlatListProps<ItemT> | <mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { FlatListProps } from 'react-native';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IFlatListProps<ItemT>
<mask> extends FlatListProps<ItemT>,
<mask> StyledProps,
<mask> PlatformProps<IFlatListProps<ItemT>> {
<mask> /**
<mask> * pass props to contentContainerStyle, and this also resolved NB tokens.
</s> fix: basic components custom prop typing fixes </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/FlatList/types.ts |
import type { CustomProps, PlatformProps } from '../../types'; | <mask> import type { KeyboardAvoidingViewProps } from 'react-native';
<mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IKeyboardAvoidingViewProps
<mask> extends KeyboardAvoidingViewProps,
<mask> StyledProps,
<mask> PlatformProps<IKeyboardAvoidingViewProps> {
</s> fix: basic components custom prop typing fixes </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/KeyboardAvoidingView/types.ts |
export interface InterfaceKeyboardAvoidingViewProps | <mask> import type { KeyboardAvoidingViewProps } from 'react-native';
<mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IKeyboardAvoidingViewProps
<mask> extends KeyboardAvoidingViewProps,
<mask> StyledProps,
<mask> PlatformProps<IKeyboardAvoidingViewProps> {
<mask> /**
<mask> * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */
</s> fix: basic components custom prop typing fixes </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/KeyboardAvoidingView/types.ts |
export type IKeyboardAvoidingViewProps =
| InterfaceKeyboardAvoidingViewProps
| CustomProps<'KeyboardAvoidingView'>; | <mask> /**
<mask> * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */
<mask> children?: JSX.Element | JSX.Element[] | string | any;
<mask> }
</s> fix: basic components custom prop typing fixes </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/KeyboardAvoidingView/types.ts |
import type { CustomProps, PlatformProps } from '../../types'; | <mask> import type { ScrollViewProps } from 'react-native';
<mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IScrollViewProps
<mask> extends ScrollViewProps,
<mask> StyledProps,
<mask> PlatformProps<IScrollViewProps> {
</s> fix: basic components custom prop typing fixes </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/ScrollView/types.ts |
export interface InterfaceScrollViewProps | <mask> import type { ScrollViewProps } from 'react-native';
<mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IScrollViewProps
<mask> extends ScrollViewProps,
<mask> StyledProps,
<mask> PlatformProps<IScrollViewProps> {
<mask> /**
<mask> * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */
</s> fix: basic components custom prop typing fixes </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/ScrollView/types.ts |
export type IScrollViewProps =
| InterfaceScrollViewProps
| CustomProps<'ScrollView'>; | <mask> * pass props to contentContainerStyle, and this also resolved NB tokens.
<mask> */
<mask> _contentContainerStyle?: IScrollViewProps;
<mask> }
</s> fix: basic components custom prop typing fixes </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/ScrollView/types.ts |
import type { CustomProps, PlatformProps } from '../../types'; | <mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { SectionListProps } from 'react-native';
<mask> import type { PlatformProps } from '../../types';
<mask> type DefaultSectionT = {
<mask> [key: string]: any;
<mask> };
<mask> // TODO: any need to fixed
<mask> export interface ISectionListProps<ItemT, sectionT = DefaultSectionT>
</s> fix: basic components custom prop typing fixes </s> remove export interface ISectionListProps<ItemT, sectionT = DefaultSectionT>
</s> add export interface InterfaceSectionListProps<ItemT, sectionT = DefaultSectionT> </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/SectionList/types.ts |
export interface InterfaceSectionListProps<ItemT, sectionT = DefaultSectionT> | <mask> type DefaultSectionT = {
<mask> [key: string]: any;
<mask> };
<mask> // TODO: any need to fixed
<mask> export interface ISectionListProps<ItemT, sectionT = DefaultSectionT>
<mask> extends SectionListProps<ItemT, sectionT>,
<mask> StyledProps,
<mask> PlatformProps<ISectionListProps<ItemT, sectionT>> {}
</s> fix: basic components custom prop typing fixes </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/SectionList/types.ts |
import type { CustomProps } from '../../../components/types'; | <mask> import type { StatusBarProps } from 'react-native';
<mask>
<mask> export interface InterfaceStatusBarProps extends StatusBarProps {}
<mask> export type IStatusBarProps =
<mask> | InterfaceStatusBarProps
<mask> | CustomProps<'StatusBar'>;
</s> fix: basic components custom prop typing fixes </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/StatusBar/types.ts |
import type { CustomProps, PlatformProps } from '../../types'; | <mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { ViewProps } from 'react-native';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IViewProps
<mask> extends ViewProps,
<mask> StyledProps,
<mask> PlatformProps<IViewProps> {
</s> fix: basic components custom prop typing fixes </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; </s> remove export interface IFlatListProps<ItemT>
</s> add export interface InterfaceFlatListProps<ItemT> | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/View/types.ts |
export interface InterfaceViewProps | <mask> import type { StyledProps } from '../../../theme/types';
<mask> import type { ViewProps } from 'react-native';
<mask> import type { PlatformProps } from '../../types';
<mask>
<mask> export interface IViewProps
<mask> extends ViewProps,
<mask> StyledProps,
<mask> PlatformProps<IViewProps> {
<mask> /**
<mask> * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */
</s> fix: basic components custom prop typing fixes </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove import type { PlatformProps } from '../../types';
</s> add import type { CustomProps, PlatformProps } from '../../types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/View/types.ts |
export type IViewProps = InterfaceViewProps | CustomProps<'View'>; | <mask> /**
<mask> * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */
<mask> children?: JSX.Element | JSX.Element[] | string | any;
<mask> }
</s> fix: basic components custom prop typing fixes </s> remove export interface IScrollViewProps
</s> add export interface InterfaceScrollViewProps </s> remove export interface IViewProps
</s> add export interface InterfaceViewProps </s> remove export interface IKeyboardAvoidingViewProps
</s> add export interface InterfaceKeyboardAvoidingViewProps | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/GeekyAnts/NativeBase/commit/18127e2e1cbedee5f7fdbe1e56026b386a545e45 | src/components/basic/View/types.ts |
// width: 90,
marginRight: -4,
flexGrow: 1 | <mask> const pickerTheme = {
<mask> ".note": {
<mask> color: "#8F8E95"
<mask> },
<mask> width: 90,
<mask> marginRight: -4
<mask> };
<mask>
<mask> return pickerTheme;
<mask> };
</s> Attempt to fix Picker disappearing on android when placed near to an icon
Fix for issue #457 (Placing Picker next to an Icon in the same row disappears on Android) </s> remove width: 90,
marginRight: -4
</s> add // width: 90,
marginRight: -4,
flexGrow: 1 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18dbe53d3fe304c8ef2fe8db234dcba2a820fd50 | src/theme/components/Picker.android.js |
// width: 90,
marginRight: -4,
flexGrow: 1 | <mask> const pickerTheme = {
<mask> ".note": {
<mask> color: "#8F8E95"
<mask> },
<mask> width: 90,
<mask> marginRight: -4
<mask> };
<mask>
<mask> return pickerTheme;
<mask> };
</s> Attempt to fix Picker disappearing on android when placed near to an icon
Fix for issue #457 (Placing Picker next to an Icon in the same row disappears on Android) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18dbe53d3fe304c8ef2fe8db234dcba2a820fd50 | src/theme/components/Picker.js |
import pickerTheme from "./Picker" | <mask> import formTheme from "./Form";
<mask> import separatorTheme from "./Separator";
<mask> import variable from "./../variables/platform";
<mask>
<mask> export default (variables = variable) => {
<mask> const theme = {
</s> Attempt to fix Picker disappearing on android when placed near to an icon
Fix for issue #457 (Placing Picker next to an Icon in the same row disappears on Android) </s> remove width: 90,
marginRight: -4
</s> add // width: 90,
marginRight: -4,
flexGrow: 1 </s> remove width: 90,
marginRight: -4
</s> add // width: 90,
marginRight: -4,
flexGrow: 1 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18dbe53d3fe304c8ef2fe8db234dcba2a820fd50 | src/theme/components/index.js |
...pickerTheme(variables), | <mask> },
<mask>
<mask> "NativeBase.PickerNB": {
<mask> "NativeBase.Button": {
<mask> "NativeBase.Text": {}
<mask> }
<mask> },
</s> Attempt to fix Picker disappearing on android when placed near to an icon
Fix for issue #457 (Placing Picker next to an Icon in the same row disappears on Android) </s> remove width: 90,
marginRight: -4
</s> add // width: 90,
marginRight: -4,
flexGrow: 1 </s> remove width: 90,
marginRight: -4
</s> add // width: 90,
marginRight: -4,
flexGrow: 1 | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/18dbe53d3fe304c8ef2fe8db234dcba2a820fd50 | src/theme/components/index.js |
"no-unused-vars": 1,
"quotes": ["error", "single"],
"no-multi-spaces": 1 | <mask> }
<mask> },
<mask> "rules": {
<mask> "react-native/no-unused-styles": 1,
<mask> "no-unused-vars": 1
<mask> },
<mask> "env": {
<mask> "es6": true
<mask> },
<mask> "globals": {
</s> linter rules added and textinput alignment fix </s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove // alignItems: 'flex-end'
</s> add </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 : this.fontSizeBase-1;
</s> add return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 :
this.fontSizeBase-1; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | .eslintrc.json |
theme: this.props.theme ? this.props.theme : this.getTheme(),
foregroundColor: this.props.foregroundColor ?
this.props.foregroundColor : this.getTheme().textColor
}; | <mask> }
<mask>
<mask> getChildContext() {
<mask> return {
<mask> theme: this.props.theme ? this.props.theme : this.getTheme(),
<mask> foregroundColor: this.props.foregroundColor ? this.props.foregroundColor : this.getTheme().textColor
<mask> };
<mask> }
<mask>
<mask> getContextForegroundColor() {
<mask> return this.context.foregroundColor
<mask> }
</s> linter rules added and textinput alignment fix </s> remove return this.props.theme ? this.props.theme : this.context.theme || lightTheme
</s> add return this.props.theme ? this.props.theme :
this.context.theme || lightTheme </s> remove };
else
</s> add };
}
else {
</s> remove };
</s> add };
}
</s> remove borderColor: this.getTheme().listBorderColor
</s> add borderColor: this.getTheme().listBorderColor
</s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
</s> add newChildren.push(<Input key='inp' {...inputProps} />); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Base/NativeBaseComponent.js |
return this.props.theme ? this.props.theme :
this.context.theme || lightTheme | <mask> return this.context.foregroundColor
<mask> }
<mask>
<mask> getTheme() {
<mask> return this.props.theme ? this.props.theme : this.context.theme || lightTheme
<mask> }
<mask> } </s> linter rules added and textinput alignment fix </s> remove theme: this.props.theme ? this.props.theme : this.getTheme(),
foregroundColor: this.props.foregroundColor ? this.props.foregroundColor : this.getTheme().textColor
};
</s> add theme: this.props.theme ? this.props.theme : this.getTheme(),
foregroundColor: this.props.foregroundColor ?
this.props.foregroundColor : this.getTheme().textColor
}; </s> remove height: 30
</s> add height: this.props.toolbar ? 30 : undefined,
fontSize: this.props.toolbar ? 15 : undefined </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
</s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove newChildren.push(<Input key='inp' {...inputProps} style={{height: this.props.toolbar ? 30 : undefined, fontSize: this.props.toolbar ? 15 : undefined}}/>);
</s> add newChildren.push(<Input key='inp' {...inputProps} />); </s> remove return newChildren;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Base/NativeBaseComponent.js |
brandPrimary : '#428bca',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', | <mask> var borderRadiusBase = 4;
<mask> var contentPadding = 10;
<mask>
<mask> module.exports = {
<mask> brandPrimary : "#428bca",
<mask> brandInfo: "#5bc0de",
<mask> brandSuccess: "#5cb85c",
<mask> brandDanger: "#d9534f",
<mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> inverseTextColor: "#000",
<mask> textColor: "#fff",
<mask>
<mask> fontSizeBase: 15,
</s> linter rules added and textinput alignment fix </s> remove inverseTextColor: "#000",
textColor: "#fff",
</s> add inverseTextColor: '#000',
textColor: '#fff', </s> remove brandPrimary : "#5067FF",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#5067FF',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
inverseTextColor: '#000',
textColor: '#fff', | <mask> brandDanger: "#d9534f",
<mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> inverseTextColor: "#000",
<mask> textColor: "#fff",
<mask>
<mask> fontSizeBase: 15,
<mask>
<mask> get fontSizeH1 () {
<mask> return multiply(fontSizeBase, 1.8);
</s> linter rules added and textinput alignment fix </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, </s> remove brandPrimary : "#428bca",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#428bca',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove brandPrimary : "#5067FF",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#5067FF',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
fontSizeBase: 15, | <mask>
<mask> inverseTextColor: "#000",
<mask> textColor: "#fff",
<mask>
<mask> fontSizeBase: 15,
<mask>
<mask> get fontSizeH1 () {
<mask> return multiply(fontSizeBase, 1.8);
<mask> },
<mask> get fontSizeH2 () {
</s> linter rules added and textinput alignment fix </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove inverseTextColor: "#000",
textColor: "#fff",
</s> add inverseTextColor: '#000',
textColor: '#fff', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove toolbarDefaultBg: "#505052",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: '#505052',
toolbarInverseBg: '#222', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
get fontSizeH1 () { | <mask> textColor: "#fff",
<mask>
<mask> fontSizeBase: 15,
<mask>
<mask> get fontSizeH1 () {
<mask> return multiply(fontSizeBase, 1.8);
<mask> },
<mask> get fontSizeH2 () {
<mask> return multiply(fontSizeBase, 1.6);
<mask> },
</s> linter rules added and textinput alignment fix </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, </s> remove inverseTextColor: "#000",
textColor: "#fff",
</s> add inverseTextColor: '#000',
textColor: '#fff', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove toolbarDefaultBg: "#505052",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: '#505052',
toolbarInverseBg: '#222', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
toolbarDefaultBg: '#505052',
toolbarInverseBg: '#222', | <mask> return multiply(fontSizeBase, 5.8);
<mask> },
<mask>
<mask> toolbarHeight: 70,
<mask> toolbarDefaultBg: "#505052",
<mask> toolbarInverseBg: "#222",
<mask>
<mask> get btnPrimaryBg () {
<mask> return this.brandPrimary;
<mask> },
<mask> get btnPrimaryColor () {
</s> linter rules added and textinput alignment fix </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, </s> remove cardDefaultBg: "#fff",
</s> add cardDefaultBg: '#fff', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
inputColor: '#fff',
inputBorderColor: '#fff', | <mask> return this.textColor;
<mask> },
<mask>
<mask>
<mask> inputColor: "#fff",
<mask> inputBorderColor: "#fff",
<mask> inputHeightBase: 40,
<mask> inputGroupMarginBottom: 10,
<mask> inputColorPlaceholder: "rgba(256,256,256,0.8)",
<mask> inputPaddingLeft: 5,
<mask> get inputPaddingLeftIcon () {
</s> linter rules added and textinput alignment fix </s> remove inputColorPlaceholder: "rgba(256,256,256,0.8)",
</s> add inputColorPlaceholder: 'rgba(256,256,256,0.8)', </s> remove inputBorderColor: "#D9D5DC",
</s> add inputBorderColor: '#D9D5DC', </s> remove dropdownBg: "#fff",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#fff',
dropdownLinkColor: '#414142', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
inputColorPlaceholder: 'rgba(256,256,256,0.8)', | <mask> inputColor: "#fff",
<mask> inputBorderColor: "#fff",
<mask> inputHeightBase: 40,
<mask> inputGroupMarginBottom: 10,
<mask> inputColorPlaceholder: "rgba(256,256,256,0.8)",
<mask> inputPaddingLeft: 5,
<mask> get inputPaddingLeftIcon () {
<mask> return multiply(this.inputPaddingLeft, 8);
<mask> },
<mask>
</s> linter rules added and textinput alignment fix </s> remove inputColor: "#fff",
inputBorderColor: "#fff",
</s> add inputColor: '#fff',
inputBorderColor: '#fff', </s> remove inputBorderColor: "#D9D5DC",
</s> add inputBorderColor: '#D9D5DC', </s> remove dropdownBg: "#fff",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#fff',
dropdownLinkColor: '#414142', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
dropdownBg: '#fff',
dropdownLinkColor: '#414142', | <mask> get inputPaddingLeftIcon () {
<mask> return multiply(this.inputPaddingLeft, 8);
<mask> },
<mask>
<mask> dropdownBg: "#fff",
<mask> dropdownLinkColor: "#414142",
<mask>
<mask> jumbotronPadding: 30,
<mask> jumbotronBg: "#C9C9CE",
<mask>
<mask> contentPadding: contentPadding
</s> linter rules added and textinput alignment fix </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove dropdownBg: "#000",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#000',
dropdownLinkColor: '#414142', </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove inputColorPlaceholder: "rgba(256,256,256,0.8)",
</s> add inputColorPlaceholder: 'rgba(256,256,256,0.8)', </s> remove inputColor: "#fff",
inputBorderColor: "#fff",
</s> add inputColor: '#fff',
inputBorderColor: '#fff', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
jumbotronBg: '#C9C9CE', | <mask> dropdownBg: "#fff",
<mask> dropdownLinkColor: "#414142",
<mask>
<mask> jumbotronPadding: 30,
<mask> jumbotronBg: "#C9C9CE",
<mask>
<mask> contentPadding: contentPadding
<mask> } </s> linter rules added and textinput alignment fix </s> remove dropdownBg: "#fff",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#fff',
dropdownLinkColor: '#414142', </s> remove dropdownBg: "#000",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#000',
dropdownLinkColor: '#414142', </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove listBorderColor: "#ddd",
listDividerBg: "#ddd",
</s> add listBorderColor: '#ddd',
listDividerBg: '#ddd', </s> remove brandPrimary : "#428bca",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#428bca',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/dark.js |
brandPrimary : '#5067FF',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', | <mask>
<mask> import {Platform} from 'react-native';
<mask>
<mask> export default {
<mask> brandPrimary : "#5067FF",
<mask> brandInfo: "#5bc0de",
<mask> brandSuccess: "#5cb85c",
<mask> brandDanger: "#d9534f",
<mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> fontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto',
<mask> btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
<mask> iconFamily: 'Ionicons',
<mask>
</s> linter rules added and textinput alignment fix </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove brandPrimary : "#428bca",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#428bca',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', | <mask> brandWarning: "#f0ad4e",
<mask> brandSidebar: "#252932",
<mask>
<mask> fontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto',
<mask> btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
<mask> iconFamily: 'Ionicons',
<mask>
<mask> inverseTextColor: "#fff",
<mask> textColor: "#000",
<mask>
<mask> subtitleColor: "#8e8e93",
</s> linter rules added and textinput alignment fix </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove brandPrimary : "#5067FF",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#5067FF',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove inverseTextColor: "#000",
textColor: "#fff",
</s> add inverseTextColor: '#000',
textColor: '#fff', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
inverseTextColor: '#fff',
textColor: '#000', | <mask> fontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto',
<mask> btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
<mask> iconFamily: 'Ionicons',
<mask>
<mask> inverseTextColor: "#fff",
<mask> textColor: "#000",
<mask>
<mask> subtitleColor: "#8e8e93",
<mask>
<mask> fontSizeBase: 15,
<mask> titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
</s> linter rules added and textinput alignment fix </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove brandPrimary : "#5067FF",
brandInfo: "#5bc0de",
brandSuccess: "#5cb85c",
brandDanger: "#d9534f",
brandWarning: "#f0ad4e",
brandSidebar: "#252932",
</s> add brandPrimary : '#5067FF',
brandInfo: '#5bc0de',
brandSuccess: '#5cb85c',
brandDanger: '#d9534f',
brandWarning: '#f0ad4e',
brandSidebar: '#252932', </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
subtitleColor: '#8e8e93', | <mask>
<mask> inverseTextColor: "#fff",
<mask> textColor: "#000",
<mask>
<mask> subtitleColor: "#8e8e93",
<mask>
<mask> fontSizeBase: 15,
<mask> titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
<mask> subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
<mask>
</s> linter rules added and textinput alignment fix </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, | <mask> textColor: "#000",
<mask>
<mask> subtitleColor: "#8e8e93",
<mask>
<mask> fontSizeBase: 15,
<mask> titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
<mask> subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
<mask>
<mask> inputFontSize: 15,
<mask> inputLineHeight: 24,
<mask>
<mask> get fontSizeH1 () {
</s> linter rules added and textinput alignment fix </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
inputFontSize: 15,
inputLineHeight: 24, | <mask> fontSizeBase: 15,
<mask> titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
<mask> subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
<mask>
<mask> inputFontSize: 15,
<mask> inputLineHeight: 24,
<mask>
<mask> get fontSizeH1 () {
<mask> return this.fontSizeBase*1.8;
<mask> },
<mask> get fontSizeH2 () {
</s> linter rules added and textinput alignment fix </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
get fontSizeH1 () { | <mask>
<mask> inputFontSize: 15,
<mask> inputLineHeight: 24,
<mask>
<mask> get fontSizeH1 () {
<mask> return this.fontSizeBase*1.8;
<mask> },
<mask> get fontSizeH2 () {
<mask> return this.fontSizeBase* 1.6;
<mask> },
</s> linter rules added and textinput alignment fix </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, </s> remove return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 : this.fontSizeBase-1;
</s> add return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 :
this.fontSizeBase-1; </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 :
this.fontSizeBase-1; | <mask> get fontSizeH3 () {
<mask> return this.fontSizeBase* 1.4;
<mask> },
<mask> get btnTextSize () {
<mask> return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 : this.fontSizeBase-1;
<mask> },
<mask> get btnTextSizeLarge () {
<mask> return this.fontSizeBase* 1.5;
<mask> },
<mask> get btnTextSizeSmall () {
</s> linter rules added and textinput alignment fix </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove buttonPadding: 6,
</s> add buttonPadding: 6, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove inputBorderColor: "#D9D5DC",
</s> add inputBorderColor: '#D9D5DC', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
buttonPadding: 6, | <mask> get iconSizeSmall () {
<mask> return this.iconFontSize* .6;
<mask> },
<mask>
<mask> buttonPadding: 6,
<mask>
<mask> borderRadiusBase: (Platform.OS === 'ios' ) ? 5 : 2,
<mask>
<mask> get borderRadiusLarge () {
<mask> return this.fontSizeBase* 3.8;
</s> linter rules added and textinput alignment fix </s> remove return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 : this.fontSizeBase-1;
</s> add return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 :
this.fontSizeBase-1; </s> remove inputFontSize: 15,
inputLineHeight: 24,
</s> add inputFontSize: 15,
inputLineHeight: 24, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
toolbarDefaultBg: (Platform.OS === 'ios' ) ? '#F8F8F8' : '#039BE5',
toolbarInverseBg: '#222', | <mask> },
<mask>
<mask> footerHeight: 55,
<mask> toolbarHeight: (Platform.OS === 'ios' ) ? 64 : 56,
<mask> toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
<mask> toolbarInverseBg: "#222",
<mask>
<mask> iosToolbarBtnColor: "#007aff",
<mask>
<mask> toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
<mask>
</s> linter rules added and textinput alignment fix </s> remove iosToolbarBtnColor: "#007aff",
</s> add iosToolbarBtnColor: '#007aff', </s> remove toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
</s> add toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove checkboxBgColor: "#039BE5",
checkboxTickColor: "#fff",
</s> add checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
iosToolbarBtnColor: '#007aff', | <mask> toolbarHeight: (Platform.OS === 'ios' ) ? 64 : 56,
<mask> toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
<mask> toolbarInverseBg: "#222",
<mask>
<mask> iosToolbarBtnColor: "#007aff",
<mask>
<mask> toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
<mask>
<mask> checkboxBgColor: "#039BE5",
<mask> checkboxTickColor: "#fff",
</s> linter rules added and textinput alignment fix </s> remove toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: (Platform.OS === 'ios' ) ? '#F8F8F8' : '#039BE5',
toolbarInverseBg: '#222', </s> remove toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
</s> add toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', </s> remove checkboxBgColor: "#039BE5",
checkboxTickColor: "#fff",
</s> add checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', | <mask> toolbarInverseBg: "#222",
<mask>
<mask> iosToolbarBtnColor: "#007aff",
<mask>
<mask> toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
<mask>
<mask> checkboxBgColor: "#039BE5",
<mask> checkboxTickColor: "#fff",
<mask>
<mask> checkboxSize: 23,
</s> linter rules added and textinput alignment fix </s> remove checkboxBgColor: "#039BE5",
checkboxTickColor: "#fff",
</s> add checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', </s> remove iosToolbarBtnColor: "#007aff",
</s> add iosToolbarBtnColor: '#007aff', </s> remove toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: (Platform.OS === 'ios' ) ? '#F8F8F8' : '#039BE5',
toolbarInverseBg: '#222', </s> remove checkboxSize: 23,
</s> add checkboxSize: 23, </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', | <mask> iosToolbarBtnColor: "#007aff",
<mask>
<mask> toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
<mask>
<mask> checkboxBgColor: "#039BE5",
<mask> checkboxTickColor: "#fff",
<mask>
<mask> checkboxSize: 23,
<mask>
<mask> radioColor: "#7e7e7e",
<mask> get radioSelectedColor() {
</s> linter rules added and textinput alignment fix </s> remove toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
</s> add toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', </s> remove checkboxSize: 23,
</s> add checkboxSize: 23, </s> remove iosToolbarBtnColor: "#007aff",
</s> add iosToolbarBtnColor: '#007aff', </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, </s> remove toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: (Platform.OS === 'ios' ) ? '#F8F8F8' : '#039BE5',
toolbarInverseBg: '#222', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
checkboxSize: 23, | <mask>
<mask> checkboxBgColor: "#039BE5",
<mask> checkboxTickColor: "#fff",
<mask>
<mask> checkboxSize: 23,
<mask>
<mask> radioColor: "#7e7e7e",
<mask> get radioSelectedColor() {
<mask> return Color(this.radioColor).darken(0.2).hexString();
<mask> },
</s> linter rules added and textinput alignment fix </s> remove checkboxBgColor: "#039BE5",
checkboxTickColor: "#fff",
</s> add checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, </s> remove toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
</s> add toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', </s> remove iosToolbarBtnColor: "#007aff",
</s> add iosToolbarBtnColor: '#007aff', </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, | <mask> checkboxTickColor: "#fff",
<mask>
<mask> checkboxSize: 23,
<mask>
<mask> radioColor: "#7e7e7e",
<mask> get radioSelectedColor() {
<mask> return Color(this.radioColor).darken(0.2).hexString();
<mask> },
<mask>
<mask> radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
<mask>
<mask> tabBgColor: "#F8F8F8",
<mask> tabFontSize: 15,
<mask> tabTextColor: "#fff",
<mask>
</s> linter rules added and textinput alignment fix </s> remove tabBgColor: "#F8F8F8",
tabFontSize: 15,
tabTextColor: "#fff",
</s> add tabBgColor: '#F8F8F8',
tabFontSize: 15,
tabTextColor: '#fff', </s> remove checkboxSize: 23,
</s> add checkboxSize: 23, </s> remove checkboxBgColor: "#039BE5",
checkboxTickColor: "#fff",
</s> add checkboxBgColor: '#039BE5',
checkboxTickColor: '#fff', </s> remove btnDisabledBg: '#b5b5b5',
</s> add btnDisabledBg: '#b5b5b5', </s> remove toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff',
</s> add toolbarTextColor: (Platform.OS==='ios') ? '#000' : '#fff', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
tabBgColor: '#F8F8F8',
tabFontSize: 15,
tabTextColor: '#fff', | <mask> },
<mask>
<mask> radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
<mask>
<mask> tabBgColor: "#F8F8F8",
<mask> tabFontSize: 15,
<mask> tabTextColor: "#fff",
<mask>
<mask> btnDisabledBg: '#b5b5b5',
<mask> btnDisabledClr: '#f1f1f1',
<mask>
<mask> cardDefaultBg: "#fff",
</s> linter rules added and textinput alignment fix </s> remove btnDisabledBg: '#b5b5b5',
</s> add btnDisabledBg: '#b5b5b5', </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, </s> remove cardDefaultBg: "#fff",
</s> add cardDefaultBg: '#fff', </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
btnDisabledBg: '#b5b5b5', | <mask> tabBgColor: "#F8F8F8",
<mask> tabFontSize: 15,
<mask> tabTextColor: "#fff",
<mask>
<mask> btnDisabledBg: '#b5b5b5',
<mask> btnDisabledClr: '#f1f1f1',
<mask>
<mask> cardDefaultBg: "#fff",
<mask>
<mask> get darkenHeader() {
</s> linter rules added and textinput alignment fix </s> remove tabBgColor: "#F8F8F8",
tabFontSize: 15,
tabTextColor: "#fff",
</s> add tabBgColor: '#F8F8F8',
tabFontSize: 15,
tabTextColor: '#fff', </s> remove cardDefaultBg: "#fff",
</s> add cardDefaultBg: '#fff', </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, </s> remove fontSizeBase: 15,
</s> add fontSizeBase: 15, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
cardDefaultBg: '#fff', | <mask>
<mask> btnDisabledBg: '#b5b5b5',
<mask> btnDisabledClr: '#f1f1f1',
<mask>
<mask> cardDefaultBg: "#fff",
<mask>
<mask> get darkenHeader() {
<mask> return Color(this.tabBgColor).darken(0.03).hexString();
<mask> },
<mask> get btnPrimaryBg () {
</s> linter rules added and textinput alignment fix </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove btnDisabledBg: '#b5b5b5',
</s> add btnDisabledBg: '#b5b5b5', </s> remove tabBgColor: "#F8F8F8",
tabFontSize: 15,
tabTextColor: "#fff",
</s> add tabBgColor: '#F8F8F8',
tabFontSize: 15,
tabTextColor: '#fff', </s> remove toolbarDefaultBg: "#505052",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: '#505052',
toolbarInverseBg: '#222', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, | <mask> btnDisabledClr: '#f1f1f1',
<mask>
<mask> cardDefaultBg: "#fff",
<mask>
<mask> get darkenHeader() {
<mask> return Color(this.tabBgColor).darken(0.03).hexString();
<mask> },
<mask> get btnPrimaryBg () {
<mask> return this.brandPrimary;
<mask> },
<mask> get btnPrimaryColor () {
<mask> return this.inverseTextColor;
</s> linter rules added and textinput alignment fix </s> remove cardDefaultBg: "#fff",
</s> add cardDefaultBg: '#fff', </s> remove toolbarDefaultBg: "#505052",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: '#505052',
toolbarInverseBg: '#222', </s> remove btnDisabledBg: '#b5b5b5',
</s> add btnDisabledBg: '#b5b5b5', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
inputBorderColor: '#D9D5DC', | <mask> },
<mask> get inputColorPlaceholder () {
<mask> return '#575757';
<mask> },
<mask> inputBorderColor: "#D9D5DC",
<mask> inputHeightBase: 40,
<mask> inputGroupMarginBottom: 10,
<mask> inputPaddingLeft: 5,
<mask> get inputPaddingLeftIcon () {
<mask> return this.inputPaddingLeft* 8;
</s> linter rules added and textinput alignment fix </s> remove inputColor: "#fff",
inputBorderColor: "#fff",
</s> add inputColor: '#fff',
inputBorderColor: '#fff', </s> remove inputColorPlaceholder: "rgba(256,256,256,0.8)",
</s> add inputColorPlaceholder: 'rgba(256,256,256,0.8)', </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { </s> remove return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 : this.fontSizeBase-1;
</s> add return (Platform.OS==='ios') ? this.fontSizeBase* 1.1 :
this.fontSizeBase-1; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
dropdownBg: '#000',
dropdownLinkColor: '#414142', | <mask> },
<mask>
<mask> btnLineHeight: 19,
<mask>
<mask> dropdownBg: "#000",
<mask> dropdownLinkColor: "#414142",
<mask>
<mask> jumbotronPadding: 30,
<mask> jumbotronBg: "#C9C9CE",
<mask>
<mask> contentPadding: 10,
</s> linter rules added and textinput alignment fix </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove dropdownBg: "#fff",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#fff',
dropdownLinkColor: '#414142', </s> remove listBorderColor: "#ddd",
listDividerBg: "#ddd",
</s> add listBorderColor: '#ddd',
listDividerBg: '#ddd', </s> remove subtitleColor: "#8e8e93",
</s> add subtitleColor: '#8e8e93', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
jumbotronBg: '#C9C9CE', | <mask> dropdownBg: "#000",
<mask> dropdownLinkColor: "#414142",
<mask>
<mask> jumbotronPadding: 30,
<mask> jumbotronBg: "#C9C9CE",
<mask>
<mask> contentPadding: 10,
<mask>
<mask> listBorderColor: "#ddd",
<mask> listDividerBg: "#ddd",
</s> linter rules added and textinput alignment fix </s> remove dropdownBg: "#000",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#000',
dropdownLinkColor: '#414142', </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove listBorderColor: "#ddd",
listDividerBg: "#ddd",
</s> add listBorderColor: '#ddd',
listDividerBg: '#ddd', </s> remove dropdownBg: "#fff",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#fff',
dropdownLinkColor: '#414142', </s> remove listNoteColor: "#808080",
listNoteSize: 13,
</s> add listNoteColor: '#808080',
listNoteSize: 13, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
listBorderColor: '#ddd',
listDividerBg: '#ddd', | <mask> jumbotronBg: "#C9C9CE",
<mask>
<mask> contentPadding: 10,
<mask>
<mask> listBorderColor: "#ddd",
<mask> listDividerBg: "#ddd",
<mask> listItemPadding: 9,
<mask> listNoteColor: "#808080",
<mask> listNoteSize: 13,
<mask>
<mask> iconFontSize: (Platform.OS === 'ios' ) ? 30 : 28,
</s> linter rules added and textinput alignment fix </s> remove listNoteColor: "#808080",
listNoteSize: 13,
</s> add listNoteColor: '#808080',
listNoteSize: 13, </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove dropdownBg: "#000",
dropdownLinkColor: "#414142",
</s> add dropdownBg: '#000',
dropdownLinkColor: '#414142', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
listNoteColor: '#808080',
listNoteSize: 13, | <mask>
<mask> listBorderColor: "#ddd",
<mask> listDividerBg: "#ddd",
<mask> listItemPadding: 9,
<mask> listNoteColor: "#808080",
<mask> listNoteSize: 13,
<mask>
<mask> iconFontSize: (Platform.OS === 'ios' ) ? 30 : 28,
<mask>
<mask> badgeColor: "#fff",
<mask> badgeBg: "#ED1727",
</s> linter rules added and textinput alignment fix </s> remove listBorderColor: "#ddd",
listDividerBg: "#ddd",
</s> add listBorderColor: '#ddd',
listDividerBg: '#ddd', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove jumbotronBg: "#C9C9CE",
</s> add jumbotronBg: '#C9C9CE', </s> remove inverseTextColor: "#fff",
textColor: "#000",
</s> add inverseTextColor: '#fff',
textColor: '#000', </s> remove btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons',
</s> add btnFontFamily: (Platform.OS === 'ios' ) ? 'HelveticaNeue' : 'Roboto_medium',
iconFamily: 'Ionicons', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
badgeColor: '#fff',
badgeBg: '#ED1727', | <mask> listNoteSize: 13,
<mask>
<mask> iconFontSize: (Platform.OS === 'ios' ) ? 30 : 28,
<mask>
<mask> badgeColor: "#fff",
<mask> badgeBg: "#ED1727",
<mask>
<mask> lineHeight: (Platform.OS === 'ios' ) ? 20 : 24,
<mask> iconLineHeight: (Platform.OS === 'ios' ) ? 37 : 30,
<mask>
<mask> toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> linter rules added and textinput alignment fix </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove toolbarInputColor: "#CECDD2",
</s> add toolbarInputColor: '#CECDD2', </s> remove listNoteColor: "#808080",
listNoteSize: 13,
</s> add listNoteColor: '#808080',
listNoteSize: 13, </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove listBorderColor: "#ddd",
listDividerBg: "#ddd",
</s> add listBorderColor: '#ddd',
listDividerBg: '#ddd', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, | <mask>
<mask> lineHeight: (Platform.OS === 'ios' ) ? 20 : 24,
<mask> iconLineHeight: (Platform.OS === 'ios' ) ? 37 : 30,
<mask>
<mask> toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
<mask>
<mask> toolbarInputColor: "#CECDD2",
<mask>
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
</s> linter rules added and textinput alignment fix </s> remove toolbarInputColor: "#CECDD2",
</s> add toolbarInputColor: '#CECDD2', </s> remove defaultSpinnerColor: "#45D56E",
inverseSpinnerColor: "#1A191B",
</s> add defaultSpinnerColor: '#45D56E',
inverseSpinnerColor: '#1A191B', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, </s> remove toolbarDefaultBg: (Platform.OS === 'ios' ) ? "#F8F8F8" : "#039BE5",
toolbarInverseBg: "#222",
</s> add toolbarDefaultBg: (Platform.OS === 'ios' ) ? '#F8F8F8' : '#039BE5',
toolbarInverseBg: '#222', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
toolbarInputColor: '#CECDD2', | <mask> iconLineHeight: (Platform.OS === 'ios' ) ? 37 : 30,
<mask>
<mask> toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
<mask>
<mask> toolbarInputColor: "#CECDD2",
<mask>
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
<mask>
<mask> defaultProgressColor: "#E4202D",
</s> linter rules added and textinput alignment fix </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove defaultSpinnerColor: "#45D56E",
inverseSpinnerColor: "#1A191B",
</s> add defaultSpinnerColor: '#45D56E',
inverseSpinnerColor: '#1A191B', </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove defaultProgressColor: "#E4202D",
inverseProgressColor: "#1A191B"
</s> add defaultProgressColor: '#E4202D',
inverseProgressColor: '#1A191B' </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
defaultSpinnerColor: '#45D56E',
inverseSpinnerColor: '#1A191B', | <mask> toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
<mask>
<mask> toolbarInputColor: "#CECDD2",
<mask>
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
<mask>
<mask> defaultProgressColor: "#E4202D",
<mask> inverseProgressColor: "#1A191B"
<mask> }
</s> linter rules added and textinput alignment fix </s> remove toolbarInputColor: "#CECDD2",
</s> add toolbarInputColor: '#CECDD2', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove defaultProgressColor: "#E4202D",
inverseProgressColor: "#1A191B"
</s> add defaultProgressColor: '#E4202D',
inverseProgressColor: '#1A191B' </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', </s> remove fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14,
</s> add fontSizeBase: 15,
titleFontSize: (Platform.OS === 'ios' ) ? 17 : 19,
subTitleFontSize: (Platform.OS === 'ios' ) ? 12 : 14, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
defaultProgressColor: '#E4202D',
inverseProgressColor: '#1A191B' | <mask>
<mask> defaultSpinnerColor: "#45D56E",
<mask> inverseSpinnerColor: "#1A191B",
<mask>
<mask> defaultProgressColor: "#E4202D",
<mask> inverseProgressColor: "#1A191B"
<mask> }
</s> linter rules added and textinput alignment fix </s> remove defaultSpinnerColor: "#45D56E",
inverseSpinnerColor: "#1A191B",
</s> add defaultSpinnerColor: '#45D56E',
inverseSpinnerColor: '#1A191B', </s> remove toolbarInputColor: "#CECDD2",
</s> add toolbarInputColor: '#CECDD2', </s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove return newChildren;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Themes/light.js |
import Text from './Text';
| <mask> import React from 'react';
<mask> import {View} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Text from "./Text";
<mask>
<mask>
<mask> export default class BadgeNB extends NativeBaseComponent {
<mask>
<mask> prepareRootProps() {
</s> linter rules added and textinput alignment fix </s> remove import Text from "./Text";
import View from "./View";
</s> add import Text from './Text';
import View from './View'; </s> remove import ProgressBar from "ProgressBarAndroid";
</s> add import ProgressBar from 'ProgressBarAndroid'; </s> remove import Icon from "./Icon";
</s> add import Icon from './Icon'; </s> remove import Icon from "./Icon";
</s> add import Icon from './Icon'; </s> remove import Button from "./Button";
import View from "./View";
import Title from "./Title";
import InputGroup from "./InputGroup";
import Subtitle from "./Subtitle";
</s> add import Button from './Button';
import View from './View';
import Title from './Title';
import InputGroup from './InputGroup';
import Subtitle from './Subtitle'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Badge.js |
backgroundColor:this.props.primary ?
this.getTheme().brandPrimary :
this.props.success ?
this.getTheme().brandSuccess :
this.props.info ?
this.getTheme().brandInfo :
this.props.warning ?
this.getTheme().brandWarning :
this.props.danger ?
this.getTheme().brandDanger :
this.getTheme().badgeBg,
| <mask> prepareRootProps() {
<mask>
<mask> var type = {
<mask>
<mask> backgroundColor: this.props.primary ? this.getTheme().brandPrimary : this.props.success ? this.getTheme().brandSuccess :
<mask> this.props.info ? this.getTheme().brandInfo : this.props.warning ? this.getTheme().brandWarning :
<mask> this.props.danger ? this.getTheme().brandDanger : this.getTheme().badgeBg,
<mask> padding: 3,
<mask> paddingHorizontal: 10,
<mask> alignSelf: 'flex-start',
<mask> borderRadius: 13.5,
<mask> height: 27
</s> linter rules added and textinput alignment fix </s> remove height: 30
</s> add height: this.props.toolbar ? 30 : undefined,
fontSize: this.props.toolbar ? 15 : undefined </s> remove var addedProps = _.merge(this.getInitialStyle().button,type);
</s> add var addedProps = _.merge(this.getInitialStyle().button,type);
</s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove var addedProps = _.merge(this.getInitialStyle().textInput, type);
</s> add var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> remove backgroundColor: "#fff",
</s> add backgroundColor: '#fff', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Badge.js |
<Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
| <mask> }
<mask> render() {
<mask> return(
<mask> <View {...this.prepareRootProps()}>
<mask> <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
<mask> fontSize: this.getTheme().fontSizeBase,
<mask> lineHeight: this.getTheme().lineHeight-1,
<mask> textAlign: 'center'}}>{this.props.children}
<mask> </Text>
<mask> </View>
</s> linter rules added and textinput alignment fix </s> remove <View>
{this.renderHeader()}
</View>
</s> add <View>
{this.renderHeader()}
</View> </s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove {(Platform.OS === 'ios') ?
<Icon name={this.props.selected ? "ios-radio-button-on" : "ios-radio-button-off-outline"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} />
:
<Icon name={this.props.selected ? "md-radio-button-on" : "md-radio-button-off"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} />
}
</s> add {(Platform.OS === 'ios') ?
<Icon name={this.props.selected ? 'ios-radio-button-on' : 'ios-radio-button-off-outline'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} />
:
<Icon name={this.props.selected ? 'md-radio-button-on' : 'md-radio-button-off'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} />
} </s> remove return (
<View style={{ flex: 1}}>
<TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' />
</View>
);
}
</s> add return (
<View style={{ flex: 1}}>
<TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' />
</View>
);
} </s> remove render() {
return(
</s> add render() {
return( | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Badge.js |
var addedProps = _.merge(this.getInitialStyle().button,type);
| <mask> height: (this.props.large) ? 60 : (this.props.small) ? 35 : 38,
<mask> alignSelf: (this.props.block) ? 'stretch' : 'flex-start'
<mask> }
<mask>
<mask> var addedProps = _.merge(this.getInitialStyle().button,type);
<mask>
<mask> var defaultProps = {
<mask> style: addedProps
<mask> }
<mask>
</s> linter rules added and textinput alignment fix </s> remove var addedProps = _.merge(this.getInitialStyle().textInput, type);
</s> add var addedProps = _.merge(this.getInitialStyle().textInput, type); </s> remove height: 30
</s> add height: this.props.toolbar ? 30 : undefined,
fontSize: this.props.toolbar ? 15 : undefined </s> remove if(child.props.note && this.thumbnailPresent()) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
}
}
else if(child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
}
}
else {
defaultProps = {
style: this.getInitialStyle().itemText
}
}
</s> add if(child.props.note && this.thumbnailPresent()) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
}
}
else if(child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
}
}
else {
defaultProps = {
style: this.getInitialStyle().itemText
}
}
</s> remove if(this.props.itemDivider)
</s> add if(this.props.itemDivider) {
</s> remove defaultProps = {
</s> add defaultProps = {
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Button.js |
(this.props.color) ? this.props.color :
| <mask> ((this.props.bordered) && (this.props.danger)) ? this.getTheme().btnDangerBg :
<mask> ((this.props.bordered) && (this.props.warning)) ? this.getTheme().btnWarningBg :
<mask> ((this.props.bordered) && (this.props.info)) ? this.getTheme().btnInfoBg :
<mask> ((this.props.bordered)) ? this.getTheme().btnPrimaryBg :
<mask> (this.props.color) ? this.props.color :
<mask> (this.props.transparent) ? this.getContextForegroundColor() :
<mask> this.getTheme().inverseTextColor,
<mask>
<mask> fontSize: (this.props.large) ? this.getTheme().btnTextSizeLarge : (this.props.small) ? this.getTheme().btnTextSizeSmall : this.getTheme().btnTextSize,
<mask>
</s> linter rules added and textinput alignment fix </s> remove (this.props.bordered) ? this.getTheme().btnPrimaryBg :
(this.props.color) ? this.props.color :
</s> add (this.props.bordered) ? this.getTheme().btnPrimaryBg :
(this.props.color) ? this.props.color :
</s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
</s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
</s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove var addedProps = _.merge(this.getInitialStyle().button,type);
</s> add var addedProps = _.merge(this.getInitialStyle().button,type);
</s> remove render() {
return(
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
progressTintColor={ this.props.color ? this.props.color :
this.props.inverse ? this.getTheme().inverseProgressColor :
this.getTheme().defaultProgressColor} />
);
}
</s> add render() {
return(
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
progressTintColor={ this.props.color ? this.props.color :
this.props.inverse ? this.getTheme().inverseProgressColor :
this.getTheme().defaultProgressColor} />
);
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Button.js |
(this.props.bordered) ? this.getTheme().btnPrimaryBg :
(this.props.color) ? this.props.color :
| <mask> ((this.props.bordered) && (this.props.success)) ? this.getTheme().btnSuccessBg :
<mask> ((this.props.bordered) && (this.props.danger)) ? this.getTheme().btnDangerBg :
<mask> ((this.props.bordered) && (this.props.warning)) ? this.getTheme().btnWarningBg :
<mask> ((this.props.bordered) && (this.props.info)) ? this.getTheme().btnInfoBg :
<mask> (this.props.bordered) ? this.getTheme().btnPrimaryBg :
<mask> (this.props.color) ? this.props.color :
<mask> (this.props.header) ? this.getTheme().toolbarTextColor :
<mask> (this.props.transparent) ? this.getContextForegroundColor() :
<mask> this.getTheme().inverseTextColor,
<mask>
<mask> fontSize: (this.props.large) ? this.getTheme().iconSizeLarge : (this.props.small) ? this.getTheme().iconSizeSmall : (this.props.inputButton) ? this.getTheme().toolbarIconSize : this.getTheme().iconFontSize-5,
</s> linter rules added and textinput alignment fix </s> remove (this.props.color) ? this.props.color :
</s> add (this.props.color) ? this.props.color :
</s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
</s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
</s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove var addedProps = _.merge(this.getInitialStyle().button,type);
</s> add var addedProps = _.merge(this.getInitialStyle().button,type);
</s> remove render() {
return(
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
progressTintColor={ this.props.color ? this.props.color :
this.props.inverse ? this.getTheme().inverseProgressColor :
this.getTheme().defaultProgressColor} />
);
}
</s> add render() {
return(
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
progressTintColor={ this.props.color ? this.props.color :
this.props.inverse ? this.getTheme().inverseProgressColor :
this.getTheme().defaultProgressColor} />
);
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Button.js |
if(typeof this.props.children == 'string') {
| <mask> })
<mask> return iconComponentPresent;
<mask> }
<mask> renderChildren() {
<mask> if(typeof this.props.children == "string") {
<mask> return <Text style={this.getTextStyle()}>{(Platform.OS==='ios') ? this.props.children : this.props.children.toUpperCase()}</Text>
<mask> }
<mask>
<mask> else if(this.props.children.type == IconNB) {
<mask> return React.cloneElement(this.props.children, this.getIconProps(this.props.children));
</s> linter rules added and textinput alignment fix </s> remove }
return squareThumbs;
</s> add }
return squareThumbs;
</s> remove var insetPresent = false;
React.Children.forEach(this.props.children, function (child) {
if(child.type == InputGroup && child.props.inset)
insetPresent = true;
})
</s> add var insetPresent = false;
React.Children.forEach(this.props.children, function (child) {
if(child.type == InputGroup && child.props.inset)
insetPresent = true;
})
</s> remove var notePresent = false;
React.Children.forEach(this.props.children, function (child) {
if(child.type == Text && child.props.note)
notePresent = true;
})
return notePresent;
</s> add var notePresent = false;
React.Children.forEach(this.props.children, function (child) {
if(child.type == Text && child.props.note)
notePresent = true;
})
return notePresent;
</s> remove borderColor: this.getTheme().listBorderColor
</s> add borderColor: this.getTheme().listBorderColor
</s> remove return insetPresent;
</s> add return insetPresent;
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Button.js |
<TouchableOpacity {...this.prepareRootProps()} >
| <mask> }
<mask>
<mask> render() {
<mask> return(
<mask> <TouchableOpacity {...this.prepareRootProps()} >
<mask> {this.renderChildren()}
<mask> </TouchableOpacity>
<mask> );
<mask> }
<mask> }
</s> linter rules added and textinput alignment fix </s> remove <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
{this.renderChildren()}
</TouchableOpacity>
</s> add <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
{this.renderChildren()}
</TouchableOpacity>
</s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove render() {
return(
</s> add render() {
return( </s> remove }
</s> add </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Button.js |
import Icon from './Icon'; | <mask>
<mask> import React from 'react';
<mask> import {View, Platform} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import Icon from "./Icon";
<mask>
<mask> export default class CheckBox extends NativeBaseComponent {
<mask>
<mask> getInitialStyle() {
<mask> return {
</s> linter rules added and textinput alignment fix </s> remove import Icon from "./Icon";
</s> add import Icon from './Icon'; </s> remove import Text from "./Text";
</s> add import Text from './Text';
</s> remove import Text from "./Text";
import View from "./View";
</s> add import Text from './Text';
import View from './View'; </s> remove import Button from "./Button";
import View from "./View";
import Title from "./Title";
import InputGroup from "./InputGroup";
import Subtitle from "./Subtitle";
</s> add import Button from './Button';
import View from './View';
import Title from './Title';
import InputGroup from './InputGroup';
import Subtitle from './Subtitle'; </s> remove import ProgressBar from "ProgressBarAndroid";
</s> add import ProgressBar from 'ProgressBarAndroid'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Checkbox.js |
<Icon name={(Platform.OS === 'ios') ? 'ios-checkmark-outline' : 'md-checkmark'} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : 'transparent', lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} /> | <mask>
<mask> render() {
<mask> return(
<mask> <View style={this.getInitialStyle().checkbox}>
<mask> <Icon name={(Platform.OS === 'ios') ? "ios-checkmark-outline" : "md-checkmark"} style={{color: this.props.checked ? this.getTheme().checkboxTickColor : "transparent", lineHeight: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.93 : this.getTheme().checkboxSize-5, marginTop: (Platform.OS==='ios') ? undefined : 1, fontSize: (Platform.OS === 'ios') ? this.getTheme().checkboxSize/0.8 : this.getTheme().checkboxSize/1.2}} />
<mask> </View>
<mask> );
<mask> }
<mask> }
</s> linter rules added and textinput alignment fix </s> remove {(Platform.OS === 'ios') ?
<Icon name={this.props.selected ? "ios-radio-button-on" : "ios-radio-button-off-outline"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} />
:
<Icon name={this.props.selected ? "md-radio-button-on" : "md-radio-button-off"} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} />
}
</s> add {(Platform.OS === 'ios') ?
<Icon name={this.props.selected ? 'ios-radio-button-on' : 'ios-radio-button-off-outline'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+4, fontSize: this.getTheme().radioBtnSize}} />
:
<Icon name={this.props.selected ? 'md-radio-button-on' : 'md-radio-button-off'} style={{color: this.props.selected ? this.getTheme().radioSelectedColor : this.getTheme().radioColor, lineHeight: this.getTheme().radioBtnSize+1, fontSize: this.getTheme().radioBtnSize}} />
} </s> remove radioColor: "#7e7e7e",
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23,
</s> add radioColor: '#7e7e7e',
get radioSelectedColor() {
return Color(this.radioColor).darken(0.2).hexString();
},
radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, </s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22,
</s> add toolbarIconSize: (Platform.OS === 'ios' ) ? 20 : 22, </s> remove badgeColor: "#fff",
badgeBg: "#ED1727",
</s> add badgeColor: '#fff',
badgeBg: '#ED1727', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Checkbox.js |
<View>
{this.renderHeader()}
</View> | <mask> render() {
<mask> return(
<mask> <View {...this.prepareRootProps()}>
<mask>
<mask> <View>
<mask> {this.renderHeader()}
<mask> </View>
<mask>
<mask>
<mask> <View style={{flex:1}}>
<mask> {this.renderContent()}
<mask> </View>
</s> linter rules added and textinput alignment fix </s> remove <View style={{flex:1}}>
{this.renderContent()}
</View>
</s> add <View style={{flex:1}}>
{this.renderContent()}
</View> </s> remove <View>
{this.renderFooter()}
</View>
</s> add <View>
{this.renderFooter()}
</View> </s> remove render() {
return(
</s> add render() {
return( </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
</s> add <Text style={{ color: (this.props.textStyle && this.props.textStyle.color) ? this.props.textStyle.color : this.getTheme().badgeColor,
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Container.js |
<View style={{flex:1}}>
{this.renderContent()}
</View> | <mask> {this.renderHeader()}
<mask> </View>
<mask>
<mask>
<mask> <View style={{flex:1}}>
<mask> {this.renderContent()}
<mask> </View>
<mask>
<mask> <View>
<mask> {this.renderFooter()}
<mask> </View>
<mask> </View>
</s> linter rules added and textinput alignment fix </s> remove <View>
{this.renderFooter()}
</View>
</s> add <View>
{this.renderFooter()}
</View> </s> remove <View>
{this.renderHeader()}
</View>
</s> add <View>
{this.renderHeader()}
</View> </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove else
</s> add else { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Container.js |
<View>
{this.renderFooter()}
</View> | <mask> <View style={{flex:1}}>
<mask> {this.renderContent()}
<mask> </View>
<mask>
<mask> <View>
<mask> {this.renderFooter()}
<mask> </View>
<mask> </View>
<mask> );
<mask>
<mask> }
<mask>
</s> linter rules added and textinput alignment fix </s> remove <View style={{flex:1}}>
{this.renderContent()}
</View>
</s> add <View style={{flex:1}}>
{this.renderContent()}
</View> </s> remove <View>
{this.renderHeader()}
</View>
</s> add <View>
{this.renderHeader()}
</View> </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove else
</s> add else { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Container.js |
import Button from './Button';
import View from './View';
import Title from './Title';
import InputGroup from './InputGroup';
import Subtitle from './Subtitle'; | <mask> import React from 'react';
<mask> import { Platform} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Button from "./Button";
<mask> import View from "./View";
<mask> import Title from "./Title";
<mask> import InputGroup from "./InputGroup";
<mask> import Subtitle from "./Subtitle";
<mask> import _ from 'lodash';
<mask>
<mask> export default class Header extends NativeBaseComponent {
<mask>
<mask> getInitialStyle() {
</s> linter rules added and textinput alignment fix </s> remove import View from "./View";
import Text from "./Text";
import List from "./List";
import Icon from "./Icon";
import Container from "./Container";
import Content from "./Content";
import ListItem from "./ListItem";
import Button from "./Button";
import Header from "./Header";
import Title from "./Title";
import _ from "lodash";
</s> add import View from './View';
import Text from './Text';
import List from './List';
import Icon from './Icon';
import Container from './Container';
import Content from './Content';
import ListItem from './ListItem';
import Button from './Button';
import Header from './Header';
import Title from './Title';
import _ from 'lodash'; </s> remove import Text from "./Text";
import View from "./View";
</s> add import Text from './Text';
import View from './View'; </s> remove import Text from "./Text";
</s> add import Text from './Text';
</s> remove import Icon from "./Icon";
</s> add import Icon from './Icon'; </s> remove import Icon from "./Icon";
</s> add import Icon from './Icon'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
backgroundColor: '#fff', | <mask> borderColor: 'transparent',
<mask> flex:1
<mask> },
<mask> androidToolbarSearch: {
<mask> backgroundColor: "#fff",
<mask> borderRadius: 2,
<mask> borderColor: 'transparent',
<mask> elevation: 2,
<mask> flex:1
<mask> },
</s> linter rules added and textinput alignment fix </s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> remove borderColor: this.getTheme().listBorderColor
</s> add borderColor: this.getTheme().listBorderColor
</s> remove buttonPadding: 6,
</s> add buttonPadding: 6, </s> remove get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
},
</s> add get darkenHeader() {
return Color(this.tabBgColor).darken(0.03).hexString();
}, </s> remove get fontSizeH1 () {
</s> add get fontSizeH1 () { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
{React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} | <mask>
<mask> if (this.props.searchBar) {
<mask> if (Platform.OS === 'ios') {
<mask> newChildren.push(<View key='search' style={{flex: 1, alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -7}}>
<mask> {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
<mask> </View>)
<mask> newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
<mask> {React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
<mask> </View>)
<mask> } else {
<mask> newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
<mask> {React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
<mask> </View>)
<mask> }
<mask> }
<mask> else {
<mask> if (Platform.OS === 'ios') {
<mask> newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
<mask> {React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
<mask> </View>)
<mask> newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
<mask> {[title[0],subtitle[0]]}
<mask> </View>)
<mask> if (buttons.length>1) {
<mask> for (let i = 1; i < buttons.length; i++) {
<mask> newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
<mask> {React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
<mask> </View>)
<mask> }
<mask> } else {
<mask> newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
<mask> }
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
</s> add if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) </s> remove newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
</s> add newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) </s> remove }
</s> add </s> remove return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
//borderRadius: 1,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
</s> add return {
listItem: {
borderBottomWidth: this.getTheme().borderWidth,
marginLeft: 15,
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
paddingLeft: 2,
justifyContent: ((this.props.iconRight && !this.props.iconLeft) || (this.props.iconRight && this.props.iconLeft)) ? 'space-between' : 'flex-start',
flexDirection: this.stackedPresent() ? 'column' : 'row',
alignItems: 'center',
borderColor: (this.inputPresent() && !this.inlinePresent() ) ? 'transparent' : this.getTheme().listBorderColor
},
listItemDivider: {
borderBottomWidth: this.getTheme().borderWidth,
padding: this.getTheme().listItemPadding,
backgroundColor: this.getTheme().listDividerBg,
justifyContent: (this.buttonPresent()) ? 'space-between' : 'flex-start',
flexDirection: 'row',
borderColor: this.getTheme().listBorderColor
},
itemText: {
fontSize: 16,
marginLeft: (this.props.iconLeft) ? 10 : 0,
color: this.getContextForegroundColor()
},
dividerItemText: {
fontSize: 16,
fontWeight: '500'
},
itemIcon: {
fontSize: this.getTheme().iconFontSize,
color: this.getContextForegroundColor(),
lineHeight: (Platform.OS === 'ios') ? 34 : undefined
},
itemNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
alignSelf: 'center',
fontWeight: '100',
flex: 1,
textAlign: 'right'
},
itemSubNote: {
fontSize: this.getTheme().listNoteSize,
color: this.getTheme().listNoteColor,
lineHeight: 16
},
thumbnail: {
alignSelf: 'center'
},
fullImage: {
width: 300,
height: 300
},
itemButton: {}
}
}
| [
"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/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
<mask> for (let i = 1; i < buttons.length; i++) {
<mask> newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
<mask> {React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
<mask> </View>)
<mask> }
<mask> } else {
<mask> newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
<mask> }
<mask> }
<mask> else {
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
</s> add if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
} else {
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>)
}
}
else {
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> remove newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
</s> add newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) </s> remove if(child.props.note && this.thumbnailPresent()) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
}
}
else if(child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
}
}
else {
defaultProps = {
style: this.getInitialStyle().itemText
}
}
</s> add if(child.props.note && this.thumbnailPresent()) {
defaultProps = {
style: this.getInitialStyle().itemSubNote
}
}
else if(child.props.note) {
defaultProps = {
style: this.getInitialStyle().itemNote
}
}
else {
defaultProps = {
style: this.getInitialStyle().itemText
}
}
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js | |
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) | <mask> {React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
<mask> </View>)
<mask> }
<mask> } else {
<mask> newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
<mask> }
<mask> }
<mask> else {
<mask> newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
<mask> {React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
</s> add if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
} else {
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>)
}
}
else {
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> remove }
</s> add </s> remove }
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) | <mask> newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
<mask> }
<mask> }
<mask> else {
<mask> newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
<mask> {React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
<mask> </View>)
<mask> newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
<mask> {[title[0]]}
<mask> </View>)
<mask> for (let i = 1; i < buttons.length; i++) {
<mask> newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
<mask> {React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
<mask> </View>)
<mask>
<mask> }
<mask> }
<mask>
<mask> }
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
</s> add newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) </s> remove }
</s> add </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
} else {
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>)
}
}
else {
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> remove }
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
} | <mask> newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
<mask> {React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
<mask> </View>)
<mask>
<mask> }
<mask>
<mask> }
<mask> return newChildren;
<mask> }
<mask> }
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
</s> add if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) </s> remove newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
</s> add newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) </s> remove }
</s> add </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
} else {
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>)
}
}
else {
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} </s> remove }
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
<mask> {React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
<mask> </View>)
<mask>
<mask> }
<mask> }
<mask>
<mask> }
<mask> return newChildren;
<mask> }
<mask> }
</s> linter rules added and textinput alignment fix </s> remove newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
</s> add if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
} else {
newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
}
}
else {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -10, marginRight: 12}}>
{React.cloneElement(buttons[0], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>)
newChildren.push(<View key='title' style={{flex: 3, alignSelf: 'stretch', justifyContent: 'center'}}>
{[title[0]]}
</View>)
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -7}}>
{React.cloneElement(buttons[i], {style: this.getInitialStyle().toolbarButton, header : true, textStyle: {color: this.getTheme().toolbarTextColor}})}
</View>) </s> remove newChildren.push(<Button key='fakeBtn' transparent textStyle={{color:'transparent'}}>aa</Button>)
</s> add newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>) </s> remove }
</s> add </s> remove {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
} else {
newChildren.push(<View key='search' style={{flex: 1,alignSelf: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -8, marginRight: -8}}>
{React.cloneElement(input[0],{style: this.getInitialStyle().androidToolbarSearch, atoolbar : true})}
</View>)
}
}
else {
if (Platform.OS === 'ios') {
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
newChildren.push(<View key='title' style={{position: 'absolute', left: 0, right: 0, top: 13, bottom: 0, alignSelf: 'center', justifyContent: 'center'}}>
{[title[0],subtitle[0]]}
</View>)
if (buttons.length>1) {
for (let i = 1; i < buttons.length; i++) {
newChildren.push(<View key={'btn' + (i+1)} style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[i], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</s> add {React.cloneElement(input[0],{style: this.getInitialStyle().iosToolbarSearch, toolbar : true, key : 'inp'})}
</View>)
newChildren.push(<View key='searchBtn' style={{alignItems: 'center', justifyContent: 'center', flexDirection: 'row', marginRight: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js | |
}
return newChildren; | <mask> }
<mask>
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> return(
</s> linter rules added and textinput alignment fix </s> remove render() {
return(
</s> add render() {
return( </s> remove return newChildren;
</s> add </s> remove }
</s> add </s> remove );
</s> add ); </s> remove );
</s> add ); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
<mask> }
<mask> }
<mask>
<mask> }
<mask> return newChildren;
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> return(
</s> linter rules added and textinput alignment fix </s> remove render() {
return(
</s> add render() {
return( </s> remove }
</s> add </s> remove );
</s> add ); </s> remove <TouchableOpacity {...this.prepareRootProps()} >
</s> add <TouchableOpacity {...this.prepareRootProps()} >
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js | |
<mask>
<mask> }
<mask> return newChildren;
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> return(
<mask> <View {...this.prepareRootProps()} >
<mask> {this.renderChildren()}
</s> linter rules added and textinput alignment fix </s> remove render() {
return(
</s> add render() {
return( </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove <TouchableOpacity {...this.prepareRootProps()} >
</s> add <TouchableOpacity {...this.prepareRootProps()} >
</s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
{this.renderChildren()}
</TouchableOpacity>
</s> add <TouchableOpacity {...this.prepareRootProps()} activeOpacity={ (this.props.button) ? 0.2 : 1} >
{this.renderChildren()}
</TouchableOpacity>
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js | |
render() {
return( | <mask> return newChildren;
<mask> }
<mask> }
<mask>
<mask> render() {
<mask> return(
<mask> <View {...this.prepareRootProps()} >
<mask> {this.renderChildren()}
<mask> </View>
<mask> );
<mask> }
</s> linter rules added and textinput alignment fix </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove }
</s> add </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove else
</s> add else { </s> remove <TouchableOpacity {...this.prepareRootProps()} >
</s> add <TouchableOpacity {...this.prepareRootProps()} >
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
{this.renderChildren()} | <mask>
<mask> render() {
<mask> return(
<mask> <View {...this.prepareRootProps()} >
<mask> {this.renderChildren()}
<mask> </View>
<mask> );
<mask> }
<mask> }
</s> linter rules added and textinput alignment fix </s> remove render() {
return(
</s> add render() {
return( </s> remove {this.renderChildren()}
</s> add {this.renderChildren()} </s> remove else
</s> add else { </s> remove }
</s> add </s> remove <TouchableOpacity {...this.prepareRootProps()} >
</s> add <TouchableOpacity {...this.prepareRootProps()} >
| [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Header.js |
import variables from '../Themes/light'; | <mask> import React from 'react';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask>
<mask> import variables from "../Themes/light";
<mask>
<mask> import Ionicons from 'react-native-vector-icons/Ionicons';
<mask> import Entypo from 'react-native-vector-icons/Entypo';
<mask> import FontAwesome from 'react-native-vector-icons/FontAwesome';
<mask> import Foundation from 'react-native-vector-icons/Foundation';
</s> linter rules added and textinput alignment fix </s> remove import Text from "./Text";
import View from "./View";
</s> add import Text from './Text';
import View from './View'; </s> remove import Text from "./Text";
</s> add import Text from './Text';
</s> remove import Button from "./Button";
import View from "./View";
import Title from "./Title";
import InputGroup from "./InputGroup";
import Subtitle from "./Subtitle";
</s> add import Button from './Button';
import View from './View';
import Title from './Title';
import InputGroup from './InputGroup';
import Subtitle from './Subtitle'; </s> remove import ProgressBar from "ProgressBarAndroid";
</s> add import ProgressBar from 'ProgressBarAndroid'; </s> remove import View from "./View";
import Text from "./Text";
import List from "./List";
import Icon from "./Icon";
import Container from "./Container";
import Content from "./Content";
import ListItem from "./ListItem";
import Button from "./Button";
import Header from "./Header";
import Title from "./Title";
import _ from "lodash";
</s> add import View from './View';
import Text from './Text';
import List from './List';
import Icon from './Icon';
import Container from './Container';
import Content from './Content';
import ListItem from './ListItem';
import Button from './Button';
import Header from './Header';
import Title from './Title';
import _ from 'lodash'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
case 'Ionicons': | <mask>
<mask> var Icon;
<mask>
<mask> switch(variables.iconFamily) {
<mask> case "Ionicons":
<mask> Icon = Ionicons;
<mask> break;
<mask> case "Entypo":
<mask> Icon = Entypo;
<mask> break;
</s> linter rules added and textinput alignment fix </s> remove break;
case "Entypo":
</s> add break;
case 'Entypo': </s> remove break;
case "FontAwesome":
</s> add break;
case 'FontAwesome': </s> remove break;
case "Foundation":
</s> add break;
case 'Foundation': </s> remove break;
case "Zocial":
</s> add break;
case 'Zocial': </s> remove break;
</s> add break; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
break;
case 'Entypo': | <mask>
<mask> switch(variables.iconFamily) {
<mask> case "Ionicons":
<mask> Icon = Ionicons;
<mask> break;
<mask> case "Entypo":
<mask> Icon = Entypo;
<mask> break;
<mask> case "FontAwesome":
<mask> Icon = FontAwesome;
<mask> break;
</s> linter rules added and textinput alignment fix </s> remove break;
case "FontAwesome":
</s> add break;
case 'FontAwesome': </s> remove case "Ionicons":
</s> add case 'Ionicons': </s> remove break;
case "Foundation":
</s> add break;
case 'Foundation': </s> remove break;
case "MaterialIcons":
</s> add break;
case 'MaterialIcons': </s> remove break;
case "Zocial":
</s> add break;
case 'Zocial': | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
break;
case 'FontAwesome': | <mask> Icon = Ionicons;
<mask> break;
<mask> case "Entypo":
<mask> Icon = Entypo;
<mask> break;
<mask> case "FontAwesome":
<mask> Icon = FontAwesome;
<mask> break;
<mask> case "Foundation":
<mask> Icon = Foundation;
<mask> break;
</s> linter rules added and textinput alignment fix </s> remove break;
case "Foundation":
</s> add break;
case 'Foundation': </s> remove break;
case "Entypo":
</s> add break;
case 'Entypo': </s> remove break;
case "MaterialIcons":
</s> add break;
case 'MaterialIcons': </s> remove case "Ionicons":
</s> add case 'Ionicons': </s> remove break;
case "Octicons":
</s> add break;
case 'Octicons': | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
break;
case 'Foundation': | <mask> Icon = Entypo;
<mask> break;
<mask> case "FontAwesome":
<mask> Icon = FontAwesome;
<mask> break;
<mask> case "Foundation":
<mask> Icon = Foundation;
<mask> break;
<mask> case "MaterialIcons":
<mask> Icon = MaterialIcons;
<mask> break;
</s> linter rules added and textinput alignment fix </s> remove break;
case "FontAwesome":
</s> add break;
case 'FontAwesome': </s> remove break;
case "MaterialIcons":
</s> add break;
case 'MaterialIcons': </s> remove break;
case "Octicons":
</s> add break;
case 'Octicons': </s> remove break;
case "Entypo":
</s> add break;
case 'Entypo': </s> remove break;
case "Zocial":
</s> add break;
case 'Zocial': | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
break;
case 'MaterialIcons': | <mask> Icon = FontAwesome;
<mask> break;
<mask> case "Foundation":
<mask> Icon = Foundation;
<mask> break;
<mask> case "MaterialIcons":
<mask> Icon = MaterialIcons;
<mask> break;
<mask> case "Octicons":
<mask> Icon = Octicons;
<mask> break;
</s> linter rules added and textinput alignment fix </s> remove break;
case "Foundation":
</s> add break;
case 'Foundation': </s> remove break;
case "Octicons":
</s> add break;
case 'Octicons': </s> remove break;
case "FontAwesome":
</s> add break;
case 'FontAwesome': </s> remove break;
case "Zocial":
</s> add break;
case 'Zocial': </s> remove break;
case "Entypo":
</s> add break;
case 'Entypo': | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/19e19230a7766fc329cb10c0a8786167cb819600 | Components/Widgets/Icon.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.